.lookup-missing{color:#c44029!important}
.hx-wallet-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 20px;border-top:1px solid #c5c2ba;background:#e6e4de}
.hx-storage{min-width:0;display:grid;grid-template-columns:auto minmax(110px,210px) auto;gap:13px;align-items:center}
.hx-storage span{display:block;color:#77736d;font:8px 'DM Mono';letter-spacing:.1em}
.hx-storage strong{display:block;margin-top:3px;font:9px 'DM Mono';white-space:nowrap}
.hx-storage>i{height:5px;overflow:hidden;background:#c9c6bf}
.hx-storage>i b{display:block;height:100%;background:#86ad12;transition:width .55s}
.hx-storage>i b.warning{background:#ff7a35}
.hx-storage button,.hx-tool-actions button{height:31px;border:1px solid #a6a39b;background:transparent;padding:0 10px;font:9px 'Noto Sans SC';cursor:pointer;transition:.2s}
.hx-storage button:hover:not(:disabled),.hx-tool-actions button:hover{border-color:#151515;background:#151515;color:#fff;transform:translateY(-1px)}
.hx-storage button:disabled{opacity:.55}
.hx-tool-actions{display:flex;gap:6px}
.hx-tool-actions b{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:5px;border-radius:50%;background:#c9f44b;color:#151515;font:8px 'DM Mono'}
.hx-lineage{padding:23px 0;border-bottom:1px solid #c7c4bc}
.hx-lineage-head{display:flex;justify-content:space-between;margin-bottom:15px;color:#77756e;font:10px 'DM Mono'}
#hxLineageGraph{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;background:#e6e3dc;border:1px solid #cbc8c0}
#hxLineageGraph>b{color:#7d9e1b;font:16px 'DM Mono'}
#hxLineageGraph .current,#hxLineageGraph .retired,#hxLineageGraph button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:190px;padding:9px 11px;border:1px solid #aaa79f;background:#f4f2ed;color:#151515;font:10px 'DM Mono'}
#hxLineageGraph .current{border-color:#7b9f12;box-shadow:4px 4px 0 #c9f44b}
#hxLineageGraph .retired{opacity:.58;text-decoration:line-through}
#hxLineageGraph small{color:#7c7972;font:7px 'DM Mono';text-decoration:none}
.hx-lineage-nodes{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}
#hxLineageGraph button{cursor:pointer;text-align:left}
#hxLineageGraph button:hover{background:#151515;color:#fff}
.hx-lineage-origin{display:grid;grid-template-columns:auto 1fr;gap:5px 9px;align-items:center;width:100%}
.hx-lineage-origin i{grid-row:1/3;width:12px;height:12px;border-radius:50%;background:#c9f44b;box-shadow:0 0 0 5px #c9f44b33}
.hx-lineage-origin code{font:10px 'DM Mono'}
.hx-lineage-origin span{color:#77736d;font-size:10px}
.hx-edit-modal,.hx-trash-modal,.hx-lightbox{position:fixed;z-index:92;inset:0;display:none;place-items:center;padding:18px;background:#0d0d0de5;backdrop-filter:blur(12px)}
.hx-edit-modal.show,.hx-trash-modal.show,.hx-lightbox.show{display:grid;animation:fade .22s}
.hx-edit-panel,.hx-trash-panel{position:relative;width:min(610px,100%);padding:34px;background:#f2f0eb;border:1px solid #151515;box-shadow:12px 12px 0 #c9f44b;animation:modalIn .4s cubic-bezier(.16,1,.3,1)}
.hx-edit-panel>small,.hx-trash-panel>small{color:#65830c;font:9px 'DM Mono';letter-spacing:.1em}
.hx-edit-panel h2,.hx-trash-panel h2{margin:10px 0 24px;font-size:34px;letter-spacing:-.06em}
.hx-x{position:absolute;right:15px;top:13px;width:37px;height:37px;border:1px solid #151515;background:transparent;font-size:25px;cursor:pointer;transition:.2s}
.hx-x:hover{background:#151515;color:#fff;transform:rotate(90deg)}
.hx-edit-panel label{display:block;margin-top:13px;color:#6e6b65;font:10px 'DM Mono'}
.hx-edit-panel input,.hx-edit-panel textarea{display:block;width:100%;margin-top:6px;border:1px solid #aaa79f;background:#fbfaf7;padding:11px;font:13px 'Noto Sans SC';outline:none}
.hx-edit-panel textarea{height:105px;resize:vertical}
.hx-edit-panel input:focus,.hx-edit-panel textarea:focus{border-color:#151515;box-shadow:3px 3px 0 #c9f44b}
.hx-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.hx-edit-actions button{height:41px;padding:0 16px;border:1px solid #151515;background:transparent;font:600 12px 'Noto Sans SC';cursor:pointer}
.hx-edit-actions .primary{background:#151515;color:#fff;box-shadow:5px 5px 0 #c9f44b}
.hx-lightbox{grid-template-columns:55px minmax(0,1fr) 55px;grid-template-rows:minmax(0,1fr) auto;padding:28px 45px;background:#080808f2}
.hx-lightbox-stage{width:100%;height:calc(100dvh - 130px);display:grid;place-items:center;overflow:hidden}
.hx-lightbox-stage img,.hx-lightbox-stage video{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 0 0 1px #ffffff30,0 22px 65px #000}
.hx-lightbox-close{position:absolute;right:24px;top:19px;width:43px;height:43px;border:1px solid #fff;color:#fff;background:#111;font-size:27px;cursor:pointer}
.hx-lightbox-nav{width:44px;height:70px;border:1px solid #ffffff44;background:#151515;color:#fff;font-size:24px;cursor:pointer;transition:.2s}
.hx-lightbox-nav:hover{border-color:#c9f44b;color:#c9f44b;transform:scale(1.07)}
.hx-lightbox footer{grid-column:1/-1;width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:20px;color:#fff}
.hx-lightbox footer code{color:#c9f44b;font:10px 'DM Mono'}
.hx-lightbox footer button{border:1px solid #c9f44b;background:transparent;color:#c9f44b;padding:8px 12px;font:11px 'Noto Sans SC';cursor:pointer}
.hx-lightbox footer button:hover{background:#c9f44b;color:#151515}
.hx-trash-panel{width:min(760px,100%);max-height:86dvh;overflow:auto;box-shadow:12px 12px 0 #ff7a35}
.hx-trash-panel>p{margin:-16px 0 20px;color:#77736d;font-size:12px}
.hx-trash-list{display:grid;gap:8px}
.hx-trash-list article{display:grid;grid-template-columns:72px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:8px;border:1px solid #ccc9c1;background:#e8e5df}
.hx-trash-list article>div{height:57px;background:#151515;overflow:hidden}
.hx-trash-list img,.hx-trash-list video{width:100%;height:100%;object-fit:cover}
.hx-trash-list span{min-width:0}
.hx-trash-list strong,.hx-trash-list code,.hx-trash-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hx-trash-list strong{font-size:12px}
.hx-trash-list code{margin:4px 0;color:#66840e;font:9px 'DM Mono'}
.hx-trash-list small{color:#88857d;font:8px 'DM Mono'}
.hx-trash-list button{height:34px;border:1px solid #151515;background:transparent;padding:0 10px;font:10px 'Noto Sans SC';cursor:pointer}
.hx-trash-list button:hover{background:#151515;color:#fff}
.hx-trash-list button.danger{border-color:#c44029;color:#c44029}
.hx-trash-list button.danger:hover{background:#c44029;color:#fff}
.hx-trash-empty{height:180px;display:grid;place-items:center;border:1px dashed #aaa79f;color:#88857d;font:11px 'DM Mono'}
.hx-undo{position:fixed;z-index:98;left:50%;bottom:28px;display:flex;align-items:center;gap:20px;padding:11px 13px 11px 18px;background:#151515;color:#fff;box-shadow:7px 7px 0 #ff7a35;transform:translate(-50%,150%);transition:transform .45s cubic-bezier(.16,1,.3,1);font-size:11px}
.hx-undo.show{transform:translate(-50%,0)}
.hx-undo button{border:0;background:#c9f44b;padding:8px 13px;font:600 11px 'Noto Sans SC';cursor:pointer}
.reference-grid img,.reference-grid video{cursor:zoom-in}
@media(max-width:900px){
  .hx-wallet-tools{align-items:stretch;flex-direction:column}
  .hx-storage{grid-template-columns:minmax(150px,1fr) minmax(90px,1fr) auto}
  .hx-tool-actions button{flex:1}
}
@media(max-width:700px){
  .hx-storage{grid-template-columns:1fr}
  .hx-tool-actions{display:grid;grid-template-columns:repeat(3,1fr)}
  .hx-edit-panel,.hx-trash-panel{padding:25px 18px;box-shadow:6px 6px 0 #c9f44b}
  .hx-trash-list article{grid-template-columns:58px minmax(0,1fr)}
  .hx-trash-list article button{width:100%}
  .hx-lightbox{grid-template-columns:40px minmax(0,1fr) 40px;padding:55px 8px 8px}
  .hx-lightbox-stage{height:calc(100dvh - 150px)}
  .hx-lightbox-nav{width:36px;height:55px}
  .hx-undo{width:calc(100% - 32px);justify-content:space-between}
}
