:root {
  --bg: #0d1117; --panel: #161b22; --panel2: #1f2630; --line: #2a313c; --text: #e6edf3; --muted: #8b949e;
  --buy: #2f81f7; --sell: #e5534b; --up: #26a69a; --down: #ef5350; --warn: #d29922; --ok: #3fb950;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.35 -apple-system, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif; overscroll-behavior: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .45; cursor: default; }
[hidden] { display: none !important; }
#app, .screen { height: 100%; }
#main { display: flex; flex-direction: column; padding-top: var(--safe-t); }

/* 登録 */
#pair { display: flex; align-items: center; justify-content: center; padding: 16px; }
.pair-box { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.pair-box h1 { margin: 0 0 4px; font-size: 22px; }
.pair-box label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.pair-box input { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 18px; color: var(--text); }
#pair-code { letter-spacing: .4em; text-align: center; font-size: 24px; }
.primary { background: var(--buy); color: #fff; border-radius: 8px; padding: 12px; font-weight: 600; }
.err { color: var(--sell); min-height: 1.2em; margin: 0; }
.muted { color: var(--muted); text-align: center; padding: 24px 8px; }

/* 上部 */
#top { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 40px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.on { background: var(--ok); } .dot.off { background: var(--sell); } .dot.half { background: var(--warn); }
#acct { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.badge { white-space: nowrap; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--warn); color: #000; font-weight: 700; }
.badge.demo { background: #30363d; color: var(--text); }
.spacer { flex: 1; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 13px; }

/* チャート */
.tab { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#pricebar { display: grid; grid-template-columns: 1fr 96px 1fr; gap: 6px; padding: 6px; background: var(--bg); }
.trade { border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; align-items: flex-start; color: #fff; min-height: 52px; }
.trade small { font-size: 11px; opacity: .85; font-weight: 600; }
.trade b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.trade.sell { background: var(--sell); } .trade.buy { background: var(--buy); align-items: flex-end; }
.trade:active:not(:disabled) { filter: brightness(1.2); }
#lot-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
#lot-box small { font-size: 10px; color: var(--muted); }
.lot-row { display: flex; align-items: center; gap: 2px; }
#lot { width: 52px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.mini { width: 20px; height: 28px; background: var(--panel2); border-radius: 4px; font-size: 14px; }
#risk { width: 64px; text-align: center; background: var(--panel); border: 1px solid #6b5a1e; border-radius: 6px; padding: 4px 2px; font-size: 14px; font-variant-numeric: tabular-nums; }
#lot-box { width: 100%; }
#pricebar { grid-template-columns: 1fr 108px 1fr; }
#ordbar { display: flex; align-items: center; gap: 6px; padding: 0 6px 6px; font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { padding: 5px 9px; color: var(--muted); font-size: 12px; }
.seg button.on { background: var(--panel2); color: var(--text); font-weight: 600; }
.tog { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tog.on { color: #fff; border-color: transparent; }
#d-sl.on { background: var(--sell); } #d-tp.on { background: #2e8b57; }
#ordbar .tog { flex-shrink: 0; padding-inline: 6px; }
#pos-levels { color: var(--text); background: var(--panel2); }
#draft-info { flex: 1; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#draft-info b { color: var(--text); }
#sheet .acts { display: flex; flex-direction: column; gap: 6px; }
#sheet .acts button { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
#sheet .acts button small { display: block; color: var(--muted); font-size: 11px; }
#sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#sheet label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
#ordbar2 { display: flex; align-items: center; gap: 6px; padding: 0 6px 6px; font-size: 12px; }
#ordbar2 .pre { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--muted); }
#preset-sel { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 13px; }
#hedge-btn.busy { opacity: .5; }
.settings h4 { margin: 8px 0 0; font-size: 14px; }
.note-s { margin: 0; font-size: 12px; color: var(--muted); }
.ind-box { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ind-box .nm { font-weight: 600; font-size: 13px; }
.bufrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bufrow .sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.bufrow .bl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bufrow .shc { display: inline-flex; align-items: center; gap: 2px; }
.bufrow .shc button { width: 22px; height: 22px; background: var(--panel2); border-radius: 4px; }
.bufrow .shc b { min-width: 26px; text-align: center; color: var(--text); font-weight: 600; }
.bufrow .kind { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 12px; }
.prow-e { display: grid; grid-template-columns: 1.2fr 1fr 1fr .7fr .8fr 28px; gap: 4px; align-items: center; }
.prow-e input { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 4px; font-size: 13px; }
.prow-e .del { color: var(--sell); font-size: 18px; }
.prow-h { font-size: 11px; color: var(--muted); }
.primary.sm { padding: 6px 14px; }
.tag { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; font-weight: 400; }
#banner { padding: 6px 10px; font-size: 12px; background: #33290f; border-bottom: 1px solid #6b5a1e; color: #f0d58a; }
#banner.bad { background: #3a1d1d; border-color: #7d2b28; color: #ffb4ad; }
#chart-wrap { position: relative; flex: 1; min-height: 0; }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
#chart-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; text-align: center; padding: 16px; }
#sum-strip { display: flex; gap: 12px; justify-content: space-between; padding: 6px 10px; font-size: 12px; background: var(--panel); border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
#sum-strip b { font-weight: 600; }
.pos { color: var(--buy); } .neg { color: var(--sell); }

/* ポジション */
#tab-pos { overflow-y: auto; }
#acct-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
#acct-sum .big { grid-column: 1 / -1; font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 2px; }
#acct-sum .k { color: var(--muted); } #acct-sum .v { text-align: right; }
/* 選択バーは下に重ねて出す（一覧の位置がずれてタップ先が変わらないように） */
#sel-bar { position: fixed; left: 0; right: 0; bottom: calc(46px + var(--safe-b)); display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #1c2a3f; border-top: 1px solid #36506b; z-index: 5; }
#ord-list { padding-bottom: 64px; }
#sel-info { flex: 1; font-size: 13px; }
.danger { background: var(--sell); color: #fff; border-radius: 6px; padding: 6px 12px; font-weight: 600; }
.ghost { border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; color: var(--muted); }
#pos-list, #log-list, #ord-list { list-style: none; margin: 0; padding: 0; }
.prow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.prow input[type=checkbox] { display: none; }
.selmode .prow { grid-template-columns: 28px 1fr auto; }
.selmode .prow input[type=checkbox] { display: block; }
.prow .det { grid-column: 1 / -1; }
.prow.open { background: var(--panel); }
.prow.sel { background: #12233b; }
.prow input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--buy); }
.prow .l1 { font-weight: 600; } .prow .l2 { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prow .pl { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.side-buy { color: var(--buy); } .side-sell { color: var(--sell); }

/* 履歴・設定 */
#tab-log, #tab-set { overflow-y: auto; }
.lrow { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.lrow .st { font-weight: 700; margin-right: 6px; }
.st-done { color: var(--ok); } .st-partial, .st-unknown { color: var(--warn); } .st-failed, .st-rejected { color: var(--sell); } .st-accepted, .st-executing { color: var(--muted); }
.settings { padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }

/* 下部タブ */
#tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--panel); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
#tabs button { padding: 10px 0 12px; color: var(--muted); font-size: 12px; white-space: nowrap; }
#tabs button.on { color: var(--buy); font-weight: 600; }
#pos-count { margin-left: 4px; font-size: 11px; }

/* シート・トースト */
#sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10; }
#sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--panel); border-radius: 14px 14px 0 0; padding: 16px 16px calc(16px + var(--safe-b)); z-index: 11; display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
#sheet h3 { margin: 0; font-size: 16px; }
#sheet .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
#sheet .kv span:nth-child(even) { text-align: right; }
#sheet .btns { display: flex; gap: 8px; }
#sheet .btns button { flex: 1; padding: 12px; border-radius: 8px; font-weight: 600; }
#sheet .chips { display: flex; gap: 6px; flex-wrap: wrap; }
#sheet .chips button { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
#sheet input { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 16px; width: 100%; }
#sheet .note { font-size: 12px; color: var(--muted); margin: 0; }
.cancel { background: var(--panel2); }
#toasts { position: fixed; left: 8px; right: 8px; bottom: calc(112px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px; z-index: 20; pointer-events: none; align-items: center; }
.toast { background: #22303f; border: 1px solid #36506b; color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 13px; max-width: 520px; width: 100%; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.toast.ok { border-color: #2e6b3a; } .toast.bad { border-color: #7d2b28; background: #3a1d1d; } .toast.warn { border-color: #6b5a1e; background: #33290f; }
.toast.pend { border-color: #4a6a8a; color: #b8cde0; }

/* 取引タブ（MT5の並び） */
.pos-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ghost.sm { padding: 4px 10px; font-size: 12px; }
.det .dg { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 2px 10px; font-size: 12px; color: var(--muted); padding: 6px 0; font-variant-numeric: tabular-nums; }
.det .dg b { color: var(--text); font-weight: 500; text-align: right; }
.det .da { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 4px; }
.det .da button { border: 1px solid var(--line); border-radius: 6px; padding: 9px 0; font-weight: 600; background: var(--panel2); }
.det .da .danger { background: var(--sell); border-color: transparent; }
#sel-bar { bottom: calc(46px + var(--safe-b)); }
.chip.new { font-size: 16px; padding: 2px 10px; color: var(--buy); font-weight: 700; }

/* 気配値 */
#tab-quote { overflow-y: auto; }
#quote-list { list-style: none; margin: 0; padding: 0; }
.qhead { display: grid; grid-template-columns: 1.1fr 1fr 1fr; padding: 4px 12px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.qhead span:not(:first-child) { text-align: right; }
.qrow { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.qrow .qs b { display: block; font-size: 14px; }
.qrow .qs small { font-size: 11px; color: var(--muted); }
.qp { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.qp > span { font-size: 14px; }
.qp > span b { font-size: 19px; font-weight: 700; }
.qp sup { font-size: 11px; }
.qp small { font-size: 10px; color: var(--muted); }
.qp.up > span { color: var(--buy); } .qp.dn > span { color: var(--sell); }

/* 全画面の操作画面 */
#page { position: fixed; inset: 0; z-index: 9; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--safe-t); }
.pg-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 44px; font-weight: 600; }
.pg-head button { font-size: 20px; width: 36px; height: 36px; }
#pg-body { flex: 1; overflow-y: auto; padding-bottom: var(--safe-b); }
.op { display: flex; flex-direction: column; gap: 10px; padding: 12px; max-width: 560px; margin: 0 auto; }
.o-sym { align-self: flex-start; font-size: 18px; font-weight: 700; }
.o-sym small { font-size: 12px; color: var(--muted); font-weight: 400; }
.o-type { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.o-mode { align-self: flex-start; }
.stp { display: grid; grid-template-columns: 52px 44px 1fr 44px 52px; gap: 4px; align-items: stretch; }
.stp button { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums; min-height: 44px; }
.stp label { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stp label small { font-size: 10px; color: var(--muted); }
.stp input { width: 100%; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
.o-px { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; padding: 4px 0; }
.o-px b { font-size: 28px; } .o-px sup { font-size: 13px; }
.o-px.one { grid-template-columns: 1fr; }
.o-px.one small { display: block; font-size: 11px; color: var(--muted); }
.o-est { font-size: 12px; color: var(--muted); text-align: center; min-height: 1.2em; margin-top: -4px; font-variant-numeric: tabular-nums; }
.o-pre { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.o-pre select { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.o-info { font-size: 11px; color: var(--muted); }
.o-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.o-btns .trade { align-items: center; font-size: 16px; font-weight: 700; min-height: 60px; justify-content: center; }
.o-btns .trade small { font-size: 12px; font-weight: 400; }
.op .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.op .chips button { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 9px 6px; font-size: 13px; }
.close-go { align-items: center; justify-content: center; min-height: 60px; font-size: 16px; font-weight: 700; }
.close-go small { font-size: 12px; font-weight: 400; }
.close-go.win { background: var(--buy); } .close-go.lose { background: var(--sell); }
.o-go { padding: 14px; font-size: 16px; }
#sheet .acts button:disabled { opacity: .45; }
.orow .pl.cur { font-size: 14px; font-weight: 500; color: var(--muted); }
.o-tsel { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 8px; font-size: 15px; }
.op .trade.o-place { align-items: center; justify-content: center; min-height: 60px; font-size: 16px; font-weight: 700; }
.o-place small { font-size: 12px; font-weight: 400; }
.ghost.o-go { padding: 12px; }

/* 0.9.0：上部の小さな状態表示（成功のポップの代わり） */
.qstat { position: fixed; top: calc(var(--safe-t) + 46px); left: 50%; transform: translateX(-50%); z-index: 15; pointer-events: none; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
.qstat.ok { color: #7ee2a8; background: #12301e; } .qstat.pend { color: #b8cde0; }
/* 気配値の追加 */
.qtool { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.qtool .note-s { font-size: 11px; }
.symlist { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.symlist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.symlist li small { display: block; color: var(--muted); font-size: 11px; }
.symlist li button { border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; background: var(--panel2); }
/* 履歴 */
.hist-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
#hist-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
#hist-sum .k { color: var(--muted); } #hist-sum .v { text-align: right; }
#hist-list, .alist { list-style: none; margin: 0; padding: 0; }
.hrow { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.hrow .l1 { font-weight: 600; } .hrow .l2 { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hrow .hr { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.hrow .hr small { font-size: 11px; color: var(--muted); }
.oplog { padding: 8px 12px; } .oplog summary { color: var(--muted); font-size: 12px; cursor: pointer; padding: 6px 0; }
.muted-s { color: var(--muted); font-size: 12px; }
/* アラート */
.arow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.arow.fired { color: var(--muted); }
.o-expw { display: flex; gap: 6px; margin-top: 6px; }
.o-expw select, .o-expw input { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; color: var(--text); }

/* 0.10.0：時間足を1タップで（横並び）・インジ */
#tfbar { display: flex; align-items: center; gap: 4px; padding: 0 6px 4px; }
#tf-chips { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
#tf-chips::-webkit-scrollbar { display: none; }
#tf-chips button { flex: none; min-width: 38px; padding: 6px 6px; border-radius: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#tf-chips button.on { background: var(--buy); color: #fff; font-weight: 700; }
#ctype-btn, #ind-btn { flex: none; font-size: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); }
.indlist { list-style: none; margin: 0; padding: 0; }
.indlist li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.indlist .nm { flex: 1; }
.sw2 { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.indcat { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.indcat h4 { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.swb { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent !important; padding: 0 !important; }
.swb.on { border-color: #fff !important; }
#sheet select { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 16px; width: 100%; }

/* 口座の切り替え */
.acctlist button.on { border-color: var(--buy) !important; }
.acctlist .ah { display: block; }

/* 設定タブ：通知・安全設定（0.16.0） */
.fl { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; flex: 1; min-width: 0; }
.fl input { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 16px; color: var(--text); width: 100%; }
.row.wrap { flex-wrap: wrap; }
.row.lim { align-items: flex-end; }
.nset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.nset[open] { display: flex; flex-direction: column; gap: 8px; }
.nset summary { cursor: pointer; font-size: 14px; }
.nst { font-size: 12px; color: var(--muted); margin-left: 6px; }
.nst.ok { color: var(--ok); } .nst.warn { color: var(--warn); } .nst.bad { color: var(--sell); }
.kinds { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 13px; }
#dev-list .hrow { padding: 8px 0; }
