:root {
  --ink: #142d45;
  --muted: #50616c;
  --gold: #845d25;
  --lightgold: #e7c485;
  --line: #d9dedc;
  --paper: #f5f4ef;
  --teal: #14665c;
  --soft: #e9f3ef;
  --blue: #567992;
  --face: Montserrat, 'PingFang HK', 'Microsoft JhengHei', Arial, sans-serif;
  --display: 'Songti HK', 'Songti TC', 'Noto Serif TC', Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--face);
  line-height: 1.65;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
select {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #ac7d37;
  outline-offset: 3px;
}
.content {
  width: min(91%, 1160px);
  margin-inline: auto;
}
.mast {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cbd1d1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand span {
  font:
    500 1.38rem/1 Arial,
    sans-serif;
  letter-spacing: -0.05em;
}
.brand b {
  color: var(--gold);
}
.brand strong {
  border-left: 1px solid #c7cccd;
  padding-left: 0.62rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
}
.back,
footer a {
  font-size: 0.94rem;
  font-weight: 600;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  padding: 0.8rem;
  background: white;
  z-index: 2;
}
.intro {
  padding: clamp(2.5rem, 5vw, 5rem) 0 1.7rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--gold);
  font-weight: 650;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}
.eyebrow span {
  width: 26px;
  border-top: 2px solid currentColor;
}
.intro h1 {
  font: 650 clamp(2.45rem, 5vw, 4.35rem)/1.23 var(--display);
  letter-spacing: -0.04em;
  margin: 0.5rem 0 0.6rem;
}
.intro > p:last-child {
  color: var(--muted);
  margin: 0;
  max-width: 48rem;
}
.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: end;
  margin: 0.5rem 0 0;
}
.tabbar a {
  padding: 0.72rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #ebece7;
  border-radius: 6px 6px 0 0;
}
.tabbar a[aria-current] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tabbar a:hover:not([aria-current]) {
  background: #dfe5e2;
}
#workbench {
  border: 1px solid #ccd3d1;
  background: #fff;
  border-radius: 0 7px 7px 7px;
  overflow: hidden;
}
.screen-head {
  background: var(--ink);
  color: #f4f2e8;
  padding: clamp(1.4rem, 3vw, 2.7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.screen-head h2 {
  font: 600 clamp(1.8rem, 3.2vw, 2.55rem)/1.35 var(--display);
  margin: 0.2rem 0;
}
.screen-head p:last-child {
  margin: 0;
  color: #d0dbe1;
}
.light {
  color: var(--lightgold);
}
.reset {
  color: #f6f4ef;
  background: transparent;
  border: 1px solid #83949f;
  border-radius: 3px;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  font-size: 0.9rem;
}
.reset:hover {
  background: #2a455b;
}
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
}
.main-panel,
.action-panel {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.65rem);
}
.action-panel {
  background: #fafaf7;
  border-left: 1px solid var(--line);
}
h3 {
  font-size: 1.25rem;
  line-height: 1.42;
  margin: 0 0 0.4rem;
}
.sub,
.footnote {
  color: var(--muted);
  margin: 0.3rem 0 1.2rem;
}
.footnote {
  font-size: 0.88rem;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.4rem;
}
.choice {
  background: white;
  color: var(--ink);
  border: 1px solid #a5b0b3;
  border-radius: 3px;
  padding: 0.42rem 0.85rem;
  min-height: 40px;
}
.choice[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.choice:hover:not([aria-pressed='true']) {
  background: var(--paper);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0;
  gap: 0.5rem;
}
.metric {
  border-top: 2px solid #c6a870;
  padding: 0.55rem 0 0.4rem;
}
.metric > span {
  font-size: 0.86rem;
  color: var(--muted);
}
.metric b {
  display: block;
  font: 550 clamp(1.4rem, 2.7vw, 2.05rem)/1.45 var(--face);
  font-variant-numeric: tabular-nums;
}
.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.row > span:first-child {
  flex: 1;
  min-width: 0;
}
.row h4,
.bar-row h4 {
  font-size: 1rem;
  margin: 0;
}
.row small {
  color: var(--muted);
  font-size: 0.9rem;
}
.value {
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status {
  display: inline-block;
  padding: 0.18rem 0.52rem;
  background: #f5ead5;
  color: #705021;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.86rem;
}
.status.done {
  color: #155e56;
  background: var(--soft);
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(5.9rem, auto) 1fr 2.3rem;
  gap: 0.65rem;
  align-items: center;
  margin: 0.8rem 0;
}
.track {
  display: block;
  background: #e4e8e6;
  height: 7px;
  border-radius: 8px;
  overflow: hidden;
}
.track i {
  display: block;
  background: var(--blue);
  height: 100%;
  border-radius: inherit;
}
.bar-row .value {
  text-align: right;
}
.box {
  background: #eef2f1;
  padding: 1rem 1.12rem;
  border-left: 3px solid #7e9b9e;
  margin: 1rem 0;
}
.box strong {
  display: block;
  font-size: 1rem;
}
.box p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}
.action-panel label {
  display: block;
  font-weight: 650;
  margin: 1rem 0 0.35rem;
}
select {
  color: var(--ink);
  background: white;
  border: 1px solid #9eabae;
  border-radius: 3px;
  max-width: 100%;
  width: 100%;
  padding: 0.6rem;
}
.primary {
  display: block;
  color: white;
  background: var(--ink);
  border: 0;
  border-radius: 3px;
  padding: 0.68rem 1.05rem;
  font-weight: 650;
  margin: 1.1rem 0 0.6rem;
}
.primary:hover:not(:disabled) {
  background: #294d63;
}
.primary:disabled {
  background: #dce7e3;
  color: #254c45;
  cursor: default;
}
.outcome {
  margin: 0.7rem 0 0;
  color: var(--teal);
  font-weight: 600;
}
.step-list {
  list-style: none;
  padding: 0;
  display: grid;
  margin: 1.4rem 0;
}
.step-list li {
  position: relative;
  border-left: 2px solid #d1d9d8;
  padding: 0 0 1.3rem 1.25rem;
  margin-left: 0.4rem;
}
.step-list li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.step-list li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.48rem;
  border: 2px solid #aebbbd;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #fff;
}
.step-list .complete::before {
  background: var(--teal);
  border-color: var(--teal);
}
.step-list .current::before {
  background: #ad8036;
  border-color: #ad8036;
}
.step-list strong {
  font-size: 1.05rem;
}
.step-list small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 1rem 0;
}
legend {
  font-weight: 650;
}
.action-panel .tick {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 400;
}
.tick input {
  accent-color: var(--teal);
  width: 1rem;
  height: 1rem;
  flex: none;
}
.result-card {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.result-head h4 {
  margin: 0;
}
.result-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem;
  margin: 0.65rem 0 0;
}
.result-card dt {
  color: var(--muted);
}
.result-card dd {
  margin: 0;
  font-weight: 600;
}
.noscript {
  margin: 2rem;
}
footer {
  padding: 1.6rem 0 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
@media (max-width: 760px) {
  .scene {
    grid-template-columns: 1fr;
  }
  .action-panel {
    border: 0;
    border-top: 1px solid var(--line);
  }
  .screen-head {
    align-items: start;
  }
  .content {
    width: 92%;
  }
  .intro {
    padding-top: 2rem;
  }
}
@media (max-width: 480px) {
  .mast {
    min-height: 62px;
  }
  .tabbar {
    gap: 0.2rem;
  }
  .tabbar a {
    font-size: 0.89rem;
    padding: 0.65rem 0.55rem;
  }
  .screen-head {
    display: block;
  }
  .screen-head .reset {
    margin-top: 0.75rem;
  }
  .metrics {
    gap: 0.4rem;
  }
  .metric > span {
    font-size: 0.79rem;
  }
  .back {
    font-size: 0.85rem;
  }
  .bar-row {
    grid-template-columns: 5.85rem 1fr 2.3rem;
  }
  .result-card dl {
    font-size: 0.94rem;
  }
}
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.related a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.header-tools select {
  width: auto;
  max-width: 10rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.9rem;
  background: transparent;
}
html[lang='en'] .bar-row {
  grid-template-columns: minmax(7rem, 0.84fr) minmax(3rem, 1.1fr) 2.3rem;
}
html[lang='en'] .metric > span {
  display: block;
}
html[lang='en'] .result-card dl {
  grid-template-columns: minmax(0, 1fr) auto;
}
@media (max-width: 540px) {
  .mast {
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    padding-block: 0.65rem;
  }
  .header-tools {
    gap: 0.6rem;
  }
  .header-tools select {
    max-width: 8rem;
  }
  html[lang='en'] .scene .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html[lang='en'] .action-panel .choice {
    padding: 0.4rem 0.55rem;
  }
}
