/* =========================================================================
   Voice servers panel — /panel/voice/{service}

   Built like a voice client turned admin console: the live channel tree is
   the left pane and stays put; the right pane is a workspace whose Inspector
   follows whatever is selected in the tree. Flat surfaces, hairlines, mono
   labels, the one accent. Everything is scoped under .vx.
   ========================================================================= */

.vx { --vx-tree: 320px; --vx-talk: var(--hp-accent); display: flex; flex-direction: column; gap: 14px; }
.vx .hp-hero { margin-bottom: 0; }

.vx-muted { color: var(--hp-ink-3); font-size: 12.5px; margin: 0; }
.vx-dim { color: rgb(233 230 225 / .45); background: none; border: 0; font: inherit; cursor: pointer; }
.vx-grow { flex: 1; }
.vx-right { text-align: right; }
.vx-sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vx-label {
    margin: 0 0 10px; font: 500 10.5px/1 var(--hp-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hp-ink-3);
}
.vx-kicker { margin: 0 0 4px; font: 500 10.5px/1.3 var(--hp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hp-ink-3); }
.vx-sub { display: block; color: var(--hp-ink-3); font-size: 11.5px; margin-top: 2px; font-weight: 400; }
.vx-trunc { display: inline-block; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ------------------------------------------------------------ header bits */
.vx-state { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border: 1px solid var(--hp-line-2); border-radius: 8px; font: 500 12.5px/1 var(--hp-font); }
.vx-state > i { width: 7px; height: 7px; border-radius: 50%; background: var(--hp-ink-3); }
.vx-state[data-state=running] > i { background: var(--hp-ok); }
.vx-state[data-state=starting] > i, .vx-state[data-state=stopping] > i, .vx-state[data-state=installing] > i { background: var(--hp-warn); }
.vx-state[data-state=suspended] > i, .vx-state[data-state=unknown] > i { background: var(--hp-err); }
.vx-state__stack { padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--hp-line-2); color: var(--hp-ink-3); font: 500 11px/1 var(--hp-mono); }
.vx-power { display: inline-flex; gap: 6px; }

.vx-notice { border: 1px solid var(--hp-line-2); border-radius: var(--hp-r); padding: 10px 14px; background: var(--hp-surface); }
.vx-notice[data-tone=warn] { border-color: color-mix(in srgb, var(--hp-warn) 45%, transparent); }
.vx-notice[data-tone=info] { border-left: 3px solid var(--hp-accent); }
.vx-notice p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.vx-notice p > span { color: var(--hp-ink-2); }

/* ----------------------------------------------------------------- room */
.vx-room { display: grid; grid-template-columns: var(--vx-tree) minmax(0, 1fr); border: 1px solid var(--hp-line); border-radius: var(--hp-r-lg); background: var(--hp-surface); min-height: 640px; overflow: hidden; }
.vx-room--solo { grid-template-columns: minmax(0, 1fr); }

/* ----------------------------------------------------------------- tree */
.vx-tree { display: flex; flex-direction: column; border-right: 1px solid var(--hp-line); background: var(--hp-bg); min-width: 0; max-height: 860px; }
.vx-tree__head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; border-bottom: 1px solid var(--hp-line); }
.vx-tree__server { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 0; background: none; color: var(--hp-ink); border-radius: 8px; cursor: pointer; text-align: left; font: 600 14px/1.2 var(--hp-display); letter-spacing: -0.01em; }
.vx-tree__server:hover { background: var(--hp-fill); }
.vx-tree__server.is-sel { background: var(--hp-fill-2); }
.vx-tree__glyph { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--hp-line-2); color: var(--hp-accent); flex: none; }
.vx-tree__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-tree__meta { display: flex; gap: 14px; padding: 8px 18px; border-bottom: 1px solid var(--hp-line); font: 400 11px/1 var(--hp-mono); color: var(--hp-ink-3); }
.vx-tree__meta b { color: var(--hp-ink); font-weight: 600; }
.vx-tree__list, .vx-people { list-style: none; margin: 0; padding: 0; }
.vx-tree__list { flex: 1; overflow-y: auto; padding: 6px 6px 10px; scrollbar-width: thin; }
.vx-tree__empty { flex: 1; padding: 18px; color: var(--hp-ink-3); font-size: 13px; }
.vx-tree__empty p { margin: 0; }
.vx-tree__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; border-top: 1px solid var(--hp-line); font: 400 11px/1.3 var(--hp-mono); color: var(--hp-ink-3); }
.vx-tree__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.vx-tree__hint { flex-basis: 100%; font-family: var(--hp-font); }

