/* XA HUD Navigator desktop window; keep isolated from other previews. */
body[data-plugin=hudnav] .header-inner{min-height:52px}
#hudnav{width:min(1400px,calc(100% - 24px));padding:12px 0 24px;color:#f3f3f3;font:500 13px/1.35 "Segoe UI",sans-serif;--cyan:#6cf;--muted:#858585;--line:#3e3e42}
#hudnav *{box-sizing:border-box}#hudnav button,#hudnav input,#hudnav select,#hudnav textarea{font:inherit;color:inherit;border:0;border-radius:4px}
#hudnav button{background:#4b4b4b;min-height:20px;padding:1px 5px;cursor:pointer}#hudnav button:hover{background:#646464}#hudnav button:disabled{opacity:.45;cursor:default}
#hudnav input:not([type=checkbox]),#hudnav select{background:#2d2d2d;height:23px;padding:2px 4px;min-width:0;max-width:100%}#hudnav input::placeholder{color:#858585;opacity:1}
#hudnav input[type=number]{width:100px}#hudnav select{border-right:18px solid #4b4b4b;padding-right:0}
#hudnav .check{display:inline-flex;align-items:center;gap:4px;min-height:23px;margin:0;white-space:nowrap}
#hudnav input[type=checkbox]{appearance:none;width:23px;height:23px;min-width:23px;background:#2d2d2d;margin:0;position:relative;cursor:pointer}
#hudnav input[type=checkbox]:checked::after{content:"";position:absolute;left:5px;top:1px;width:9px;height:15px;border:solid #d7d7d7;border-width:0 4px 4px 0;transform:rotate(45deg)}
#hudnav .demo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:1180px;margin:0 auto 10px;font-weight:400}#hudnav .demo-note{margin-left:auto;color:#98a1b2;font-size:12px}
#hudnav .window{width:1180px;max-width:100%;height:min(812px,calc(100vh - 125px));min-height:680px;margin:auto;background:#0e0e0e;border-radius:3px;resize:both;overflow:hidden;display:flex;flex-direction:column}
#hudnav .window.reference{height:812px}#hudnav .window.tall{height:1000px}#hudnav .window.collapsed{min-height:0;height:24px!important;resize:none}#hudnav .window.closed{height:auto!important;min-height:0;padding:18px;resize:none}
#hudnav .titlebar{height:24px;min-height:24px;padding:2px 4px;background:#531919;display:flex;align-items:center;gap:3px}#hudnav .window-title{margin-right:auto;white-space:nowrap}
#hudnav .titlebar button{background:transparent;padding:0;width:18px;height:20px;min-height:0;font-size:17px;line-height:20px}#hudnav .titlebar button:hover{background:#ffffff25}
#hudnav .window-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 7px 3px;padding:6px 1px 5px;border-bottom:1px solid var(--line);flex-shrink:0}
#hudnav .window-menu{padding:4px 8px;display:flex;gap:5px}#hudnav .window-tools .tool-divider{border-left:1px solid var(--line);height:17px;margin:0 1px}
#hudnav .tabs{display:flex;gap:4px;padding:0;margin:0 7px;border-bottom:1px solid #722525;overflow-x:auto;flex-shrink:0;scrollbar-width:thin}
#hudnav .tabs button{border-radius:3px 3px 0 0;min-height:21px;padding:2px 5px;background:#343434;white-space:nowrap}
#hudnav .tabs button[aria-selected=true],#hudnav .tabs button[aria-selected=true]:hover{background:#782d2d}
#hudnav .subtabs{margin:0 0 4px}#hudnav .window-body{padding:4px 7px;flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}
#hudnav .statusbar{margin:0 7px;min-height:34px;border-top:1px solid var(--line);padding-top:5px;flex-shrink:0;color:var(--muted);display:flex;gap:8px;white-space:nowrap;overflow:hidden}
#hudnav .statusbar span+span::before{content:"|";margin-right:8px;color:var(--muted)}
#hudnav h2,#hudnav h3{display:block;font-size:13px;font-weight:600;letter-spacing:0;margin:0 0 6px;color:var(--cyan)}#hudnav h2::after{display:none}
#hudnav p{margin:4px 0}#hudnav hr{border:0;border-top:1px solid var(--line);margin:5px 0}
#hudnav .row{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:3px 0}#hudnav .field{display:inline-flex;align-items:center;gap:4px;max-width:100%}
#hudnav .muted{color:var(--muted)}#hudnav .good{color:#4f4}#hudnav .warn{color:#fc4}#hudnav .cyan{color:var(--cyan)}#hudnav .spacer{flex:1}#hudnav .wide{width:100%}
#hudnav .panel{border:1px solid var(--line);padding:7px;min-width:0;min-height:0;background:#0e0e0e;overflow:auto}
#hudnav .stretch{display:flex;flex-direction:column;overflow:hidden}#hudnav .grow{flex:1;min-height:0}#hudnav .no-wrap{white-space:nowrap;overflow:hidden;text-overflow:clip}
#hudnav .addon-grid{display:grid;grid-template-columns:200px minmax(0,1fr)260px;gap:8px;flex:1;min-height:0}
#hudnav .addon-list{padding:7px 3px}#hudnav .addon-list input{margin:0 4px 4px;width:calc(100% - 8px)}
#hudnav .list{min-height:0;overflow:auto}#hudnav .list button{display:block;width:100%;border-radius:0;background:transparent;text-align:left;padding:2px 5px;min-height:21px;white-space:nowrap;overflow:hidden;text-overflow:clip}
#hudnav .list button[aria-pressed=true]{background:#383838}#hudnav .list button:hover{background:#303030}#hudnav .list .category{margin:7px 4px 2px;color:#9a9a9a}
#hudnav .list .visible-addon{color:#f5f5f5}#hudnav .list .hidden-addon{color:var(--muted)}#hudnav .list .overlay-target{color:#4f4}
#hudnav .addon-summary{display:flex;gap:7px;align-items:center;white-space:nowrap;overflow:hidden;min-height:20px;margin-bottom:2px}
#hudnav .addon-summary strong{color:var(--cyan);font-weight:600}#hudnav .node-detail h3{border-bottom:1px solid var(--line);padding-bottom:5px}
#hudnav table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:20px;text-align:left;font-variant-numeric:tabular-nums}
#hudnav td,#hudnav th{padding:0 4px;border:1px solid var(--line);vertical-align:top;overflow:hidden;white-space:nowrap;text-overflow:clip}
#hudnav th{background:#303034;font-weight:600;position:sticky;top:0;z-index:1}#hudnav tbody tr:nth-child(even) td{background:#1e1e1e}
#hudnav tbody tr.selected td,#hudnav td.selected{background:#383838!important}#hudnav tr[data-node],#hudnav tr[data-path],#hudnav tr[data-result]{cursor:pointer}
#hudnav .table-wrap{border:1px solid #505057;overflow:auto;min-height:0;max-width:100%;position:relative}#hudnav .table-wrap table{margin:-1px 0 0 -1px;width:calc(100% + 1px)}
#hudnav .fill-table{height:100%}#hudnav .fill-table table{height:100%}#hudnav .fill-table tr{height:21px}#hudnav .fill-table tr.blank{height:auto}#hudnav .fill-table tr.blank td{background:#0e0e0e}
#hudnav .cell-button{border-radius:0;background:none;display:block;width:100%;text-align:left;padding:0;min-height:20px;line-height:20px;white-space:nowrap;overflow:hidden;color:inherit}#hudnav .cell-button:hover{background:#ffffff15}
#hudnav .sheet-layout{display:flex;flex-direction:column;flex:1;min-height:0}#hudnav .sheet-intro{border-bottom:1px solid var(--line);padding-bottom:5px;margin:1px 0 4px}
#hudnav .sheet-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:8px;flex:1;min-height:0}#hudnav .sheet-workspace.cs-common{grid-template-columns:300px minmax(0,1fr)}#hudnav .sheet-workspace.all{grid-template-columns:270px minmax(0,1fr)}
#hudnav .sheet-browser{padding:7px 3px}#hudnav .sheet-browser>h3,#hudnav .sheet-browser>p,#hudnav .sheet-browser>hr,#hudnav .sheet-browser>.row{margin-left:4px;margin-right:4px}
#hudnav .sheet-browser .shortcuts{gap:4px;flex-wrap:wrap}#hudnav .sheet-browser .shortcuts button{padding:0 4px;min-height:18px}
#hudnav .sheet-data{display:grid;grid-template-columns:minmax(0,1fr)280px;gap:8px;flex:1;min-height:0;margin-top:3px}
#hudnav .sheet-data>.panel{padding:7px;display:flex;flex-direction:column}#hudnav .sheet-data .table-wrap{flex:1}
#hudnav .selection h3{border-bottom:1px solid var(--line);padding-bottom:5px}#hudnav .selection p{margin:5px 0;overflow-wrap:anywhere}#hudnav .selection h4{font-size:13px;font-weight:600;margin:7px 0 4px;color:#ffe98a}
#hudnav .selection .muted{margin-top:7px}#hudnav .master-controls input{width:360px}#hudnav .master-grid{display:grid;grid-template-columns:48% minmax(0,1fr);gap:8px;flex:1;min-height:0}
#hudnav .master-grid h3{border-bottom:1px solid var(--line);padding-bottom:6px}#hudnav .result-list button{white-space:normal;margin-bottom:5px;padding:5px}
#hudnav .log-header{display:flex;align-items:center;gap:8px;margin:2px 2px 5px}#hudnav .log-header h3{color:#fc4;margin:0}
#hudnav .log-panel{flex:1;min-height:0;overflow:auto;padding:7px}#hudnav .log-panel pre{white-space:pre-wrap;margin:0;font:inherit;line-height:21px;overflow-wrap:anywhere}
#hudnav .debug-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 1px 4px}#hudnav .debug-heading h3{margin:0}
#hudnav .debug-filters{margin:2px 1px 5px;gap:8px}#hudnav .debug-filters input[type=search]{width:220px}
#hudnav .debug-grid{display:grid;grid-template-columns:440px minmax(0,1fr);gap:8px;flex:1;min-height:0}#hudnav .debug-grid>.panel{padding:7px}
#hudnav .debug-summary p,#hudnav .struct-info p{margin:0;min-height:21px}#hudnav .debug-detail{overflow:auto}
#hudnav details{margin:5px 0}#hudnav summary{background:#383838;padding:3px 7px;border-radius:4px;cursor:pointer;min-height:23px}#hudnav summary::marker{font-size:14px}
#hudnav .detail-body{padding:5px 0 0}#hudnav .detail-body .table-wrap{height:220px;margin-top:4px}#hudnav .detail-body .table-wrap table{min-width:560px}
#hudnav .workflow{border-top:1px solid var(--line);padding-top:5px;margin-top:7px}#hudnav .workflow p{margin:4px 0}
#hudnav dl{margin:0;display:grid;grid-template-columns:95px minmax(0,1fr);gap:3px 6px}#hudnav dt{color:var(--muted)}#hudnav dd{margin:0;overflow-wrap:anywhere}
#hudnav .node-detail pre{font:inherit;white-space:pre-wrap;margin:4px 0;overflow-wrap:anywhere}
#hudnav .overlay-stage{position:relative;width:1180px;max-width:100%;margin:16px auto 0;height:235px;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}
#hudnav .game-menu{position:relative;width:600px;max-width:calc(100% - 40px);height:178px;padding-top:8px}
#hudnav .game-menu .game-entry{height:26px;text-align:center;color:#e8cb7b;font:italic 800 23px/26px Arial,sans-serif;letter-spacing:1px;text-shadow:0 2px 1px #9d713c,1px 0 2px #fbe9a3}
#hudnav .overlay-root{position:absolute;inset:0;pointer-events:none}#hudnav .overlay-root.outlined{outline:2px solid #0f0}
#hudnav .overlay-name{position:absolute;top:-17px;left:4px;color:#0ff;font-size:12px}
#hudnav .overlay-box{position:absolute;left:0;right:0;height:50px;color:#0f0;font-size:12px;padding:1px 3px;cursor:pointer;background:transparent;border:0;border-radius:0;text-align:left;display:flex;align-items:flex-start}
#hudnav .overlay-box.outlined{outline:1px solid #0f0}#hudnav .overlay-box:hover{background:#00ff0010}#hudnav .overlay-box.selected{outline:2px solid #ffcf50;color:#ffcf50}
#hudnav .demo-footer{max-width:1180px;margin:8px auto 0;color:#98a1b2;font-size:11px;font-weight:400}
#hudnav .toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:50;background:#252525;border:1px solid #777;padding:10px 16px;border-radius:5px;max-width:calc(100vw - 30px)}
#hudnav .modal-backdrop{position:fixed;inset:0;background:#0009;z-index:60;display:grid;place-items:center;padding:20px}#hudnav .modal{width:600px;max-width:100%;padding:15px;background:#141414;border:1px solid #666}
#hudnav textarea{display:block;width:100%;height:220px;background:#252525;margin:10px 0;padding:8px;resize:vertical}#hudnav :focus-visible{outline:2px solid #9cf;outline-offset:1px}
#hudnav ::-webkit-scrollbar{width:14px;height:14px}#hudnav ::-webkit-scrollbar-track{background:#151515}#hudnav ::-webkit-scrollbar-thumb{background:#515151;border:3px solid #151515;border-radius:8px}#hudnav ::-webkit-scrollbar-corner{background:#151515}
@media(max-width:1000px){#hudnav .addon-grid{grid-template-columns:170px minmax(0,1fr)220px}#hudnav .debug-grid{grid-template-columns:36% minmax(0,1fr)}#hudnav .sheet-workspace,#hudnav .sheet-workspace.cs-common,#hudnav .sheet-workspace.all{grid-template-columns:220px minmax(0,1fr)}#hudnav .sheet-data{grid-template-columns:minmax(0,1fr)220px}}
@media(max-width:700px){#hudnav .window{min-height:700px;resize:vertical}#hudnav .demo-note{margin-left:0;flex-basis:100%}#hudnav .window-tools{gap:6px;font-size:12px}#hudnav .addon-grid,#hudnav .sheet-workspace,#hudnav .sheet-workspace.cs-common,#hudnav .sheet-workspace.all,#hudnav .debug-grid,#hudnav .master-grid{display:flex;flex-direction:column;flex:none;min-height:0}#hudnav .addon-list{height:180px;flex:none}#hudnav .addon-main{height:430px;flex:none}#hudnav .node-detail{min-height:160px;flex:none}#hudnav .sheet-layout{flex:none;min-height:900px}#hudnav .sheet-browser{height:220px;flex:none}#hudnav .sheet-preview{height:730px;flex:none}#hudnav .sheet-data{display:flex;flex-direction:column;flex:1}#hudnav .sheet-data>.grid-panel{height:270px;flex:none}#hudnav .selection{min-height:200px;flex:1}#hudnav .debug-grid>.debug-list{height:350px;flex:none}#hudnav .debug-detail{height:650px;flex:none}#hudnav .master-grid>.panel{min-height:260px}#hudnav .log-panel{min-height:450px}#hudnav .no-wrap{white-space:normal}#hudnav .statusbar{font-size:10px;gap:4px}#hudnav .statusbar span+span::before{margin-right:4px}#hudnav .game-menu .game-entry{font-size:17px}#hudnav .addon-main table{min-width:640px}}

#hudnav .sheet-preview>p{margin:2px 0}
#hudnav .sheet-preview>h3{margin-bottom:3px}
#hudnav .sheet-preview>.row{margin:2px 0}
#hudnav .selection p{margin:0;min-height:21px}
#hudnav .sheet-browser>h3{margin-bottom:2px}
#hudnav .sheet-browser>p{margin-top:0;margin-bottom:0}
#hudnav .debug-heading{margin-bottom:0}
#hudnav .debug-heading+p{margin:0}
