#demo-result{max-width:1160px;margin:22px auto;padding:0;border:0;background:transparent;box-shadow:none;color:#eee}
.fm-ref-build{font-family:Inter,Segoe UI,Arial,sans-serif;color:#eee}
.fm-ref-header{position:relative;min-height:110px;padding:6px 90px 20px 4px}.fm-ref-header h2{margin:0 0 10px;color:#fff;font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.15;letter-spacing:-.025em}.fm-ref-header p{margin:0;color:#b7aaa0;font-size:.85rem}.fm-ref-header>img{position:absolute;right:12px;top:8px;width:60px;height:60px;object-fit:cover;border:1px solid #72503b;border-radius:8px;background:#171717}
.fm-ref-tabs{display:flex;gap:5px;overflow-x:auto;padding:0 2px;border-bottom:1px solid #40352e}.fm-ref-tab{flex:none;min-height:42px;padding:10px 17px;border:1px solid #34302d;border-bottom:0;border-radius:7px 7px 0 0;background:#191919;color:#c5bdb6;cursor:pointer;font:inherit;font-size:.88rem}.fm-ref-tab:hover{color:#fff;border-color:#a1653c}.fm-ref-tab.is-active{color:#fff;border-color:#65452e;background:#26201c;box-shadow:inset 0 3px #ff7a18}
.fm-ref-panels{border:1px solid #3c3430;border-top:0;border-radius:0 0 10px 10px;background:#171717}.fm-ref-panel[hidden]{display:none}.fm-ref-panel-title{margin:0;padding:12px 15px;border-bottom:1px solid #343434;color:#fff;font-size:1rem;font-weight:750}.fm-ref-skill-top{padding:13px 15px}.fm-ref-skill-line+.fm-ref-skill-line{margin-top:13px}.fm-ref-skill-line h4{margin:0 0 7px;color:#bfb2a9;font-size:.75rem;font-weight:700}.fm-ref-icon-strip,.fm-ref-priority-icons{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.fm-ref-icon{position:relative;display:grid;place-items:center;flex:none;width:47px;height:47px;padding:0;overflow:visible;border:1px solid #755039;border-radius:5px;background:#111;cursor:pointer}.fm-ref-icon:hover,.fm-ref-icon:focus-visible{z-index:2;border-color:#ff9a4a;box-shadow:0 0 0 2px #ff7a1844;outline:none}.fm-ref-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}.fm-ref-icon-fallback{font-size:.75rem;font-weight:800;color:#ffb778}.fm-ref-pips{position:absolute;z-index:1;top:2px;left:2px;display:flex;gap:2px;filter:drop-shadow(0 1px 2px #000)}.fm-ref-pips i{width:7px;height:7px;transform:rotate(45deg);border:1px solid #003f61;background:#47b6f5}
.fm-ref-hotbar-wrap{padding:15px;border-top:1px solid #3a3430;border-bottom:1px solid #3a3430;overflow-x:auto}.fm-ref-hotbar{display:grid;grid-template-columns:repeat(12,47px);grid-template-rows:repeat(4,47px);gap:5px;width:max-content;margin:auto}.fm-ref-hotbar-cell{position:relative;width:47px;height:47px;border:1px solid #2b2b2b;border-radius:5px;background:#0c0c0d}.fm-ref-hotbar-cell:has(.fm-ref-icon){border:0}.fm-ref-hotbar-cell .fm-ref-icon{width:47px;height:47px}.fm-ref-hotbar-cell small{position:absolute;top:calc(100% + 1px);left:0;width:100%;height:14px;text-align:center;color:#aaa;background:#222;font-size:.62rem}.fm-ref-hotbar{margin-bottom:16px}
.fm-ref-priority>.fm-ref-panel-title{margin:0}.fm-ref-priority-row{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:10px;min-height:69px;padding:10px 15px;border-bottom:1px solid #343434}.fm-ref-priority-row:last-child{border-bottom:0}.fm-ref-priority-label{color:#bdb5af;font-size:.76rem}.fm-ref-priority-icons{gap:6px}.fm-ref-arrow{color:#916b51;font-size:1.2rem;line-height:1}
.fm-ref-gear-layout{display:grid;grid-template-columns:172px minmax(0,1fr);min-height:590px}.fm-ref-gear-slots{display:grid;grid-template-columns:repeat(2,70px);grid-auto-rows:70px;gap:4px;align-content:start;padding:12px;border-right:1px solid #343434}.fm-ref-gear-slot{position:relative;display:grid;place-items:center;border:1px solid #393537;border-radius:4px;background:#101113;color:#5b5d65;cursor:pointer}.fm-ref-gear-slot:hover,.fm-ref-gear-slot.is-active{border-color:#ff8b37;box-shadow:inset 0 0 0 2px #ff7a1844}.fm-ref-gear-slot.is-legend{border-color:#a477b2;background:#312739}.fm-ref-gear-slot img{width:100%;height:100%;object-fit:cover}.fm-ref-gear-slot svg{width:40px;height:40px}.fm-ref-gear-slot small{position:absolute;right:3px;bottom:1px;padding:1px 2px;background:#000b;color:#fff;font-size:.68rem;font-weight:800;text-shadow:0 1px 3px #000}
.fm-ref-item-detail{align-self:start;margin:12px;padding:18px;border:1px solid #3b3938;border-radius:7px;background:#222}.fm-ref-detail-label{display:block;margin-bottom:12px;color:#d0b8a5;font-size:.76rem}.fm-ref-detail-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:7px;border:1px solid #414141;border-radius:7px;background:#2b2b2b}.fm-ref-detail-head img,.fm-ref-item-fallback{width:46px;height:46px;border:1px solid #a477b2;border-radius:4px;background:#241e29}.fm-ref-detail-head strong{flex:1;font-size:1.08rem}.fm-ref-detail-head b{padding:5px 8px;border-radius:5px;background:#442b4b;color:#efc4fa}.fm-ref-item-detail h4{margin:15px 0 7px;color:#c9bdb4;font-size:.8rem;font-weight:700}.fm-ref-progress{height:11px;overflow:hidden;border-radius:6px;background:#343434}.fm-ref-progress span{display:block;height:100%;border-radius:6px;background:#ff832b}.fm-ref-progress-label{margin:5px 0 13px;color:#ffb879;font-size:.74rem;font-weight:700}.fm-ref-main-stats{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;max-width:430px;margin:0;color:#ddd;font-size:.84rem}.fm-ref-main-stats dt{min-width:0}.fm-ref-main-stats dd{margin:0;color:#ffbd8c;font-weight:700}
.fm-ref-board-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:13px;padding-bottom:13px;border-bottom:1px solid #343434}.fm-ref-board-tab{padding:7px 10px;border:1px solid #3e3e3e;border-radius:5px;background:#121212;color:#ddd;cursor:pointer;font:inherit;font-size:.76rem}.fm-ref-board-tab.is-active{border-color:#ff8b32;background:#382519;color:#ffba83}.fm-ref-board-title{display:flex;justify-content:space-between;gap:15px;padding:9px 15px;border-bottom:1px solid #383838;font-size:.83rem}.fm-ref-board-title span{color:#cbb6a4}.fm-ref-board-holder{padding:14px;overflow:auto}.fm-ref-board-holder .dv-grid{min-width:0;width:min(100%,680px);margin:auto;pointer-events:none}.fm-ref-board-holder .dv-node:disabled{opacity:1}
.fm-ref-description{max-width:850px;margin:0;padding:20px;color:#dfd6ce;white-space:pre-wrap;line-height:1.65}
.fm-ref-tooltip{position:fixed;z-index:9999;max-height:min(520px,calc(100vh - 24px));overflow:auto;border:1px solid #53463e;border-radius:8px;background:#1d1d1e;box-shadow:0 22px 58px #000c;color:#f4f0ea}.fm-ref-tooltip[hidden]{display:none}.fm-ref-tip-head{display:flex;gap:11px;padding:12px}.fm-ref-tip-head img{width:58px;height:58px;border:1px solid #7b5540;border-radius:5px}.fm-ref-tip-head>div{display:grid;align-content:center;gap:5px}.fm-ref-tip-head strong{font-size:.95rem}.fm-ref-tip-head small{color:#aaa;font-size:.73rem}.fm-ref-tip-description{margin:0;padding:0 12px 12px;color:#c7c0bc;font-size:.8rem;line-height:1.5}.fm-ref-tip-specs{padding:11px 12px;border-top:1px solid #444}.fm-ref-tip-specs>b{display:block;margin-bottom:8px;color:#bfb6af;font-size:.8rem}.fm-ref-tip-specs>p{margin:0;color:#888;font-size:.78rem}.fm-ref-tip-spec{display:flex;align-items:center;gap:9px;margin:5px 0;padding:7px;border:1px solid #3d3d3d;border-radius:5px;background:#2b2b2b;font-size:.78rem}.fm-ref-spec-mark{display:grid;place-items:center;flex:none;width:23px;height:23px;border:1px solid #4da3bf;border-radius:4px;background:#174053;color:#d4f5ff;font-weight:800}
@media(max-width:700px){.fm-ref-header{padding-right:60px}.fm-ref-header>img{width:45px;height:45px}.fm-ref-tab{padding:9px 11px;font-size:.77rem}.fm-ref-gear-layout{grid-template-columns:1fr}.fm-ref-gear-slots{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid #343434}.fm-ref-gear-slot{flex:none;width:58px;height:58px}.fm-ref-item-detail{margin:10px}.fm-ref-priority-row{grid-template-columns:1fr;gap:5px}.fm-ref-board-holder .dv-grid{width:min(100%,560px)}}
.fm-ref-gear-slot.is-legend{border-color:#e3bb4e;background:#4a3a17}
.fm-ref-gear-slot.is-unique{border-color:#ed7c29;background:#4b2817}
.fm-ref-item-detail[data-grade="Legend"]{--item-grade:#e3bb4e;--item-grade-bg:#4a3a17}
.fm-ref-item-detail[data-grade="Unique"]{--item-grade:#ed7c29;--item-grade-bg:#4b2817}
.fm-ref-item-detail[data-grade="Rare"]{--item-grade:#4c9bda;--item-grade-bg:#1b3852}
.fm-ref-item-detail{--item-grade:#858b92;--item-grade-bg:#30343c}
.fm-ref-item-detail .fm-ref-detail-head img,.fm-ref-item-detail .fm-ref-item-fallback{border-color:var(--item-grade);background:var(--item-grade-bg)}
.fm-ref-item-detail .fm-ref-detail-head b{background:var(--item-grade-bg);color:var(--item-grade)}
.fm-ref-spec-mark{flex:none;width:34px;height:36px;border:0;border-radius:0;background-image:url('specialization-icons-reference.png');background-size:506px 366px;background-repeat:no-repeat;color:transparent}
.fm-ref-spec-mark[data-spec-index="0"]{background-position:-15px -139px}
.fm-ref-spec-mark[data-spec-index="1"]{background-position:-15px -184px}
.fm-ref-spec-mark[data-spec-index="2"]{background-position:-15px -231px}
.fm-ref-spec-mark[data-spec-index="3"]{background-position:-15px -276px}
.fm-ref-spec-mark[data-spec-index="4"]{background-position:-15px -323px}
#demo-skill-editor .demo-spec-emblem{width:34px;height:36px;border:0;clip-path:none;background-image:url('specialization-icons-reference.png');background-size:506px 366px;background-repeat:no-repeat;color:transparent}
#demo-skill-editor .demo-spec-emblem[data-spec-index="0"]{background-position:-15px -139px}
#demo-skill-editor .demo-spec-emblem[data-spec-index="1"]{background-position:-15px -184px}
#demo-skill-editor .demo-spec-emblem[data-spec-index="2"]{background-position:-15px -231px}
#demo-skill-editor .demo-spec-emblem[data-spec-index="3"]{background-position:-15px -276px}
#demo-skill-editor .demo-spec-emblem[data-spec-index="4"]{background-position:-15px -323px}
.demo-macro-editor{margin:18px 0;padding:16px;border:1px solid #5b4030;border-radius:9px;background:#1d1917}.demo-macro-heading,.demo-macro-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.demo-macro-heading h3{margin:0;color:#fff}.demo-macro-heading button,.demo-macro-card button{padding:7px 10px;border:1px solid #895733;border-radius:5px;background:#312217;color:#ffd0a4;cursor:pointer}.demo-macro-card button:disabled{opacity:.4;cursor:default}.demo-macro-editor>p{margin:8px 0 14px;color:#aa9a8e;font-size:.82rem}.demo-macro-card{margin-top:10px;padding:14px;border:1px solid #4c3b30;border-radius:7px;background:#211d1a}.demo-macro-card label{display:grid;gap:5px;min-width:0;color:#cbb9ac;font-size:.79rem}.demo-macro-card-head label{flex:1}.demo-macro-card input,.demo-macro-card select,.demo-macro-card textarea{box-sizing:border-box;width:100%;padding:9px;border:1px solid #66503e;border-radius:5px;background:#121212;color:#f0e5db;font:inherit}.demo-macro-card textarea{resize:vertical;white-space:pre-wrap}.demo-macro-sequence{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.demo-macro-sequence>p{margin:0;color:#8f8984;font-size:.8rem}.demo-macro-step{display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid #4c413a;border-radius:5px;background:#151515}.demo-macro-step .a2b-result-icon{width:30px;height:30px}.demo-macro-step .a2b-result-icon img{width:100%;height:100%}.demo-macro-step small{color:#f4a66b}.demo-macro-step>span:nth-of-type(2){max-width:150px;font-size:.77rem}.demo-macro-step button{padding:3px 5px}.demo-macro-picker{display:flex;gap:7px;margin-bottom:14px}.demo-macro-picker select{flex:1;min-width:0}.demo-profile-macros{margin:15px 0}.demo-profile-macros h4{margin:0 0 8px}.demo-published-macro{margin:8px 0;padding:10px;border:1px solid #534234;border-radius:6px;background:#1d1a18}.demo-published-macro-sequence{display:flex;align-items:center;gap:6px;margin-top:8px}.demo-published-macro-sequence .a2b-result-icon{width:38px;height:38px}.demo-published-macro-sequence .a2b-result-icon img{width:100%;height:100%}.demo-published-macro pre{overflow:auto;margin:9px 0 0;padding:10px;border:1px solid #3d3935;background:#111;color:#e4d6c8;white-space:pre-wrap;font:12px/1.5 Consolas,monospace}.fm-ref-macros{border-top:1px solid #39302a}.fm-ref-macro-card{margin:13px 15px;padding:13px;border:1px solid #594332;border-radius:7px;background:#211c18}.fm-ref-macro-card h4{margin:0 0 10px;color:#ffbc85;font-size:.9rem}.fm-ref-macro-sequence{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.fm-ref-macro-code{overflow:auto;margin:12px 0 0;padding:12px;border:1px solid #3e3833;border-radius:5px;background:#111;color:#e7d8c8;white-space:pre-wrap;font:12px/1.5 Consolas,monospace}
.demo-macro-sequence,.demo-published-macro-sequence,.fm-ref-macro-sequence{display:flex;flex-direction:column;align-items:stretch;gap:0;max-width:560px}
.demo-macro-step,.demo-published-macro-step,.fm-ref-macro-step{box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:56px;padding:5px 8px;border:1px solid #252525;border-radius:5px;background:#171717;color:#eee}
.demo-macro-step .a2b-result-icon,.demo-published-macro-step .a2b-result-icon,.fm-ref-macro-step .fm-ref-icon{flex:none;width:48px;height:48px}
.demo-macro-step>small{display:none}.demo-macro-step>span:nth-of-type(2){flex:1;max-width:none;font-size:.84rem}.demo-macro-step button{border-color:#4f443c;background:#27221e}
.demo-macro-card .demo-macro-delay{display:flex;align-items:center;gap:5px;min-height:35px;margin-left:24px;padding-left:13px;border-left:1px solid #3d3d3d;color:#939393;font-size:.72rem}
.demo-macro-card .demo-macro-delay input{width:70px;padding:4px 5px;border-color:#4c4c4c;background:#171717;color:#ddd;text-align:right;font-size:.75rem}
.demo-published-macro-step .a2b-result-icon img{width:100%;height:100%}.demo-published-macro-delay,.fm-ref-macro-delay{min-height:35px;margin-left:24px;padding:10px 0 0 13px;border-left:1px solid #3d3d3d;color:#929292;font-size:.72rem}.demo-published-macro-delay:empty{min-height:22px;padding:0}
.fm-ref-macro-card{border-color:#37302b;background:#1b1a19}.fm-ref-macro-card h4{color:#eee}.fm-ref-macro-step>span:last-child{font-size:.84rem}.fm-ref-macro-delay{box-sizing:border-box}
.demo-text-macro-editor{margin:18px 0;padding:16px;border:1px solid #5b4030;border-radius:9px;background:#1d1917}.demo-text-macro-editor .demo-macro-heading button,.demo-text-macro-card button{padding:7px 10px;border:1px solid #895733;border-radius:5px;background:#312217;color:#ffd0a4;cursor:pointer}.demo-text-macro-editor .demo-macro-heading h3{margin:0;color:#fff}.demo-text-macro-editor>p{margin:8px 0 14px;color:#aa9a8e;font-size:.82rem}.demo-text-macro-card{display:grid;gap:12px;margin-top:10px;padding:14px;border:1px solid #4c3b30;border-radius:7px;background:#211d1a}.demo-text-macro-card label{display:grid;gap:5px;color:#cbb9ac;font-size:.79rem}.demo-text-macro-card input,.demo-text-macro-card textarea{box-sizing:border-box;width:100%;padding:9px;border:1px solid #66503e;border-radius:5px;background:#121212;color:#f0e5db;font:inherit}.demo-text-macro-card textarea{resize:vertical;font-family:Consolas,monospace;line-height:1.5}.demo-text-macro-card button{justify-self:start}.demo-profile-text-macros{margin:15px 0}.demo-profile-text-macros h4{margin:0 0 8px}.demo-published-text-macro{margin:8px 0;padding:10px;border:1px solid #534234;border-radius:6px;background:#1d1a18}.demo-published-text-macro pre{overflow:auto;margin:9px 0 0;padding:10px;border:1px solid #3d3935;background:#111;color:#e4d6c8;white-space:pre-wrap;font:12px/1.5 Consolas,monospace}.fm-ref-text-macros{border-top:1px solid #39302a}.fm-ref-text-macro-card{margin:13px 15px;padding:13px;border:1px solid #37302b;border-radius:7px;background:#1b1a19}.fm-ref-text-macro-card h4{margin:0;color:#eee;font-size:.9rem}.fm-ref-macro-empty{margin:0;padding:15px;color:#918b85;font-size:.82rem}
.demo-rotation-sequence{display:flex;flex-wrap:wrap;align-items:start;gap:8px}.demo-rotation-sequence>p{margin:0;color:#8f8984;font-size:.8rem}.demo-rotation-step{display:grid;grid-template-columns:40px 1fr;gap:4px;align-items:center;min-width:150px;max-width:190px;padding:6px;border:1px solid #4c413a;border-radius:5px;background:#151515}.demo-rotation-step .a2b-result-icon{grid-row:span 2;width:40px;height:40px}.demo-rotation-step .a2b-result-icon img{width:100%;height:100%}.demo-rotation-step>span:nth-child(2){font-size:.73rem}.demo-rotation-step button{padding:2px 5px;font-size:.7rem}.demo-rotation-step button:disabled{opacity:.35;cursor:default}.demo-published-rotation-sequence,.fm-ref-rotation-sequence{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}.demo-published-rotation-sequence .a2b-result-icon{width:42px;height:42px}.demo-published-rotation-sequence .a2b-result-icon img{width:100%;height:100%}.fm-ref-rotation-sequence .fm-ref-icon{width:46px;height:46px}.fm-ref-text-macro-card h4{margin-bottom:10px}
.demo-enhancement-limit-note{margin:5px 0 0;color:#bcae9e;font-size:.74rem}