.vx-ch { --pad: calc(8px + var(--d, 0) * 16px); position: relative; display: flex; align-items: center; min-height: 30px; padding: 0 8px 0 var(--pad); border-radius: 7px; cursor: pointer; user-select: none; }
.vx-ch:hover { background: var(--hp-fill); }
.vx-ch.is-sel { background: var(--hp-fill-2); box-shadow: inset 2px 0 0 var(--hp-accent); }
.vx-ch.is-drop { background: var(--hp-accent-soft); box-shadow: inset 0 0 0 1px var(--hp-accent-line); }
.vx-ch__row { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.vx-ch__ico { flex: none; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--hp-ink-3); }
.vx-ch__ico[data-state=busy] { border-color: var(--hp-ink); background: var(--hp-ink); }
.vx-ch.is-full .vx-ch__ico { border-color: var(--hp-err); background: var(--hp-err); }
.vx-ch__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; }
.vx-ch__flags { display: inline-flex; align-items: center; gap: 6px; color: var(--hp-ink-3); }
.vx-ch__flags em { font: normal 400 10.5px/1 var(--hp-mono); }
.vx-ch.is-spacer { min-height: 22px; cursor: default; }
.vx-ch__spacer { display: flex; align-items: center; gap: 10px; width: 100%; font: 500 10.5px/1 var(--hp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hp-ink-3); }
.vx-ch__spacer::before, .vx-ch__spacer::after { content: ''; flex: 1; height: 1px; background: var(--hp-line-2); }
.vx-ch__spacer:empty::after { display: none; }

.vx-p { --pad: calc(26px + var(--d, 0) * 16px); display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 8px 0 var(--pad); border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--hp-ink-2); }
.vx-p:hover { background: var(--hp-fill); color: var(--hp-ink); }
.vx-p.is-sel { background: var(--hp-fill-2); color: var(--hp-ink); box-shadow: inset 2px 0 0 var(--hp-accent); }
.vx-p__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-p__tags { display: inline-flex; gap: 4px; }
.vx-p__tags em { font: normal 400 10px/1 var(--hp-mono); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--hp-line-2); color: var(--hp-ink-3); }
.vx-p__tags .vx-p__away { border-style: dashed; }

/* The mic: a hollow dot that fills with the accent while someone talks. */
.vx-p__mic { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--hp-ok); }
[data-voice=talking] > .vx-p__mic, [data-voice=talking] .vx-p__mic { background: var(--vx-talk); border-color: var(--vx-talk); }
[data-voice=talking] > .vx-p__name { color: var(--hp-ink); font-weight: 600; }
[data-voice=muted] > .vx-p__mic, [data-voice=muted] .vx-p__mic { border-color: var(--hp-warn); border-style: dashed; }
[data-voice=deaf] > .vx-p__mic, [data-voice=deaf] .vx-p__mic { border-color: var(--hp-err); background: transparent; }
[data-voice=away] > .vx-p__mic, [data-voice=away] .vx-p__mic { border-color: var(--hp-ink-3); }

