/* Boiseries et ferrures du coffre, dans la palette des commandes du Havre. */
.guild-register .chest-heading{padding:12px 18px;margin-bottom:14px;background:linear-gradient(110deg,#37392f,#242a25);border-color:#77715a;border-left-color:#c2a569}
.guild-register .chest-heading h3{font-size:22px;margin:4px 0 0}
.chest-searchbar{display:grid;grid-template-columns:1.08fr 1.12fr 1fr .94fr 1.12fr;gap:12px;padding:16px 14px;background:linear-gradient(110deg,#34362d,#222922);border:1px solid #77705a;border-radius:5px;box-shadow:inset 0 0 0 3px #151b1744,0 3px 8px #0003;min-width:0;position:relative}
.chest-searchbar:before,.chest-searchbar:after{content:'';position:absolute;top:5px;width:4px;height:4px;transform:rotate(45deg);background:#bba06b;box-shadow:0 1px 2px #000}.chest-searchbar:before{left:5px}.chest-searchbar:after{right:5px}
.chest-control{min-width:0}.chest-control>span{display:block;margin:0 0 6px 5px;font-size:10px;letter-spacing:.06em;color:#c7b88d}
.chest-control .chest-menu-trigger{width:100%;min-height:46px;display:flex;align-items:center;gap:7px;padding:8px 12px;font-size:11px;text-align:left;line-height:1.35}
.chest-menu-trigger>b{min-width:0;flex:1;overflow-wrap:anywhere;font-weight:500}.chest-menu-trigger>img{width:26px;height:26px;flex-shrink:0;filter:drop-shadow(0 2px 2px #0007)}.chest-menu-trigger>.chest-chevron{width:14px;height:14px;transition:transform .12s}.chest-menu-trigger[aria-expanded=true]>.chest-chevron{transform:rotate(180deg)}
.chest-filter-chips{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0 0}.chest-filter-chips .text-button{border:1px solid #8f7d52!important;border-radius:4px;background:#bda16615!important;padding:4px 8px;color:#e4d1a0!important;font-size:10px;display:flex;gap:8px;align-items:center}.chest-filter-chips span{color:#c6ad73;font-size:15px}.chest-results{margin:10px 0}
.chest-filter-panel{position:fixed;z-index:20000;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:17px;isolation:isolate;border:12px solid transparent;border-image:url('assets/brumes-interface/coffre/menu-frame.svg') 20 fill / 16px stretch;background:#242823;border-radius:12px;box-shadow:0 15px 44px #000b;color:#e6deca;font:12px/1.4 'Segoe UI',sans-serif}
.chest-filter-panel *{box-sizing:border-box}.chest-filter-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid #9e89554d}.chest-filter-panel .eyebrow{font-size:8px;letter-spacing:1.7px;color:#c1a66d}.chest-filter-panel h3{font:600 22px/1.2 Georgia,serif;margin:3px 0 0;color:#f0deac}.chest-filter-panel header button{min-width:30px;min-height:30px;padding:5px}
.chest-menu-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;margin:10px 0 0;padding:2px 4px 4px;scrollbar-color:#8e7a4a #20251f;scrollbar-width:thin;max-height:420px}
body .chest-filter-panel button.chest-menu-option{border-image:none!important;border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;color:#ded5be!important;text-shadow:none;display:flex;width:100%;align-items:center;gap:10px;text-align:left;font-size:12px;line-height:1.4;font-weight:400;padding:11px 10px;border-radius:4px}
body .chest-filter-panel .chest-menu-option:hover,body .chest-filter-panel .chest-menu-option:focus-visible{background:#af966f1c!important;border-color:#8f7e52!important}.chest-menu-option>span{flex:1;min-width:0;overflow-wrap:anywhere}
.chest-choice-check{width:20px;height:20px;flex:0 0 20px;border:1px solid #776c51;border-radius:4px;background:linear-gradient(#171f1b,#394137);box-shadow:inset 0 1px 3px #0007;display:block}
body .chest-filter-panel .chest-menu-option[aria-selected=true],body .chest-filter-panel .chest-menu-option[aria-pressed=true],.chest-stat-choice:has(input:checked){background:linear-gradient(100deg,#8e7c453d,#8e7c4515)!important;border-color:#af935b!important;color:#f3e0ad!important}
.chest-menu-option[aria-selected=true] .chest-choice-check,.chest-menu-option[aria-pressed=true] .chest-choice-check,.chest-stat-choice input:checked~.chest-choice-check{background:#333b2b url('assets/brumes-interface/coffre/check-rune.svg') center/18px no-repeat;border-color:#c3a369}
.chest-slot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:410px}body .chest-filter-panel .chest-slot-grid button{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;text-align:center;padding:9px 4px 7px;position:relative;font-size:10px;gap:5px;border-color:#67664b!important;background:#141d174d!important}.chest-slot-grid .chest-choice-check{position:absolute;top:3px;right:3px;width:13px;height:13px;background-size:12px!important}.chest-slot-grid .equipment-slot-illustration,.chest-slot-grid .sublimation-icon{width:38px;height:38px;max-width:100%;flex-shrink:0}.chest-slot-grid img{max-width:100%}
.chest-stat-search{padding:12px 4px 0}.chest-stat-search input{display:block;width:100%;min-width:0;background:#1a211d;color:#e5dcc4;border:1px solid #7c7355;border-radius:4px;padding:9px 11px;font:12px 'Segoe UI',sans-serif}.chest-stat-search small{display:block;color:#c4bda8;font-size:10px;margin-top:7px}
.chest-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.chest-stat-grid h4{grid-column:1/-1;font-size:10px;color:#c6aa70;font-weight:500;letter-spacing:1px;text-transform:uppercase;margin:10px 0 4px}.chest-stat-choice{min-width:0;position:relative;display:flex;align-items:center;gap:8px;padding:8px 6px;border:1px solid #6e6b5238;border-radius:4px;font-size:11px;cursor:pointer;background:#1c241d77;color:#ddd5bf;min-height:46px;line-height:1.35}.chest-stat-choice>span{flex:1;min-width:0;overflow-wrap:anywhere}.chest-stat-choice>img{width:25px;height:25px;flex-shrink:0}.chest-stat-choice input{position:absolute;opacity:0;width:1px;height:1px}.chest-stat-choice:hover,.chest-stat-choice:focus-within{outline:1px solid #c7b274;outline-offset:-1px}
.chest-stat-grid [hidden]{display:none!important}.chest-filter-panel footer{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #9e89554d;margin-top:12px;padding-top:12px;flex-shrink:0;color:#b8b29d;font-size:10px}.chest-filter-panel footer button{font-size:11px;min-height:31px}.chest-filter-panel .text-button{color:#e0c587}.chest-rarity-gem{width:16px;height:16px;margin:0 6px;transform:rotate(45deg);background:var(--gem);border:2px solid #e7d8a970;box-shadow:inset -2px -2px 2px #0006,0 2px 4px #0009;flex-shrink:0}
@media(max-width:1050px){.chest-searchbar{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.chest-control{grid-column:span 2}.chest-control:nth-child(-n+2){grid-column:span 3}.chest-menu-trigger>b{font-size:11px}}
@media(max-width:540px){.chest-searchbar{padding:12px 10px;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.chest-control,.chest-control:nth-child(-n+2){grid-column:auto}.chest-control:last-child{grid-column:1/-1}.chest-control .chest-menu-trigger{padding:8px;min-height:44px}.chest-menu-trigger>img{width:22px;height:22px}.chest-filter-panel{padding:10px;border-width:8px}.chest-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chest-stat-grid{grid-template-columns:1fr}.chest-filter-panel footer{gap:8px}.guild-register .chest-heading{padding:12px}}
