/* 設定画面（settings.html） */
body.setPage { font-size: 13px; }
.bar .grow { flex: 1; }
.tabs.inline { border: 0; }
.tabs.inline button { flex: none; padding: 4px 14px; }
.setMain { flex: 1; overflow: auto; padding: 10px 14px; display: block; }
.setMain h3 { margin: 4px 0 8px; }
.modes { display: flex; gap: 4px; margin-bottom: 10px; }
.modes button.on, .pick button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.split { display: flex; gap: 14px; align-items: flex-start; }
.split .pick { width: 150px; flex: none; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 140px); overflow: auto; position: sticky; top: 0; }
.split .body { flex: 1; min-width: 0; }
.pick button { display: flex; justify-content: space-between; text-align: left; padding: 3px 8px; }
.pick button span { color: var(--sub); font-size: 12px; }
.pick button.on span { color: #dfe8f5; }
.pick button.over { border-color: #c62828; }
.pick button.over span { color: #c62828; font-weight: bold; }
.pick .pg { margin-top: 6px; font-size: 11px; color: var(--sub); }
.pick.row { flex-direction: row; flex-wrap: wrap; width: auto; position: static; max-height: none; margin-bottom: 6px; display: flex; gap: 3px; }
table.sheet { border-collapse: collapse; background: var(--panel); }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 1px 3px; font-size: 12px; text-align: left; white-space: nowrap; }
.sheet thead th { background: #e9edf3; position: sticky; top: 0; z-index: 1; }
.sheet input, .sheet select { border: 1px solid transparent; border-radius: 2px; padding: 2px 3px; font-size: 12px; background: transparent; }
.sheet input:focus, .sheet select:focus { border-color: var(--accent); background: #fff; outline: none; }
.sheet input.num, .sheet td.num { text-align: right; }
.sheet td.c { text-align: center; }
.sheet input.warn { background: #fbeeb0; }
.sheet .warnc { background: var(--bad); font-weight: bold; }
.sheet tr.off td, .sheet td.off { color: #9aa3ad; background: #f4f5f7; }
.sheet tr.off input, .sheet td.off input { color: #9aa3ad; }
.sheet button.cls { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.mwrap { overflow: auto; max-height: calc(100vh - 170px); }
.matrix tbody th { background: #f3f5f8; position: sticky; left: 0; }
.matrix td { min-width: 90px; }
.matrix .more { font-size: 10px; color: #b36b00; margin-left: 2px; }
.dcList .dcg { margin: 4px 0; }
.dcList .dcg b { display: inline-block; width: 3em; }
.dcList label { display: inline-flex; align-items: center; gap: 2px; margin: 0 8px 0 0; }
#ngGrid table.mini td { width: 40px; height: 28px; cursor: pointer; }
.sheet button.tog { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.tgList { max-height: 55vh; overflow: auto; border: 1px solid var(--line); padding: 4px 8px; margin-top: 6px; }
.tgList .tgc { margin: 3px 0; }
.tgList .tgc b { display: inline-block; min-width: 4.5em; }
.tgList label { display: inline-flex; align-items: center; gap: 2px; margin: 0 10px 0 0; }
.tgList .note { margin-left: 3px; }
