/* ====== 共通 ====== */
:root { --gap:12px; --panel-w:360px; --panel-cols:1; }
*{ box-sizing:border-box; }
body{ margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Hiragino Sans","Noto Sans JP",sans-serif; display:flex; height:100vh; }
#left{ width:var(--panel-w); border-right:1px solid #ddd; background:#f7f7f7; padding:var(--gap); overflow:auto; font-size:115%; }
#resizer{ width:6px; cursor:col-resize; background:#e5e7eb; }
#resizer:hover{ background:#d1d5db; }
#right{ flex:1; background:#eee; overflow:auto; padding:var(--gap); }

h2{ margin:0 0 8px; font-size:1.25em; line-height:1.2; letter-spacing:.01em; color:#222; }
.group-title{ margin-top:10px; font-size:1.0em; color:#333; font-weight:700; }
.note{ font-size:.95em; color:#555; margin-top:6px; line-height:1.6; }
.small{ font-size:.9em; color:#555; }

.btn{ display:block; width:100%; margin:6px 0; padding:.85em; border-radius:10px; text-align:left; border:1px solid #ccc; background:#fff; cursor:pointer; font-size:1em; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.row{ display:flex; gap:8px; margin-top:8px; }
.row>*{ flex:1; }
.panel-grid{ display:grid; grid-template-columns:repeat(var(--panel-cols),1fr); gap:8px; }
.btn .name{ display:block; font-weight:700; line-height:1.3; }
.btn .remain{ display:inline-block; margin-top:4px; font-size:.9em; opacity:.8; }

label.inline{ display:flex; align-items:center; gap:8px; cursor:pointer; }
input[type="number"],input[type="text"],select{
  padding:8px; border-radius:10px; border:1px solid #ccc; width:100%; font-size:1em;
}
input[type="range"]{ width:100%; }

canvas{ display:block; border:1px solid #333; background:#fff; touch-action:none; user-select:none; -webkit-user-select:none; }
kbd{ background:#eee; padding:0 4px; border:1px solid #ccc; border-radius:4px; }
