.cs-page { max-width: 76rem; }
.cs-workbench h2 { margin-bottom: .7rem; }
.cs-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: .9rem; }
.cs-editor, .cs-panel, .cs-results > div { min-width: 0; border: 1px solid var(--color-rule-strong); border-radius: .7rem; padding: clamp(.65rem, 2vw, 1rem); }
.cs-side { display: grid; gap: .8rem; min-width: 0; }
.cs-panel > label { display: block; margin-top: .65rem; }
.cs-panel input[type=file] { display: block; width: 100%; min-height: 2rem; font-size: .85rem; }
.cs-controls { display: flex; flex-wrap: wrap; gap: .45rem .65rem; margin: .55rem 0; }
.cs-controls > label { display: grid; flex: 1 1 6.6rem; min-width: 0; font-size: .85rem; align-content: start; }
.cs-controls input, .cs-controls select { width: 100%; min-width: 0; min-height: 2.35rem; padding: .25rem; }
.cs-panel .cs-check { display: flex; gap: .4rem; align-items: center; min-height: 1.75rem; margin: 0; font-size: .9rem; }
.cs-check input { width: 24px; height: 24px; }
.cs-workbench .btn { min-height: 2.4rem; justify-content: center; flex-wrap: wrap; gap: .25rem; text-align: center; }
.cs-workbench .btn[aria-pressed=true] { outline: 2px solid currentColor; outline-offset: -2px; }
.cs-workbench small { font-weight: normal; }
.cs-chart-scroll, .cs-table-scroll { max-width: 100%; overflow: auto; }
.cs-chart-scroll { max-height: 70vh; background: #eee8dc; border: 1px solid #b4a797; border-radius: .4rem; }
#chart { display: block; touch-action: none; }
#chart.cs-pan { touch-action: pan-x pan-y; }
#chart:focus-visible { outline: 3px solid #453682; outline-offset: -3px; }
#chart-help, #thread-note, .cs-credit { font-size: .88rem; color: var(--color-ink-2); margin: .55rem 0; }
.cs-status { min-height: 1.6em; margin: .6rem 0; }
.cs-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .55rem; margin: .6rem 0 1.25rem; }
.cs-results dt { font-size: .85rem; }
.cs-results dd { margin: .25rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.cs-table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .9rem; }
.cs-table th, .cs-table td { text-align: left; vertical-align: top; padding: .45rem; border-bottom: 1px solid var(--color-rule-strong); }
.cs-reference th { min-width: 7rem; }
.cs-reference td:last-child { min-width: 10rem; }
.cs-swatch { display: inline-block; width: 1em; height: 1em; border: 1px solid #796e62; vertical-align: middle; margin-right: .3em; }
.cs-section pre { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid currentColor; padding: .6rem .8rem; margin: .65rem 0; font-size: .9rem; }
.cs-section summary, .cs-page a:not(.skip), .cs-credit a, .cs-nav a { min-height: 24px; }
.cs-section summary { display: list-item; padding: .35rem 0; cursor: pointer; }
.cs-credit a, .cs-section p a { display: inline-block; }
.cs-page img { max-width: 100%; }
.cs-footer { max-width: 76rem; margin: auto; padding: 0 var(--page-gutter) 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.cs-footer a { display: inline-flex; min-height: 24px; align-items: center; }
@media (max-width: 760px) { .cs-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 640px) {
  header.nav.cs-nav > nav { min-width: 0; max-width: 100%; }
  header.nav.cs-nav .nav__links { flex-wrap: wrap; }
}

html[lang=ja] body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
html[lang=ja] h1, html[lang=ja] h2, html[lang=ja] h3 { font-family: inherit; }
.cs-nav > nav { min-width: 0; }
.cs-nav .nav__links { flex-wrap: wrap; gap: .2rem .8rem; }
.cs-nav a, .cs-page a:not(.skip) { display: inline-flex; align-items: center; }
.cs-page .btn, .cs-page input, .cs-page select, .cs-page summary,
.cs-panel input[type=file], .cs-controls input, .cs-controls select { min-height: 44px; }
.cs-page { min-width: 0; }
.cs-controls > label { flex-basis: 9rem; }
.cs-controls select { font: inherit; max-width: 100%; }
.cs-panel .cs-check { min-height: 44px; margin-top: .35rem; }
.cs-check input { flex: 0 0 24px; margin: 0; }
.cs-presets, .cs-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cs-presets .btn, .cs-actions .btn { text-align: center; white-space: normal; }
.cs-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-results > div { padding: .6rem .75rem; }
.cs-chart-scroll { max-height: none; }
#chart { margin: 0 auto; cursor: crosshair; }
#chart[data-tool=eyedropper] { cursor: copy; }
.cs-palette .btn { text-align: start; }
.cs-palette .cs-swatch { width: 1.15em; height: 1.15em; border-radius: .2rem; }
.cs-rows { min-width: 0; table-layout: fixed; }
.cs-rows th:first-child { width: 4.7rem; }
.cs-rows th:nth-child(2) { width: 9.4rem; }
.cs-rows td { overflow-wrap: anywhere; }
.cs-reference { min-width: 58rem; }
.cs-table-scroll:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cs-panel h3, .cs-editor h3 { margin: 0 0 .55rem; }
.cs-workbench label > output { font-weight: 700; }
.cs-export { margin-top: 1rem; }
.cs-footer a { min-height: 34px; }
@media (max-width: 640px) {
  header.nav.cs-nav { flex-wrap: wrap; gap: .3rem .75rem; }
  header.nav.cs-nav > nav { flex: 1 1 100%; }
  header.nav.cs-nav .nav__links { display: flex; }
  .cs-rows th:first-child { width: 3.6rem; }
  .cs-rows th:nth-child(2) { width: 5rem; }
}
