:root {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #203a36;
  background: #f4f6f2;
  --ink: #203a36;
  --accent: #13675c;
  --muted: #536b65;
  --line: #d6ded8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, ul { margin: 0; }
button, input { font: inherit; }
button { border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); cursor: pointer; }
button:not(:disabled):hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #238d80; outline-offset: 3px; }
main { max-width: 1522px; padding: 0 4vw; margin: 0 auto; }
.intro { padding: 23px 0 19px; }
h1 { font-size: clamp(32px, 3.5vw, 46px); font-weight: 700; letter-spacing: -.04em; }
.intro p { color: var(--muted); margin-top: 6px; font-size: 15px; line-height: 1.65; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(258px, 305px); gap: 16px; align-items: start; }
.viewer, .controls { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.viewhead, .viewfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; }
.viewhead > div:first-child, .cameraActions, .views { display: flex; align-items: center; gap: 7px; }
.viewhead strong { font-size: 15px; font-weight: 640; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #28877c; }
.views { background: #edf2ee; border-radius: 7px; padding: 3px; gap: 2px; }
.views button { background: transparent; border: 0; padding: 4px 13px; font-size: 13px; font-weight: 600; }
.views button[aria-pressed=true] { background: #275c50; color: #fff; }
.stage { position: relative; background: radial-gradient(ellipse at 48% 44%, #fcfdfb, #edf2ee); border-block: 1px solid var(--line); }
canvas { display: block; width: 100%; height: clamp(345px, 56vh, 620px); touch-action: none; cursor: grab; }
canvas:active { cursor: grabbing; }
#load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 90%; padding: 12px 15px; background: #fbfdfbf5; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
#load progress { display: block; width: 100%; margin-top: 7px; accent-color: var(--accent); }
#retry { margin-top: 8px; padding: 4px 12px; }
.viewfoot { color: var(--muted); font-size: 13px; }
.cameraActions { gap: 2px; }
.cameraActions button { border-color: transparent; padding: 4px 8px; font-size: 13px; }
.controls { padding: 21px; }
.controls h2 { font-size: 16px; font-weight: 650; }
.reading { display: flex; align-items: baseline; gap: 8px; margin: 9px 0 12px; }
.reading output { font-size: clamp(42px, 4.4vw, 61px); line-height: 1.15; font-weight: 580; letter-spacing: -.065em; color: var(--accent); font-variant-numeric: tabular-nums; }
.reading span { font-size: 13px; color: var(--muted); }
#angle { width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.playActions { display: flex; gap: 7px; margin-top: 16px; }
.playActions button { padding: 8px 11px; font-size: 14px; flex: 1; min-height: 38px; }
#play { color: #fff; background: #196757; border-color: #196757; }
.sectionRule { border-top: 1px solid var(--line); margin: 22px 0 17px; }
.key { list-style: none; padding: 8px 0 11px; }
.key li, .toggle { display: flex; align-items: center; gap: 9px; font-size: 13px; min-height: 30px; }
.key li > span:last-child { color: var(--muted); }
.swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.axis { background: #258d83; }
.base { background: #d0b992; }
.atlas { background: #abbfc6; }
.outline { border-top: 2px dashed #ae6a39; width: 13px; }
.toggle { border-top: 1px solid #e8ede9; min-height: 42px; cursor: pointer; }
.toggle input { margin-left: auto; width: 16px; height: 16px; accent-color: var(--accent); }
.hint { font-size: 13px; line-height: 1.7; margin-top: 11px; }
.note { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 8px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 13px 1px 20px; font-size: 11px; line-height: 1.7; color: var(--muted); }
footer a { color: inherit; }
@media(max-width: 730px) {
  .workspace { grid-template-columns: 1fr; gap: 10px; }
  main { padding-inline: 3vw; }
  .intro { padding: 15px 0 12px; }
  .controls { padding: 15px 17px; }
  .viewhead, .viewfoot { padding: 6px 10px; }
  canvas { height: clamp(268px, 43svh, 445px); }
  .reading { margin-block: 4px 7px; }
  .sectionRule { margin-block: 14px; }
}
@media(max-width: 410px) {
  .viewfoot { font-size: 11px; }
  .cameraActions button { padding-inline: 5px; }
}
