/* protobuf.css — Protobuf tool */
#topbar .brand .dot{color:var(--accent)}
.pbtools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 8px}
.pbtools select,.pbtools input{height:30px;border:1px solid var(--line2);background:var(--surface);color:var(--ink);border-radius:7px;padding:0 8px;font:12.5px "IBM Plex Sans",system-ui,sans-serif}
.pbtools input[type=search]{min-width:220px;font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace}
.pbtree{font:12.5px/1.6 "IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;background:var(--code-bg);border:1px solid var(--line);border-radius:8px;padding:8px 12px;overflow:auto;max-height:calc(100vh - var(--chrome-h,108px) - 120px)}
.pbtree details{margin-left:18px} .pbtree>details,.pbtree>.f{margin-left:0}
.pbtree summary{list-style:none;cursor:pointer;white-space:nowrap} .pbtree summary::-webkit-details-marker{display:none}
.pbtree summary::before{content:"▸ ";color:var(--faint)} .pbtree details[open]>summary::before{content:"▾ "}
.pbtree .f{margin-left:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pbtree .no{color:#9a2fb0;font-weight:600} .pbtree .nm{color:#0b5e75;font-weight:600}
.pbtree .wt{color:var(--faint);font-size:11px} .pbtree .ty{color:var(--faint);font-size:11px}
.pbtree .s{color:#2f7d4f} .pbtree .n{color:#9a5b00} .pbtree .b{color:#7e3b8c} .pbtree .alt{color:var(--faint);font-size:11.5px}
.pbtree .off{color:var(--faint);font-size:11px;margin-left:6px}
.pbtree .sel>summary,.pbtree .f.sel{background:var(--accent-bg);border-radius:4px}
.pbtree mark{background:#ffe27a;color:#1b1b1b;border-radius:2px}
.pbtree .asbtn{font:11px "IBM Plex Sans",system-ui,sans-serif;border:1px solid var(--line2);background:var(--surface);color:var(--muted);border-radius:4px;padding:0 5px;margin-left:6px;cursor:pointer}
:root[data-theme="dark"] .pbtree .no{color:#d08fe0} :root[data-theme="dark"] .pbtree .nm{color:#7dd6e9} :root[data-theme="dark"] .pbtree .s{color:#7fca89} :root[data-theme="dark"] .pbtree .n{color:#e8a33d} :root[data-theme="dark"] .pbtree .b{color:#e0a9ea}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .pbtree .no{color:#d08fe0} :root:not([data-theme="light"]) .pbtree .nm{color:#7dd6e9} :root:not([data-theme="light"]) .pbtree .s{color:#7fca89}
  :root:not([data-theme="light"]) .pbtree .n{color:#e8a33d} :root:not([data-theme="light"]) .pbtree .b{color:#e0a9ea}}
.pbhex{font:12px/1.5 "IBM Plex Mono",ui-monospace,Menlo,monospace;white-space:pre;background:var(--code-bg);border:1px solid var(--line);border-radius:8px;padding:8px 12px;overflow:auto;max-height:260px;margin-top:8px}
.pbhex .hl{background:var(--accent-bg);color:var(--accent-ink)}
.pbnote{border:1px solid var(--line2);background:var(--surface2);border-radius:8px;padding:8px 12px;margin:6px 0;font-size:13px}
.pbschema{font:12px/1.6 "IBM Plex Mono",ui-monospace,Menlo,monospace;white-space:pre;max-height:340px;overflow:auto;background:var(--code-bg);border:1px solid var(--line);border-radius:8px;padding:8px 12px}
.pbpaste{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;padding:16px}
.pbpaste .box{background:var(--surface);border:1px solid var(--line2);border-radius:12px;box-shadow:var(--shadow);width:min(760px,100%);display:flex;flex-direction:column;gap:8px;padding:14px}
.pbpaste textarea{width:100%;box-sizing:border-box;height:min(50vh,360px);resize:vertical;font:12px/1.5 "IBM Plex Mono",ui-monospace,Menlo,monospace;border:1px solid var(--line2);border-radius:8px;background:var(--code-bg);color:var(--ink);padding:10px}
.pbpaste .row{display:flex;gap:8px;justify-content:flex-end;align-items:center}
.pbpaste .row .t{margin-right:auto;font-weight:600}
/* application layout (tabs): the message tree fills its tab */
html.apptabs .pbtree{flex:1 1 0;max-height:none;min-height:200px}
