/* 土台: リセット・本文の字・補助の class（読み上げ用・等幅・薄い字・小さい字・伸びる空き・幅で隠す）・印（アイコン）。
   どの画面にも当たる物だけを置く。色・字・角は tokens.css の変数。 */

/* ---------------------------------------------------------------- リセットと本文 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg-0); color: var(--fg-0); }
body { font-family: var(--f-ui); font-size: var(--fs-body); line-height: var(--lh); overflow: hidden;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }

/* ---------------------------------------------------------------- 補助の class */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* 読み上げにだけ出す字 */
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.small { font-size: var(--fs-label); }
.err { color: var(--err); font-weight: 700; }
.grow { flex: 1 1 auto; }                     /* 横並びの中の伸びる空き */
.pad { padding: 6px 12px; }
.col { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }

/* ---------------------------------------------------------------- 印（icons.svg の線の絵。parts.js の Icon）と回る印 */
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.spin { animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------------------------------------------------------------- 幅で隠す字（釦の名前の後ろ半分など） */
@media (max-width: 767px) { .hide-m { display: none !important; } }
