:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #192b25;
  background: var(--page-background);
  font-synthesis: none;
  --page-background: #faf6ed;
  --muted: #51645a;
  --line: #e2e9e3;
  --forest: #174c37;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 2px solid #216647; outline-offset: 3px; }
.top { background: #fdfaf4; border-bottom: 1px solid #eae2d5; }
.top-inner {
  max-width: 1260px; padding: 0 32px; margin: auto; min-height: 72px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: block; width: 136px; height: auto; }
main { max-width: 1260px; padding: 58px 32px 72px; margin: auto; }
.intro { margin-bottom: 30px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; letter-spacing: -.065em; line-height: 1.06; }
.intro p, .login > p, #notice { color: var(--muted); line-height: 1.55; margin: 13px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.card, .login {
  background: #fff; border: 1px solid #dbe6dd; border-radius: 20px;
  box-shadow: 0 3px 10px #1b412709; min-width: 0;
}
.card { padding: 22px; }
.card-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.quiet, .primary { border-radius: 10px; min-height: 44px; padding: 8px 13px; font-weight: 650; }
.quiet { border: 1px solid #d9e7dd; background: #f6faf6; color: #235740; font-size: .875rem; }
.quiet:hover { background: #e8f2e9; }
.quiet.edit { background: var(--page-background); }
.primary { border: 1px solid var(--forest); background: var(--forest); color: #fff; }
.primary:hover { background: #103826; }
.load { margin-top: 19px; padding: 15px; background: #f3f7f2; border-radius: 13px; }
.load p { margin: 0; }
.load-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icon-definitions { position: absolute; pointer-events: none; }
.full-load-indicator {
  display: block; flex: none; width: 36px; height: 36px;
  color: #d71f2c; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.load-label { color: var(--muted); font-size: .875rem; font-weight: 650; }
.load-value { padding-top: 4px; font-size: 1.8rem; font-weight: 750; letter-spacing: -.045em; }
progress {
  --fill: #276348; display: block; appearance: none; width: 100%; height: 12px;
  border: 0; border-radius: 20px; overflow: hidden; background: #dde8de; margin-top: 9px;
}
progress::-webkit-progress-bar { background: #dde8de; border-radius: 20px; }
progress::-webkit-progress-value { background: var(--fill); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--fill); border-radius: 20px; }
.records { margin: 5px 0 0; }
.records > div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.records > div:last-child { padding-bottom: 5px; border-bottom: 0; }
dt { font-weight: 700; font-size: .9rem; }
dd { margin: 5px 0 0; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
dd.empty { color: var(--muted); }
.login { max-width: 460px; padding: clamp(22px, 5vw, 38px); margin: 24px auto 0; }
.login h1 { font-size: clamp(1.8rem, 5vw, 2.65rem); }
.login form, .edit-form { margin-top: 22px; }
label { display: block; font-weight: 700; font-size: .9rem; }
input:not([type="range"]), textarea {
  display: block; width: 100%; margin-top: 7px; background: #f8faf8;
  border: 1px solid #c7d6cb; border-radius: 8px; color: #192b25; padding: 10px 11px;
  min-height: 44px; font-size: 1rem;
}
.load-picker { padding: 14px 15px 12px; background: #f3f7f2; border-radius: 13px; }
.load-picker-label, .load-limits { display: flex; justify-content: space-between; gap: 8px; }
.load-picker-status { display: flex; align-items: center; gap: 8px; height: 26px; }
.load-picker-status .full-load-indicator { width: 24px; height: 24px; }
.load-selection { color: var(--forest); font-variant-numeric: tabular-nums; }
.load-picker input {
  --fill: #276348;
  --level: 0%;
  --track: linear-gradient(to right, var(--fill) 0 var(--level), #dde8de var(--level) 100%);
  display: block; appearance: none; width: 100%; height: 44px; margin: 0;
  background: transparent; cursor: pointer;
}
.load-picker input::-webkit-slider-runnable-track {
  height: 12px; border-radius: 20px; background: var(--track);
}
.load-picker input::-moz-range-track {
  height: 12px; border-radius: 20px; background: var(--track);
}
.load-picker input::-webkit-slider-thumb {
  appearance: none; box-sizing: border-box; width: 22px; height: 22px; margin-top: -5px;
  border: 2px solid var(--forest); border-radius: 50%; background: #fff;
}
.load-picker input::-moz-range-thumb {
  box-sizing: border-box; width: 22px; height: 22px;
  border: 2px solid var(--forest); border-radius: 50%; background: #fff;
}
.load-limits { color: var(--muted); font-size: .875rem; }
textarea { min-height: 82px; resize: vertical; }
.editable label { margin-top: 14px; }
.login .primary { margin-top: 16px; width: 100%; }
.error { margin: 12px 0 0; color: #9b3426; line-height: 1.45; }
.actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.latest { background: #f3f7f2; border: 1px solid #dbe6dd; border-radius: 10px; padding: 12px; margin-top: 15px; }
.latest p { margin: 6px 0 0; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#retry { margin-top: 12px; }
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; max-width: 600px; }
}
@media (max-width: 520px) {
  .top-inner { min-height: 61px; padding: 0 16px; }
  .brand { width: 116px; }
  main { padding: 33px 16px 40px; }
  .intro { margin-bottom: 22px; }
  .intro p { max-width: 300px; }
  .card { padding: 17px; }
  .login { margin-top: 12px; }
}
