:root {
  font:16px/1.6 "Source Sans 3","Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;
  color:#193931;
  background:#f4f6f3;
  font-synthesis:none;
}

[hidden] {display:none !important}
.station-nav,.admin-tools,.account-strip {display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.station-nav {justify-content:flex-end}
.nav-link {color:#fff;font-size:14px;white-space:nowrap}
.entry {max-width:470px;margin:5vh auto;padding:clamp(24px,5vw,48px)}
.entry .intro {margin-bottom:28px}
.entry form {display:grid;gap:12px}
.entry input,.admin-fields input {display:block;width:100%;min-height:46px;padding:8px 12px;border:1px solid #acbeb3;border-radius:6px;background:white;color:#173a2e}
.entry input:focus-visible,.admin-fields input:focus-visible {outline:2px solid #397963;outline-offset:2px}
.admin-fields input {margin-top:5px}
.entry .primary {margin-top:7px}
.entry a {display:inline-block;margin-top:20px;color:#24574a}
.account-strip {justify-content:space-between;margin-top:22px;padding:16px 22px;border-left:4px solid #99844e;background:#e9f0e9;border-radius:5px}
.account-strip div div {font-size:14px}
.admin-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:15px}
.admin-tools {margin:18px 0}
.dashboard {margin:24px 0}
.dashboard .card-heading {align-items:center;margin-bottom:20px}
.dashboard button {border:1px solid #bacdc3;border-radius:6px;padding:7px 12px;color:#254d41;background:white;cursor:pointer}
#period-chart {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.chart-period {min-width:0;padding:14px;background:#f5f8f4;border-radius:8px}
.chart-period h3 {margin:0 0 12px;color:#193931;font-size:16px}
.chart-series {display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:4px;color:#496355;font-size:14px}
.chart-series+.chart-series {margin-top:10px}
.chart-series strong {font-variant-numeric:tabular-nums;color:#193931}
.chart-track {grid-column:1/-1;height:6px;overflow:hidden;border-radius:4px;background:#e1e9e1}
.chart-track i {display:block;height:100%;background:#286b55;border-radius:inherit}
.chart-series.print .chart-track i {background:#a67735}
.chart-note {margin:16px 0 0;color:#52665b;font-size:13px}
#activity {list-style:none;padding:0;margin:0}
#activity li {padding:9px 0;border-bottom:1px solid #dce3dc;line-height:1.65;overflow-wrap:anywhere}
#activity li:last-child {border:0;padding-bottom:0}
#activity time {font-variant-numeric:tabular-nums;white-space:nowrap}
.card-heading .chart-note {margin:0}
.roster td small {display:block;color:#83581e;font-size:12px;font-weight:400}
.roster-heading .admin-tools {margin:0}
.roster {overflow-x:auto !important;margin-top:20px}
.roster table {width:100%;border-collapse:collapse;font-size:14px}
.roster td,.roster th {padding:12px;text-align:left;border-bottom:1px solid #dce3dc;white-space:nowrap}
.roster th {background:#e9f0e9;color:#264e41}
.roster button,.admin-tools button,.account-strip button,#checks button {border:1px solid #bacdc3;border-radius:6px;padding:7px 12px;background:#fff;color:#254d41;cursor:pointer}
.roster td button+button {margin-left:6px}
@media(max-width:760px){
  #period-chart {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .chart-period {padding:10px}
  .roster thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .roster tbody {display:block}
  .roster tbody tr {display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;padding:14px;border-bottom:1px solid #dce3dc}
  .roster tbody td {border:0;padding:0;white-space:normal}
  .roster tbody td:first-child,.roster tbody td:last-child {grid-column:1/-1}
  .roster tbody td:first-child {font-weight:650}
  .roster td[data-label]::before {display:block;content:attr(data-label);font-size:12px;color:#52665b}
  .roster .admin-tools {gap:8px}
}
#print-status {color:#254d41;margin:12px 0 4px}
#print-status:empty {display:none}
#print-wish {display:flex;align-items:center;gap:8px;color:#245646}
#wish-image {border-radius:3px}
#print-wish:not([hidden]) ~ #preview {margin-top:6px}
.product-field {margin-bottom:20px}
#cancel-make,#cancel-print,#other-waiting button {padding:7px 12px;border:1px solid #b6c9be;background:white;border-radius:6px;color:#245747;cursor:pointer}
.history-list {list-style:none;padding:0;margin:0}
.history-list li {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #dce3dc}
.history-list small {display:block;color:#586c5f}
#history button {color:#245747;background:#fff;border:1px solid #b6c9be;border-radius:6px;padding:6px 12px;white-space:nowrap;cursor:pointer}
@media(max-width:600px){.station-nav{gap:5px;font-size:12px}.bar .brand{font-size:14px}.station-nav #health{max-width:none}.station-nav{flex-direction:column}.entry{margin:1vh auto}}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

header {
  background:#133b32;
  color:white;
  border-bottom:3px solid #b69b65;
}

.bar,main,footer {
  max-width:1152px;
  margin:auto;
}

.bar {
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  gap:16px;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:18px;
  font-weight:650;
  letter-spacing:.04em;
  color:inherit;
  text-decoration:none;
}

.seal {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid #d6c9a7;
  outline:1px solid #aa9976;
  outline-offset:-4px;
  color:#efdfba;
  font:23px/1 "STKaiti","KaiTi",serif;
  border-radius:4px;
}

#health {
  font-size:13px;
  color:#dce6df;
  display:flex;
  align-items:center;
  gap:8px;
}

#health:before {
  content:"";
  width:7px;
  height:7px;
  flex:none;
  border-radius:100%;
  background:#cbb38a;
}

#health.online:before {
  background:#a5d2ac;
}

main {
  padding:44px 28px 42px;
}

.intro h1 {
  font-family:"STSong","SimSun","Noto Serif CJK SC",serif;
  font-size:clamp(32px,4vw,46px);
  line-height:1.3;
  letter-spacing:.04em;
  margin:0 0 9px;
  color:#14392f;
}

.intro p {
  margin:0;
  color:#53665d;
}

.layout {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,.95fr);
  gap:24px;
  margin-top:28px;
}

.card {
  background:#fff;
  border:1px solid #dce3dc;
  border-radius:13px;
  overflow:hidden;
  box-shadow:0 4px 18px #243f2a06;
}

.form-card,.result {
  padding:26px 30px 28px;
}

.card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #e6ebe6;
  padding-bottom:16px;
  margin-bottom:20px;
}

.card-heading>span,.hint {
  font-size:13px;
  color:#66766d;
}

h2 {
  font-size:20px;
  margin:0;
  letter-spacing:.035em;
}

.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

label,legend {
  display:block;
  font-size:15px;
  font-weight:600;
  color:#30483d;
}

fieldset {
  padding:0;
  border:0;
  margin:0;
  min-width:0;
}

legend {
  padding:0;
}

.input-unit,.segments,select {
  width:100%;
  height:46px;
  margin-top:7px;
}

.input-unit,select {
  border:1px solid #cbd5cb;
  background:#fff;
  border-radius:6px;
}

.input-unit {
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 13px;
}

.input-unit span {
  white-space:nowrap;
  color:#647469;
  font-size:14px;
  font-weight:400;
}

input,select,button,a {
  font:inherit;
}

input[type=number] {
  min-width:0;
  width:100%;
  border:0;
  background:transparent;
  outline:0;
  font-weight:400;
  color:#173a2e;
  -moz-appearance:textfield;
}

input::-webkit-inner-spin-button,input::-webkit-outer-spin-button {
  -webkit-appearance:none;
  margin:0;
}

input::placeholder {
  color:#79847d;
}

.input-unit:focus-within,select:focus-visible,.segments label:has(:focus-visible) {
  outline:2px solid #397963;
  outline-offset:2px;
}

.segments {
  display:flex;
  border:1px solid #cbd5cb;
  border-radius:6px;
  overflow:hidden;
}

.segments label {
  flex:1;
  display:grid;
  place-items:stretch;
  position:relative;
  cursor:pointer;
}

.segments label+label {
  border-left:1px solid #cbd5cb;
}

.segments input {
  position:absolute;
  opacity:0;
  width:1px;
}

.segments span {
  display:grid;
  place-items:center;
  font-weight:500;
}

.segments input:checked+span {
  background:#deebe1;
  color:#164734;
  font-weight:bold;
}

form>label {
  margin-top:17px;
}

select {
  appearance:none;
  padding:0 36px 0 13px;
  color:#244337;
  background-image:linear-gradient(45deg,transparent 50%,#617366 50%),linear-gradient(135deg,#617366 50%,transparent 50%);
  background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;
  background-size:5px 5px;
  background-repeat:no-repeat;
}

.hint {
  margin:6px 0 0;
}

.error {
  background:#fff0eb;
  border-left:3px solid #ac4429;
  padding:8px 12px;
  color:#8e311c;
  font-size:14px;
}

.primary,.buttons a,.buttons button,.again {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:45px;
  padding:9px 19px;
  border-radius:6px;
  text-decoration:none;
  cursor:pointer;
  border:1px solid #bfcfc3;
  font-weight:600;
}

.primary,.buttons .primary {
  background:#1c513e;
  color:white;
  border-color:#1c513e;
}

.primary:hover,.buttons .primary:hover {
  background:#123d2e;
}

#submit {
  width:100%;
  margin-top:22px;
}

.primary:disabled {
  opacity:.6;
  cursor:wait;
}

.summary {
  display:flex;
  flex-direction:column;
}

.cover {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(115deg,#123b32,#245542 75%,#42664c);
  color:#f7eed9;
  padding:25px 29px 22px;
  min-height:173px;
}

.cover-art {
  position:absolute;
  inset:0;
  z-index:-1;
  background:repeating-radial-gradient(ellipse 60% 110% at 110% 135%,transparent 0 7px,#d9c78e46 7.5px 8px,transparent 8.5px 13px);
  mask-image:linear-gradient(105deg,transparent 12%,black 78%);
}

.cover-name {
  font:40px/1.35 "STSong","SimSun",serif;
  letter-spacing:.13em;
}

.cover-sub {
  font-size:14px;
  letter-spacing:.11em;
  color:#ddcfaa;
  margin-top:2px;
}

.cover-product {
  margin-top:16px;
  font-size:14px;
  color:#eeefe7;
}

.summary-body {
  padding:22px 27px;
}

.summary-body h2 {
  font-size:18px;
}

dl {
  margin:12px 0 0;
  display:grid;
  grid-template-columns:auto 1fr;
}

dt,dd {
  margin:0;
  padding:10px 0;
  border-bottom:1px solid #e7ece7;
  font-size:15px;
}

dt {
  color:#637369;
}

dd {
  text-align:right;
  color:#214431;
  font-weight:600;
  overflow-wrap:anywhere;
}

dt:last-of-type,dd:last-of-type {
  border:0;
}

.result {
  margin-top:24px;
}

.result p {
  color:#50665a;
}

.report-review {
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:0 0 16px;
  padding:10px 12px;
  border-left:3px solid #a67b39;
  border-radius:4px;
  background:#faf4e6;
  color:#554223;
  font-size:14px;
}

.beta-badge {
  flex:none;
  padding:2px 6px;
  border:1px solid #a67b39;
  border-radius:4px;
  font-size:11px;
  line-height:1.3;
  letter-spacing:.06em;
}

.buttons {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.buttons a,.buttons button,.again {
  background:white;
  color:#254b37;
  font-size:15px;
}

.again {
  margin-top:12px;
}

#preview {
  display:block;
  width:100%;
  height:auto;
  margin-top:18px;
  border:1px solid #dae1db;
}

#printframe {
  position:absolute;
  width:1px;
  height:1px;
  border:0;
  opacity:0;
  pointer-events:none;
}

footer {
  padding:18px 28px 30px;
  display:flex;
  justify-content:space-between;
  color:#6f7b72;
  border-top:1px solid #dce3da;
  font-size:13px;
}

[hidden] {
  display:none!important;
}

:focus-visible {
  outline:3px solid #528666;
  outline-offset:3px;
}

@media(max-width:740px) {
  .bar {
    height:64px;
    padding:0 16px;
  }
  .brand {
    font-size:15px;
    gap:8px;
  }
  .seal {
    width:32px;
    height:32px;
  }
  #health {
    font-size:12px;
  }
  main {
    padding:24px 16px 30px;
  }
  .intro p {
    font-size:15px;
  }
  .layout {
    grid-template-columns:1fr;
    gap:14px;
    margin-top:20px;
  }
  .form-card,.result {
    padding:20px;
  }
  .field-row {
    gap:12px;
  }
  .cover {
    min-height:unset;
    padding:16px 20px;
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:8px;
  }
  .cover-name {
    font-size:26px;
  }
  .cover-product {
    margin:0;
  }
  .summary-body {
    padding:16px 20px;
  }
  footer {
    padding:16px;
    gap:10px;
    flex-wrap:wrap;
  }
  .buttons>* {
    flex:1;
    white-space:nowrap;
  }
  .result .card-heading {
    align-items:start;
  }
  #health {
    max-width:100px;
  }
}

@media print {
  header,main,footer {
    display:none;
  }
}
