/* Standalone layout for the regression app from https://yamlab.jp/research/. */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #334155;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1008px; margin: 0 auto; padding: 32px 24px 24px; }
header { margin-bottom: 34px; }
h1 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px); line-height: 1.5; font-weight: 650; }
p { margin: 0; line-height: 1.8; }
.intro { color: #64748b; font-size: 15px; }
[data-reg] { position: relative; margin: 0 auto; border: 1px solid #e2e8f0; background: #fff; }
[data-reg] > span {
  position: absolute; top: -13px; left: 16px; display: inline-flex; align-items: center;
  padding: 2px 10px; border: 1px solid #f9a8c4; border-radius: 999px;
  background: #fcecf2; color: #ad1457; font-size: 12px; font-weight: 600;
}
[data-reg] > p { padding: 24px 16px 4px; font-size: 13px; color: #64748b; }
[data-reg-canvas] { display: block; width: 100%; cursor: crosshair; touch-action: manipulation; }
[data-reg] > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px; border-top: 1px solid #e2e8f0; }
label { display: flex; flex: 1; min-width: 230px; align-items: center; gap: 12px; color: #64748b; font-size: 13px; }
label > span { flex-shrink: 0; }
[data-reg-degree-label] { min-width: 2.5em; }
input[type="range"] { width: 100%; min-width: 50px; flex: 1; margin: 0; height: 44px; accent-color: #2b6f92; cursor: pointer; }
button { flex-shrink: 0; min-height: 44px; padding: 7px 16px; border: 1px solid #cbd5e1; border-radius: 0; background: #fff; font: inherit; font-size: 14px; color: #334155; cursor: pointer; }
[data-reg-add] { font-weight: 600; }
[data-reg-reset] { font-size: 13px; color: #475569; }
button:hover { border-color: #2b6f92; color: #245c78; }
:focus-visible { outline: 2px solid #2b6f92; outline-offset: 4px; }
footer { margin-top: 20px; color: #64748b; font-size: 12px; }
footer p + p { margin-top: 6px; }
a { color: #2b6f92; text-underline-offset: 3px; }
@media (max-width: 600px) {
  main { padding: 24px 12px 20px; }
  .intro { font-size: 14px; }
  label { flex-basis: 100%; min-width: 0; }
  [data-reg] > div { gap: 8px 12px; padding: 12px; }
  [data-reg] > p { padding-left: 12px; padding-right: 12px; font-size: 12px; }
}