/* -------------------------------------------------------- lavalink node */
.vx-node__big { display: flex; flex-direction: column; gap: 6px; padding: 26px 20px 20px; border-bottom: 1px solid var(--hp-line); }
.vx-node__n { font: 600 52px/1 var(--hp-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.vx-node__big .vx-label { margin: 0; }
.vx-node__list { margin: 0; padding: 8px 0; flex: 1; }
.vx-node__list > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 20px; border-bottom: 1px solid var(--hp-line); font-size: 13px; }
.vx-node__list dt { color: var(--hp-ink-3); }
.vx-node__list dd { margin: 0; font: 500 12.5px/1.4 var(--hp-mono); }

/* ------------------------------------------------------------- workspace */
.vx-work { min-width: 0; display: flex; flex-direction: column; container: vxwork / inline-size; }
.vx-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--hp-line); overflow-x: auto; scrollbar-width: none; }
.vx-tabs::-webkit-scrollbar { display: none; }
.vx-tabs > button {
    position: relative; flex: none; height: 44px; padding: 0 10px; border: 0; background: none; color: var(--hp-ink-3);
    font: 500 13px/1 var(--hp-font); cursor: pointer; white-space: nowrap;
}
.vx-tabs > button:hover { color: var(--hp-ink); }
.vx-tabs > button.is-active { color: var(--hp-ink); }
.vx-tabs > button.is-active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--hp-accent); }

.vx-pane { padding: 20px 22px 26px; min-width: 0; }
.vx-pane__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vx-pane__head h2 { margin: 0; font: 600 19px/1.25 var(--hp-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.vx-pane__head p { margin: 4px 0 0; color: var(--hp-ink-2); font-size: 13.5px; max-width: 68ch; }
.vx-pane__actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.vx-block { border-top: 1px solid var(--hp-line); padding: 18px 0 4px; margin-top: 18px; }
.vx-block > .vx-muted { margin-top: 10px; }
.vx-block > .vx-label + .vx-muted { margin-top: 0; margin-bottom: 10px; }
.vx-block:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* Overview */
.vx-ov { display: grid; grid-template-columns: minmax(0, 1fr); }
.vx-join__body { display: flex; gap: 22px; align-items: flex-start; }
.vx-join__qr { flex: none; width: 148px; height: 148px; padding: 6px; border: 1px solid var(--hp-line-2); border-radius: var(--hp-r-sm); background: #fff; color: #0b0b0c; }
.vx-join__qr svg { display: block; width: 100%; height: 100%; }
.vx-join__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vx-join__make { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vx-join__go { display: flex; gap: 8px; flex-wrap: wrap; }

.vx-kv { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 16px; }
.vx-kv dt, .vx-facts__grid dt { color: var(--hp-ink-3); font-size: 12px; margin-bottom: 3px; }
.vx-kv dd, .vx-facts__grid dd { margin: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.vx .hp-mono, .vx code { font-family: var(--hp-mono); font-size: 12.5px; }

.vx-copy { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--hp-line-2); border-radius: 6px; background: var(--hp-bg); color: var(--hp-ink); cursor: pointer; }
.vx-copy:hover { border-color: var(--hp-ink-3); }
.vx-copy code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-copy .hp-ico { color: var(--hp-ink-3); flex: none; }
.vx-copy--wide { width: 100%; justify-content: space-between; padding: 9px 12px; }

.vx-res__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hp-line); border-radius: var(--hp-r); }
.vx-res__cell { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; border-right: 1px solid var(--hp-line); min-width: 0; }
.vx-res__cell:last-child { border-right: 0; }
.vx-res__k { font: 500 10.5px/1 var(--hp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hp-ink-3); }
.vx-res__v { font: 600 20px/1 var(--hp-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vx-res__f { font-size: 11.5px; color: var(--hp-ink-3); }
.vx-spark { width: 100%; height: 22px; overflow: visible; }
.vx-spark path { fill: none; stroke: var(--hp-ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.vx-spark path.is-2 { stroke: var(--hp-accent); }

.vx-facts { margin: 0; }
.vx-facts__grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px 18px; }
.vx-desc { margin: 14px 0 0; padding: 10px 12px; border-left: 2px solid var(--hp-line-2); color: var(--hp-ink-2); font-size: 13px; white-space: pre-wrap; }

/* Inspector */
.vx-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.vx-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vx-list .vx-label { margin-top: 6px; }
.vx-list__row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--hp-line); border-radius: 8px; background: var(--hp-bg); color: var(--hp-ink); font: 500 13px/1 var(--hp-font); cursor: pointer; text-align: left; }
.vx-list__row:hover { border-color: var(--hp-line-2); }
.vx-list__row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-list__row small { color: var(--hp-ink-3); font: 400 11px/1 var(--hp-mono); }

.vx-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.vx-who__av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--hp-line-2); font: 600 18px/1 var(--hp-display); }
.vx-who__av[data-voice=talking] { border-color: var(--vx-talk); box-shadow: inset 0 0 0 1px var(--vx-talk); }
.vx-uid { margin: 3px 0 0 !important; font-size: 11px !important; color: var(--hp-ink-3) !important; overflow-wrap: anywhere; }

.vx-menu { position: relative; }
.vx-menu__pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 180px; padding: 4px; border: 1px solid var(--hp-line-2); border-radius: 10px; background: var(--hp-bg-2); box-shadow: var(--hp-shadow-lg); }
.vx-menu__pop button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--hp-ink); text-align: left; font: 500 13px/1.2 var(--hp-font); cursor: pointer; }
.vx-menu__pop button:hover { background: var(--hp-fill-2); }
.vx-menu__pop .is-danger { color: var(--hp-err); }

