:root {
  color-scheme: light;
  color: #23392e;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
.top, main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; border-bottom: 1px solid #dce3d7; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-tree { width: 31px; height: 35px; object-fit: contain; flex-shrink: 0; }
.back { font-size: 13px; color: #47624e; }
.intro { padding: 26px 0 20px; }
.eyebrow { margin: 0 0 10px; color: #536b56; font-size: 10px; letter-spacing: .17em; }
.eyebrow span { margin-left: 8px; padding: 4px 7px; border-radius: 4px; background: #eef2e7; letter-spacing: .03em; }
h1 { margin: 0; font: 500 clamp(28px, 4vw, 47px)/1.4 "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; }
.intro > p:last-child { margin: 12px 0 0; color: #526551; font-size: 14px; line-height: 1.75; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 22px; margin-bottom: 40px; }
.stage { overflow: hidden; margin: 0; border: 1px solid #d9e2d4; border-radius: 12px; background: #f4f5ee; }
.viewport {
  position: relative;
  height: clamp(440px, 68vh, 700px);
  background: radial-gradient(ellipse at 49% 42%, #fdfdf9, #e9ede1);
}
canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
canvas.dragging { cursor: grabbing; }
.message { position: absolute; top: 44%; inset-inline: 12px; margin: 0; text-align: center; font-size: 14px; }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 11px 15px; border-top: 1px solid #d9e2d4; font-size: 11px; color: #536b56; }
figcaption > span:first-child { letter-spacing: .10em; }
.panel { padding: 18px; border: 1px solid #d9e2d4; border-radius: 12px; }
.panel h2 { margin: 0; font-size: 16px; }
.panel p { margin: 8px 0 13px; font-size: 13px; color: #526551; line-height: 1.75; }
.controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
button { min-height: 41px; padding: 4px 7px; border: 1px solid #cdd9c9; border-radius: 6px; color: #2f4e3d; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
button:hover { background: #f1f4ec; }
button[aria-pressed="true"] { background: #e8efe2; border-color: #8eaa87; font-weight: 600; }
button:focus-visible, canvas:focus-visible { outline: 2px solid #55765e; outline-offset: -2px; }
.zoom { display: flex; gap: 7px; margin-top: 8px; }
.zoom button { width: 46px; font-size: 16px; }
.measurements { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dce3d7; }
dl { margin: 7px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 0; }
dt { font-size: 12px; color: #526551; }
dd { margin: 0; font: 600 23px Georgia, serif; font-variant-numeric: tabular-nums; }
dd small { font-size: 12px; }
@media (max-width: 740px) {
  .top, main { width: calc(100% - 28px); }
  .top { min-height: 60px; }
  .layout { grid-template-columns: 1fr; gap: 12px; }
  .viewport { height: clamp(300px, 55svh, 500px); }
  .panel { padding: 14px; }
}
