:root{--hb-h:calc(26px + env(safe-area-inset-bottom,0px))}
.hotbar{position:fixed;left:0;right:0;bottom:0;z-index:30;height:var(--hb-h);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:0 calc(env(safe-area-inset-right,0px) + 8px) env(safe-area-inset-bottom,0px) calc(env(safe-area-inset-left,0px) + 12px);
  background:var(--panel,#f6f9fa);border-top:1px solid var(--line,#c5d3d9);color:var(--ink2,#4d6670);font:700 12.5px/1 var(--font-n,'PT Sans Narrow',sans-serif)}
.hb-skills{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:4px 14px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hb-skills::-webkit-scrollbar{display:none}
.hb-sk{flex:none;display:inline-flex;align-items:baseline;gap:4px;cursor:default}
.hb-sk b{color:var(--ink,#0b1e2b);font-weight:700}
.hb-vk{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;padding:0;border:1.5px solid var(--focus,#0a58b8);background:var(--panel,#f6f9fa);color:var(--focus,#0a58b8);text-decoration:none;cursor:pointer;transition:background .15s,color .15s,transform .15s}
.hb-vk:hover,.hb-vk:focus-visible{background:var(--focus,#0a58b8);color:var(--panel,#fff)}
.hb-vk:focus-visible{outline:2px solid var(--focus,#0a58b8);outline-offset:2px}
.hb-vk:active{transform:scale(.92)}
.hb-vk svg{width:14px;height:14px;display:block}

body.hb{padding-bottom:var(--hb-h)}
body.hb[data-page="tree"]{padding-bottom:0}
.ui,.vp{bottom:var(--hb-h)}
.mb{bottom:calc(var(--hb-h) + 12px)}
.toast{bottom:calc(var(--hb-h) + 20px)}
.szfb-btn{bottom:calc(var(--hb-h) + 16px)}
.mk:not(.page){inset:0 0 var(--hb-h) 0}
.chart-layer{bottom:var(--hb-h)}
@media (max-width:860px){.items-right{bottom:var(--hb-h)}}
@media print{.hotbar{display:none}body.hb{padding-bottom:0}}
