.epic-chests-dialog{width:min(720px,calc(100% - 24px));max-height:90vh;max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);box-sizing:border-box;overflow:hidden}
.epic-chests-dialog::backdrop{background:#041832b3}
.epic-chests-layout{display:flex;flex-direction:column;max-height:inherit}
.epic-chests-head,.epic-chests-footer{flex:none;padding:16px 20px;background:var(--soft);display:flex;align-items:center;gap:12px}
.epic-chests-head{border-bottom:1px solid var(--line)}.epic-chests-head h2{flex:1;margin:0;font-size:22px;line-height:1.3}
.epic-chests-body{padding:20px;overflow:auto;overscroll-behavior:contain}.epic-chests-body p{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 16px}
.epic-chests-controls,.epic-chests-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.epic-chests-controls label{display:block;font-size:15px;font-weight:600;margin-bottom:8px}
.epic-chests-controls input,.epic-chests-controls select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:8px;background:var(--control);color:var(--ink);font:inherit;padding:10px}
.epic-chests-metric{border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--soft)}.epic-chests-metric span{display:block;font-size:13px;color:var(--muted);line-height:1.4}.epic-chests-metric strong{display:block;margin-top:5px;font-size:23px}
.epic-chests-body progress{width:100%;accent-color:var(--accent)}.epic-chests-error{color:var(--danger)!important}.epic-chests-body summary{cursor:pointer;padding:12px 0;font-weight:600}.epic-chests-thresholds{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}.epic-chests-thresholds caption{text-align:left;color:var(--muted);font-size:13px;padding:8px 0 12px}.epic-chests-thresholds th,.epic-chests-thresholds td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}.epic-chests-thresholds thead{background:var(--soft)}.epic-chests-thresholds th:last-child,.epic-chests-thresholds td:last-child{text-align:right}.epic-chests-thresholds tbody th{font-weight:500}.epic-chests-body .epic-chests-currency{font-weight:650;color:var(--ink)}.epic-chests-footer{border-top:1px solid var(--line);justify-content:flex-end}.epic-chests-footer button{min-height:42px}
@media(max-width:540px){.epic-chests-controls{grid-template-columns:1fr}.epic-chests-head,.epic-chests-footer{padding:14px}.epic-chests-body{padding:14px}.epic-chests-metric strong{font-size:20px}}

.epic-chests-copy{display:inline-flex;align-items:center;justify-content:center;gap:7px}.epic-chests-copy svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.epic-chests-copy:disabled{opacity:.5;cursor:default}.epic-chests-footer [data-copy-status]{flex:1;font-size:13px;line-height:1.3;color:var(--muted)}

.epic-chests-controls>div{min-width:0}.epic-chests-select{position:relative;min-width:0}.epic-chests-controls .epic-chests-select select{appearance:none;-webkit-appearance:none;height:44px;min-height:44px;padding:8px 40px 8px 10px;border-radius:7px;font-size:17px;font-weight:650;line-height:1.3;text-overflow:ellipsis;cursor:pointer;box-shadow:none}
.epic-chests-select>svg{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;pointer-events:none;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.epic-chests-select select:open+svg{transform:translateY(-50%) rotate(180deg)}.epic-chests-select option{background:var(--control);color:var(--ink)}
.epic-chests-controls .epic-chests-value{height:44px;border-radius:7px;background:var(--control);border-color:var(--line)}.epic-chests-controls .epic-chests-value input{height:100%;min-height:0;border:0;border-radius:0;padding:8px 10px;background:transparent;font-size:17px;font-weight:650;line-height:1.3;box-shadow:none;min-width:0}.epic-chests-value>span{display:flex;align-items:center;align-self:stretch;font-size:15px;padding:0 12px;color:var(--muted);border-color:var(--line)}
.epic-chests-select select:focus-visible,.epic-chests-value:focus-within{outline:2px solid var(--accent);outline-offset:2px}.epic-chests-value:has(input[aria-invalid=true]){border-color:var(--danger)}
