.space-choice { border: 1px solid var(--border, #ccd4e2); border-radius: 20px; padding: clamp(20px, 3.2vw, 36px); background: #fff; margin-block: 28px; }
.space-choice [hidden], .gap-figure [hidden] { display: none !important; }
.longtail-page .reference-contents { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 0; border-block: 1px solid #d3dced; }
.longtail-page .reference-contents a { display: inline-flex; align-items: center; min-height: 44px; }
.space-choice h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 8px 0 12px; }
.space-choice p { max-width: 70ch; }
.sc-workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.sc-controls { display: grid; gap: 12px; }
.sc-fields { display: grid; gap: 16px; align-content: start; min-width: 0; }
.sc-fields label, .sc-verify label, .gap-font-control { display: grid; gap: 8px; font-size: 15px; font-weight: 650; }
.space-choice select, .space-choice input, .space-choice textarea, .gap-font-control select { width: 100%; min-height: 48px; border: 1px solid #aebbd1; border-radius: 8px; background: #fff; color: #172033; padding: 12px; font: inherit; }
.space-choice input[type=number] { max-width: 150px; }
.space-choice [aria-invalid=true] { border: 2px solid #b42318; }
.sc-output { padding: 20px; background: #f3f6fd; border-radius: 12px; display: grid; gap: 10px; min-width: 0; align-content: start; }
.sc-output strong { font-size: 20px; }
.sc-output code { font-size: 15px; }
.sc-preview { padding: 12px; background: #fff; border: 1px solid #d3dced; border-radius: 8px; overflow-x: auto; font-size: 32px; white-space: pre; font-family: Arial, sans-serif; letter-spacing: normal; }
.space-choice .sc-note { font-size: 14px; line-height: 1.55; margin: 0; color: #526075; }
.sc-copy { justify-self: start; white-space: normal; }
.sc-status { min-height: 3em; font-size: 15px; line-height: 1.5; color: #334155; }
.space-choice textarea { resize: vertical; }
.sc-verify { border-top: 1px solid #d3dced; padding-top: 20px; margin-top: 20px; }
.sc-verify-heading { font-size: 18px; margin: 0 0 12px; }
.sc-verify textarea { min-height: 90px; }
.sc-report { overflow-wrap: anywhere; margin: 12px 0; font-size: 15px; }
.sc-verify .button { min-height: 44px; }
.gap-figure { padding: clamp(18px, 3vw, 28px); background: #f3f6fd; border: 1px solid #d3dced; border-radius: 16px; margin: 20px 0; }
.gap-font-control { max-width: 300px; margin-bottom: 20px; }
.gap-rows { display: grid; gap: 0; }
.gap-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(80px, .65fr) minmax(130px, .75fr); gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid #d3dced; }
.gap-row strong, .gap-row code { display: block; }
.gap-row code, .gap-row output { font-size: 14px; color: #526075; }
.gap-sample { font-size: 42px; line-height: 1.4; font-family: Arial, Helvetica, sans-serif; letter-spacing: normal; white-space: pre; font-kerning: none; font-variant-ligatures: none; }
.gap-figure figcaption { font-size: 14px; line-height: 1.6; color: #526075; margin-top: 16px; }
.longtail-page .sc-matrix th, .longtail-page .sc-matrix td { vertical-align: top; }
.longtail-page .sc-matrix th:first-child { min-width: 150px; }
.longtail-page .sc-matrix code { display: block; font-size: 13px; }
.processing-trace { display: grid; gap: 0; border-block: 1px solid #ccd4e2; }
.processing-trace > div { padding: 20px 0; border-bottom: 1px solid #e0e5ee; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.processing-trace > div:last-child { border: 0; }
.processing-trace code { overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14px; }
.processing-trace p { margin: 4px 0 0; }
.longtail-page :is(select, input, textarea, button, a):focus-visible { outline: 3px solid #2454c6; outline-offset: 3px; }
@media (max-width: 700px) {
  .sc-workbench { grid-template-columns: 1fr; gap: 20px; }
  .sc-copy { width: 100%; }
  .gap-row { grid-template-columns: 1fr auto; }
  .gap-row output { grid-column: 1 / -1; }
  .longtail-page .sc-matrix, .longtail-page .sc-matrix tbody, .longtail-page .sc-matrix tr, .longtail-page .sc-matrix th, .longtail-page .sc-matrix td { display: block; width: 100%; min-width: 0; }
  .longtail-page .sc-matrix caption { display: block; width: 100%; padding-block: 12px; text-align: left; }
  .longtail-page .sc-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .longtail-page .sc-matrix tr { padding: 12px 0; border-bottom: 1px solid #ccd4e2; }
  .longtail-page .sc-matrix td, .longtail-page .sc-matrix th { padding: 8px 12px; border: 0; }
  .longtail-page .sc-matrix td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; color: #526075; }
  .longtail-page .sc-matrix th { background: #f3f6fd; }
  .processing-trace > div { grid-template-columns: 1fr; gap: 8px; }
}
