* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #14161a; color: #d8dee9; font: 14px system-ui, sans-serif; }
button, .btn, select, input { background: #2a2f38; color: #d8dee9; border: 1px solid #3b4252; border-radius: 4px; padding: 4px 10px; font: inherit; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: #3b4252; }
header { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 12px; background: #1d2026; border-bottom: 1px solid #2e3440; }
#title { font-weight: 600; }
nav { display: flex; gap: 4px; }
nav button { border: none; background: none; padding: 10px 14px; border-bottom: 2px solid transparent; border-radius: 0; }
nav button.active { border-bottom-color: #88c0d0; color: #fff; }
#tab-tb .bar button.active { background: #4c566a; color: #fff; }
#cloudcli { margin-right: 6px; }
#node-box pre { max-height: 40vh; overflow: auto; white-space: pre-wrap; }
#mini { flex: 1; color: #8c96a8; font-size: 12px; text-align: right; }
main { height: calc(100% - 42px); }
.tab { height: 100%; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; flex-wrap: wrap; }
.bar.small { padding: 4px 0; font-size: 12px; }
.hint { color: #8c96a8; font-size: 12px; }
.grow { flex: 1; min-width: 0; min-height: 0; }
.row { display: flex; flex: 1; min-height: 0; }
.term { flex: 1; min-height: 0; padding: 4px; background: #000; }
aside#claude-side { width: 320px; padding: 8px; border-left: 1px solid #2e3440; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; }
.drop { border: 2px dashed #4c566a; border-radius: 6px; padding: 14px; color: #8c96a8; font-size: 12px; text-align: center; }
.drop.over, .fs-list.over { border-color: #88c0d0; background: #1f2933; }
.imgs { overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.imgs figure { margin: 0; cursor: pointer; }
.imgs img { width: 100%; height: 110px; object-fit: contain; background: #000; }
.imgs figcaption { font-size: 10px; color: #8c96a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 10; }
#modal img { max-width: 95vw; max-height: 90vh; background: #fff; }
#modal-cap { margin-top: 6px; color: #aaa; }
.card { background: #1d2026; padding: 24px; border-radius: 8px; display: flex; flex-direction: column; gap: 10px; width: 340px; }
.err { color: #bf616a; min-height: 1em; }
.path { font-family: monospace; }
.fs-list { flex: 1; overflow: auto; margin: 0 10px 10px; border: 2px dashed transparent; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 3px 8px; border-bottom: 1px solid #252a33; white-space: nowrap; }
td.n { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: #88c0d0; cursor: pointer; text-decoration: none; }
td .act { opacity: .6; margin-left: 6px; cursor: pointer; }
td .act:hover { opacity: 1; }
#fs-progress div { margin: 0 10px; font-size: 12px; color: #a3be8c; }
iframe { border: 0; background: #fff; }
#tab-mon { overflow: auto; display: block; padding-bottom: 20px; }
.cards { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px; }
.cards div { background: #1d2026; border-radius: 6px; padding: 8px 12px; min-width: 150px; }
.cards b { display: block; font-size: 20px; color: #fff; }
.cards span { font-size: 12px; color: #8c96a8; }
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 10px; padding: 10px; }
.charts > div { background: #1d2026; border-radius: 6px; padding: 6px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 10px; }
h3 { margin: 10px 0 6px; font-size: 14px; }
.dbar { margin: 4px 0; font-size: 12px; }
.dbar .b { height: 10px; background: #2a2f38; border-radius: 3px; overflow: hidden; }
.dbar .b i { display: block; height: 100%; background: #a3be8c; }
.dbar .b i.w { background: #ebcb8b; } .dbar .b i.c { background: #bf616a; }
.u-legend { font-size: 12px; } .u-title { font-size: 13px !important; }
