/* Layout compacto para comparar varias piezas sin recorrer una página larga. */
#demo-gear-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;align-items:start;padding:15px 18px}
#demo-gear-editor>h3,#demo-gear-editor>label,#demo-gear-editor>.demo-item-results,#demo-gear-editor>.demo-item-details,#demo-gear-editor>.demo-equipment-section{grid-column:1/-1}
#demo-gear-editor>h3{font-size:1.1rem;margin:0 0 3px}
#demo-gear-editor>label{margin:5px 0;gap:3px;font-size:.84rem}
#demo-gear-editor>label input,#demo-gear-editor>label textarea{padding:8px 10px}
#demo-gear-editor .demo-clear-item{height:36px;width:38px}
#demo-gear-editor #demo-gear-name{padding-right:42px}
#demo-gear-editor .demo-item-details{display:flex;flex-wrap:wrap;gap:2px 12px;align-items:baseline;margin:5px 0 8px;padding:6px 0;border-color:#41362e;font-size:.8rem}
#demo-gear-editor .demo-item-details[hidden]{display:none}
#demo-gear-editor .demo-item-details strong{color:#f4c390}
#demo-gear-editor .demo-item-details p{margin:0}
#demo-gear-editor .demo-range-group{grid-column:auto;margin:4px 0 10px;padding:0 10px 0 0}
#demo-gear-editor .demo-range-heading{margin:0;font-size:.84rem}
#demo-gear-editor .demo-range-group input[type=range]{height:19px;margin:3px 0}
#demo-gear-editor .demo-range-ends{font-size:.74rem}
#demo-gear-editor .demo-equipment-section{padding:8px 0;border-color:#40352e}
#demo-gear-editor .demo-equipment-section[hidden]{display:none!important}
#demo-gear-editor .demo-equipment-section h4{font-size:.85rem;margin:0 0 7px}
#demo-main-stats-note ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 10px;padding:0!important;list-style:none;font-size:.82rem}
#demo-main-stats-note li{margin:0!important;padding:5px 8px;background:#292521;border:1px solid #453a30;border-radius:5px}
#demo-substat-editor{gap:5px}
#demo-substat-editor .demo-substat-row{grid-template-columns:minmax(150px,1fr) 80px 42px 42px;gap:5px}
#demo-substat-editor .demo-substat-row select,#demo-substat-editor .demo-substat-row input,#demo-stone-editor input{padding:5px 7px;font-size:.83rem}
#demo-substat-editor .demo-substat-row button{font-size:.78rem}
#demo-stone-editor{grid-template-columns:1fr;gap:5px}
#demo-stone-editor .demo-stone-heading{font-size:.8rem;color:#d8b797;font-weight:700;margin:7px 0 1px}
#demo-stone-editor .demo-stone-family,#demo-stone-editor .demo-stone-effect{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
#demo-stone-editor .demo-stone-effect{padding-left:28px}
#demo-stone-editor select{flex:1;min-width:190px;max-width:100%;background:#292622;border:1px solid #51463b;color:#eee;border-radius:6px;padding:6px 8px;font-size:.83rem}
#demo-stone-editor .demo-stone-family input,#demo-stone-editor .demo-stone-effect input{flex-basis:100%;margin-left:28px}
#demo-stone-editor .demo-stone-effect span{color:#d8b221;font-size:.67rem}
#demo-stone-editor .demo-stone-glyph{display:grid;place-items:center;width:22px;height:22px;flex:none;border:1px solid #74934d;border-radius:4px;background:linear-gradient(135deg,#173e3f,#356446);color:#9ce6c6;font-size:.85rem}
#demo-stone-editor .demo-theostone-glyph{border-color:#a8863d;background:linear-gradient(135deg,#3f3422,#806633);color:#ffe49a}
#demo-stone-editor .demo-theostone-effect{display:block;padding-left:28px;color:#d9c4aa;font-size:.77rem;line-height:1.35}
#demo-stone-editor .demo-stone-glyph img{width:100%;height:100%;object-fit:contain}
#demo-gear-philosopher{width:100%;max-width:350px;background:#292622;border:1px solid #51463b;color:#eee;border-radius:6px;padding:7px 9px}
#demo-gear-philosopher-custom{display:block;margin-top:6px;max-width:350px}
#demo-gear-philosopher-custom[hidden],#demo-stone-editor input[hidden]{display:none}
#demo-philosopher-stat-editor{margin-top:8px}
#demo-philosopher-stat-editor[hidden]{display:none}
#demo-philosopher-stat-editor>small{display:block;margin:0 0 5px;color:#b9a997;font-size:.75rem}
#demo-philosopher-stat-editor label{display:block;font-size:.8rem;color:#e5c5a6}
#demo-philosopher-stat-editor .demo-philosopher-stat-row{display:grid;grid-template-columns:minmax(150px,1fr) 80px 42px 42px;gap:5px;margin-top:4px}
#demo-philosopher-stat-editor select,#demo-philosopher-stat-editor input{min-width:0;width:100%;background:#292622;border:1px solid #51463b;color:#eee;border-radius:6px;padding:5px 7px;font-size:.83rem}
#demo-philosopher-stat-editor button{border:1px solid #5c5044;border-radius:6px;background:#302d29;color:#eee;cursor:pointer;font-size:.78rem}
#demo-philosopher-stat-editor button.demo-max{background:#2a744e;border-color:#3c9966}
#demo-gear-editor .demo-equipment-section small{margin:3px 0;font-size:.75rem}
@media(max-width:1080px){#demo-main-stats-note ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#demo-gear-editor{grid-template-columns:1fr}#demo-gear-editor .demo-range-group{grid-column:1}#demo-stone-editor{grid-template-columns:1fr}}
.demo-example-switcher{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:9px 0 14px;padding:9px 10px;border:1px solid #554135;border-radius:8px;background:#211b17}
.demo-example-switcher strong{font-size:.8rem;color:#d7c2aa;margin-right:5px}
.demo-example-switcher button{cursor:pointer;border:1px solid #6c5140;border-radius:6px;background:#30251e;color:#eee0d1;padding:5px 9px;font-size:.8rem}
.demo-example-switcher button.is-active{border-color:#e8ad66;background:#634026;color:#fff}
#demo-gear-editor .demo-range-group[hidden]{display:none!important}