.vx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--hp-line-2); border-radius: 7px; background: var(--hp-bg); color: var(--hp-ink-2); font: 500 12.5px/1 var(--hp-font); cursor: pointer; }
.vx-chip:hover { border-color: var(--hp-ink-3); color: var(--hp-ink); }
.vx-chip.is-on { border-color: var(--hp-ink); color: var(--hp-ink); }
.vx-chip button { border: 0; background: none; color: var(--hp-ink-3); cursor: pointer; padding: 0 0 0 2px; font-size: 15px; line-height: 1; }
.vx-chip--add { border-style: dashed; }
span.vx-chip { cursor: default; }

/* Forms */
.vx-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.vx-span2 { grid-column: span 2; }
.vx-form__foot { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hp-line); }
.vx-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--hp-ink-2); cursor: pointer; }
.vx-check--dark { color: rgb(233 230 225 / .6); font-size: 11.5px; }
.vx-range { width: 100%; accent-color: var(--hp-accent); }
.vx-num { width: 96px !important; }
.vx-search { max-width: 320px; }
.vx-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.vx-inline .hp-input { width: auto; flex: 1 1 150px; }
.vx-inline select.hp-input { flex: 0 1 170px; }

.vx-sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.vx-set { border: 0; border-top: 1px solid var(--hp-line); margin: 0; padding: 16px 0 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vx-set legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font: 500 10.5px/1 var(--hp-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hp-ink-3); }
.vx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vx-icon-up { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vx-actrow { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.vx-actrow + .vx-actrow { border-top: 1px solid var(--hp-line); }
.vx-actrow b { font-size: 13.5px; font-weight: 600; }
.vx-actrow p { margin: 2px 0 0; }
.vx-actrow .vx-label { margin: 0; }

.vx-seg { display: inline-flex; padding: 2px; border: 1px solid var(--hp-line-2); border-radius: 8px; }
.vx-seg button { height: 26px; padding: 0 11px; border: 0; border-radius: 6px; background: none; color: var(--hp-ink-3); font: 500 12.5px/1 var(--hp-font); cursor: pointer; }
.vx-seg button.is-on { background: var(--hp-fill-2); color: var(--hp-ink); }

/* Tables */
.vx-tablebox { border: 1px solid var(--hp-line); border-radius: var(--hp-r); margin-bottom: 20px; }
.vx-table td { font-size: 13px; }
.vx-table tr.is-click { cursor: pointer; }
.vx-table .hp-btn--sm { height: 26px; }
.vx-table .hp-input { height: 30px; padding: 0 8px; font-size: 13px; }
.vx-ptable td, .vx-ptable th { padding-left: 10px; padding-right: 10px; }
.vx-ptable td:first-child { width: 100%; }
.vx-ptable .vx-num { width: 78px !important; }
.vx-dname { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.vx-ptable code { font-size: 12px; }
.vx-ptable small { max-width: 56ch; }
.vx-rows { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.vx-rows li { padding: 8px 0; border-bottom: 1px solid var(--hp-line); }
.vx-fresh { padding: 14px; margin-bottom: 16px; border: 1px solid var(--hp-accent-line); border-radius: var(--hp-r); }
.vx-fresh .vx-muted { margin-top: 8px; }

/* Groups */
.vx-perm { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
.vx-perm__groups { display: flex; flex-direction: column; gap: 2px; padding-right: 16px; border-right: 1px solid var(--hp-line); }
.vx-perm__g { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--hp-ink-2); text-align: left; font: 500 13px/1.2 var(--hp-font); cursor: pointer; }
.vx-perm__g:hover { background: var(--hp-fill); color: var(--hp-ink); }
.vx-perm__g.is-sel { background: var(--hp-fill-2); color: var(--hp-ink); box-shadow: inset 2px 0 0 var(--hp-accent); }
.vx-perm__g small { font: 400 10.5px/1 var(--hp-mono); color: var(--hp-ink-3); }
.vx-perm__tpl { margin: 10px 0 8px; font-size: 12px; }
.vx-perm__main { min-width: 0; }
.vx-perm__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vx-perm__title h3 { margin: 0; font: 600 16px/1.2 var(--hp-display); }
.vx-members { margin-bottom: 18px; }
.vx-perm__add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; margin-bottom: 12px; border: 1px dashed var(--hp-line-2); border-radius: var(--hp-r); }
.vx-perm__find { position: relative; flex: 1 1 260px; }
.vx-perm__hits { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; border: 1px solid var(--hp-line-2); border-radius: 10px; background: var(--hp-bg-2); box-shadow: var(--hp-shadow-lg); }
.vx-perm__hits button { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: none; color: var(--hp-ink); text-align: left; cursor: pointer; }
.vx-perm__hits button:hover { background: var(--hp-fill-2); }
.vx-perm__hits small { color: var(--hp-ink-3); font-size: 11.5px; }
.vx-perm .vx-search { margin-bottom: 10px; }

/* Console */
.vx-console .hp-console__body { height: 420px; }
.vx-console .hp-console__body { white-space: normal; }
.vx-console .hp-console__body > div, .vx-q__row, .vx-q__cmd { white-space: pre-wrap; min-height: 1.65em; }
.vx-console .is-err { color: #ff8a7a; }
.vx-console .is-warn { color: #f5c26b; }
.vx-console .is-ok { color: #9bd8a6; }
.vx-console__dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(233 230 225 / .4); }
.vx-console__dot[data-state=running] { background: #6fcf86; }
.vx-q { margin-bottom: 10px; }
.vx-q__cmd { color: var(--hp-accent); }
.vx-q__row { padding: 2px 0 2px 12px; border-left: 1px solid rgb(255 255 255 / .1); }
.vx-q__row b { color: rgb(233 230 225 / .55); font-weight: 400; }
.vx-snippet { margin-top: 10px; }
.vx-snippet pre { margin: 0; height: auto; max-height: 360px; }
.vx-log { list-style: none; margin: 0; padding: 0; font: 400 12px/1.5 var(--hp-mono); max-height: 320px; overflow-y: auto; border: 1px solid var(--hp-line); border-radius: var(--hp-r); }
.vx-log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 6px 12px; border-bottom: 1px solid var(--hp-line); }
.vx-log li:last-child { border-bottom: 0; }
.vx-log time { color: var(--hp-ink-3); }
.vx-log .is-err span { color: var(--hp-err); }
.vx-log .is-warn span { color: var(--hp-warn); }
.vx-log li.vx-muted { display: block; }

/* Files */
.vx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 12px; font: 400 12.5px/1 var(--hp-mono); }
.vx-crumbs button { border: 0; background: none; color: var(--hp-ink-2); padding: 4px 4px; border-radius: 5px; font: inherit; cursor: pointer; }
.vx-crumbs button:hover { background: var(--hp-fill); color: var(--hp-ink); }
.vx-crumbs i { color: var(--hp-ink-3); font-style: normal; padding: 0 2px; }
.vx-files { border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; }
.vx-files .vx-skel, .vx-files > .vx-muted { padding: 14px; }
.vx-file { display: grid; grid-template-columns: 18px minmax(0, 1fr) 90px 100px; gap: 12px; align-items: center; width: 100%; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--hp-line); background: none; color: var(--hp-ink); text-align: left; font: 400 13px/1.2 var(--hp-font); cursor: pointer; }
.vx-file:last-child { border-bottom: 0; }
.vx-file:hover { background: var(--hp-fill); }
.vx-file .hp-ico { color: var(--hp-ink-3); }
.vx-file__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-file__s, .vx-file__d { color: var(--hp-ink-3); font-size: 11.5px; text-align: right; }
.vx-editor { border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; }
.vx-editor__bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--hp-line); background: var(--hp-bg); }
.vx-editor__text { display: block; width: 100%; min-height: 460px; padding: 14px; border: 0; outline: none; resize: vertical; background: var(--hp-bg); color: var(--hp-ink); font: 400 12.5px/1.6 var(--hp-mono); tab-size: 4; white-space: pre; }

/* Loading */
.vx-skel { display: flex; flex-direction: column; gap: 8px; }
.vx-skel .hp-skel { height: 14px; }
.vx-skel .hp-skel:nth-child(2n) { width: 70%; }

.vx-toast[data-err=true] { background: var(--hp-err); color: #fff; }

/* -------------------------------------------------------------- narrow */
@media (max-width: 1180px) {
    .vx { --vx-tree: 270px; }
}

/* The workspace narrows with the window and with whatever docks beside the
   panel, so its own layouts follow its width, not the viewport's. */
@container vxwork (max-width: 760px) {
    .vx-res__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vx-res__cell:nth-child(2) { border-right: 0; }
    .vx-res__cell:nth-child(-n+2) { border-bottom: 1px solid var(--hp-line); }
    .vx-split { grid-template-columns: minmax(0, 1fr); }
    .vx-sets { grid-template-columns: minmax(0, 1fr); }
    .vx-perm { grid-template-columns: minmax(0, 1fr); }
    .vx-perm__groups { flex-direction: row; flex-wrap: wrap; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--hp-line); }
    .vx-perm__tpl { flex-basis: 100%; margin: 4px 0; }
}

@container vxwork (max-width: 520px) {
    .vx-pane { padding: 16px 14px 20px; }
    .vx-join__body { flex-direction: column; }
    .vx-join__qr { width: 160px; height: 160px; }
    .vx-join__make, .vx-kv, .vx-row2, .vx-form__grid { grid-template-columns: minmax(0, 1fr); }
    .vx-span2 { grid-column: auto; }
    .vx-hide-s { display: none; }
    .vx-file { grid-template-columns: 18px minmax(0, 1fr) 70px; }
    .vx-file__d { display: none; }
    .vx-log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .vx-actrow { flex-direction: column; align-items: flex-start; }
    .vx-res__grid { grid-template-columns: minmax(0, 1fr); }
    .vx-res__cell { border-right: 0 !important; border-bottom: 1px solid var(--hp-line); }
    .vx-res__cell:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
    .vx-room { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .vx-tree { border-right: 0; border-bottom: 1px solid var(--hp-line); max-height: 440px; }
}

@media (max-width: 560px) {
    .vx-tabs { padding: 0 6px; }
    .vx-power .hp-btn { padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .vx * { transition: none !important; }
}

/* ----------------------------------------------------- panel frame ------ */
/* Sections are the rail's buttons; the room (tree + workspace) fills the body. */
.hpf.vx .vx-room { flex: 1; min-height: 520px; border: 0; border-radius: 0; background: none; }
@media (min-width: 901px) { .hpf.vx .vx-room { min-height: 0; } .hpf.vx .vx-tree { max-height: none; } }
.hpf.vx .vx-work { overflow-y: auto; }
.hpf.vx .hpf-body > :not(.vx-room):not(.hp-toast) { margin: 14px 16px 0; }
.hpf.vx .vx-state { margin-right: 4px; }
