/* Element assets. Generated by bin/build-element-theme.py. */
.dungeon-index {min-width:0;}
.dungeon-index-heading {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:0 12px;}
.dungeon-index-heading > a {display:inline-flex;align-items:center;min-height:44px;color:#f1d7a7;text-underline-offset:.17em;}
.dungeon-index-filters {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;align-items:end;}
.dungeon-index-filters[hidden],.dungeon-index-layers[hidden],.dungeon-index-more[hidden] {display:none;}
.dungeon-index-filters label {display:grid;gap:6px;color:#e4cc9e;font-weight:650;}
.dungeon-index-filters :is(input,select) {
    width:100%;min-height:44px;min-width:0;padding:8px 11px;border:1px solid #8d7551;border-radius:4px;background:#121c17;color:#f3e4cc;font:inherit;
}
.dungeon-index-results {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px 12px;margin-bottom:8px;}
.dungeon-index-card {min-width:0;border:1px solid #65573d;border-radius:5px;background:#15201a;scroll-margin-top:105px;overflow-wrap:anywhere;}
.dungeon-index-card[open] {border-color:#a08659;}
.dungeon-index-card > summary {min-height:44px;padding:10px 12px;color:#efdbb1;cursor:pointer;line-height:1.35;}
.dungeon-index-name {font-weight:700;}
.dungeon-index-areas {display:block;margin:4px 0 0 1.04rem;font-size:.88rem;color:#c4b9a3;}
.dungeon-index-card-body {padding:3px 12px 14px;}
.dungeon-index-card-body > img {float:right;max-width:76px;max-height:108px;object-fit:contain;margin:0 0 8px 12px;}
.dungeon-index-card-body > p {margin:0 0 11px;color:#ddd6c8;}
.dungeon-index-card-body > h3 {clear:both;font-size:1rem;margin:12px 0 7px;color:#ead5ac;}
.dungeon-index-stat-grid {clear:both;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:5px;margin:0;}
.dungeon-index-stat-grid > div {min-width:0;padding:6px 8px;background:#202b21;border-radius:3px;}
.dungeon-index-stat-grid dt {font-size:.82rem;color:#c7baa1;}
.dungeon-index-stat-grid dd {margin:2px 0 0;color:#f4e7cc;}
.dungeon-index-drops,.dungeon-index-coordinates {margin:0 0 8px;padding-left:18px;}
.dungeon-index-drops li {margin:3px 0;}
.loot-drop-link {display:inline-flex;align-items:center;gap:8px;min-height:40px;max-width:100%;text-underline-offset:.15em;overflow-wrap:anywhere;}
.loot-drop-link img {width:40px;height:30px;flex:none;object-fit:contain;border-radius:3px;background:#263023;}
.loot-item-variants summary {min-height:40px;padding:8px 0;cursor:pointer;color:#efd8ab;}
.dungeon-index-coordinates {display:flex;flex-wrap:wrap;gap:6px;padding:0;list-style:none;}
.dungeon-index-coordinates li {max-width:100%;font-size:.91rem;}
.dungeon-index-coordinates a {display:inline-flex;align-items:center;min-height:40px;padding:3px 8px;border:1px solid #7d6849;border-radius:3px;color:#f1d7a7;text-decoration:underline;text-underline-offset:.15em;}
.dungeon-index-more,.dungeon-index-layers button {
    min-height:44px;padding:7px 11px;border:1px solid #8c7451;border-radius:4px;background:#242b20;color:#f1d8b0;cursor:pointer;font:inherit;
}
.dungeon-index-more:hover,.dungeon-index-layers button:hover,.dungeon-index-coordinates a:hover {border-color:#e0b77a;}
.dungeon-index-layers {margin:9px 0;color:#e4cc9e;}
.dungeon-index-layers > div {display:flex;flex-wrap:wrap;gap:7px;}
.dungeon-index-layers button {display:inline-flex;align-items:center;gap:7px;text-align:left;line-height:1.2;}
.dungeon-index-layers [data-index-layer="caches"][aria-pressed=true] {background:#39301c;border-color:#d0a35e;color:#ffe4ae;}
.dungeon-index-layers [data-index-layer="mobs"][aria-pressed=true] {background:#3e2528;border-color:#c77983;color:#fbe0e1;}
.dungeon-index-layers [aria-pressed=false] .dungeon-index-symbol {border-color:#ac9d88;background:#172017;color:#d0c2aa;}
.dungeon-index-layer-count {min-width:1.6em;text-align:center;font-size:.84rem;font-variant-numeric:tabular-nums;color:#f8e3c0;}
.dungeon-index-layer-count[hidden] {display:none;}
.dungeon-index-layers p {margin:4px 0 0;color:#c5bda8;font-size:.88rem;}
.dungeon-index-layers p:empty {display:none;}
.dungeon-index-symbol {
    display:inline-grid;place-items:center;flex:none;width:20px;height:20px;border:1px solid #202019;border-radius:3px;
}
.dungeon-index-symbol[data-index-symbol="caches"] {background:#f3c16b;color:#2c1e0f;}
.dungeon-index-symbol[data-index-symbol="mobs"] {background:#a9374c;color:#fff0e7;}
.dungeon-index-symbol svg {width:82%;height:82%;}
.dungeon-cell-markers {
    position:absolute;inset-inline:0;inset-block-end:1px;display:flex;justify-content:center;gap:1px;pointer-events:none;
}
.dungeon-cell-markers .dungeon-index-symbol {
    width:clamp(10px,calc(var(--dg-cell-size) * .43),18px);height:clamp(10px,calc(var(--dg-cell-size) * .43),18px);
}
.dg-map-grid .dg-cell[data-index-marker] > .dg-cell-symbol {visibility:hidden;}
.dg-map-grid .dg-cell[data-index-marker] > .dg-cell-coord {position:absolute;inset-block-start:1px;}
.dg-map-grid--overview .dungeon-cell-markers {display:none;}
.dg-map-grid--overview .dg-cell[data-index-marker~="caches"]:not([data-necro-path]) {background:#f3c16b;}
.dg-map-grid--overview .dg-cell[data-index-marker~="mobs"]:not([data-necro-path]) {background:#a9374c;}
.dg-map-grid--overview .dg-cell[data-index-marker="caches mobs"]:not([data-necro-path]) {
    background:linear-gradient(90deg,#f3c16b 50%,#a9374c 50%);
}
.dungeon-index-cell-links {margin:10px 0;}
.dungeon-index-bestiary {display:inline-flex;align-items:center;min-height:44px;color:#f4dcaf;text-underline-offset:.15em;}
[data-index-layer-bestiary] {display:inline-flex;align-items:center;min-height:44px;padding:5px 0;color:#f4dcaf;text-underline-offset:.15em;}
.dungeon-cell-bestiary {margin:10px 0;padding:8px 10px;background:#1e2b21;border:1px solid #675b40;border-radius:4px;}
.dg-map-info .dungeon-cell-bestiary h4 {margin:0 0 6px;}
.dungeon-cell-bot {display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;}
.dungeon-cell-bot + .dungeon-cell-bot {border-top:1px solid #574d39;margin-top:5px;padding-top:5px;}
.dungeon-cell-bot img {width:43px;height:64px;object-fit:contain;flex:none;border-radius:3px;background:#222c22;}
.dungeon-cell-bot a {display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:#f4dbad;text-underline-offset:.16em;}
.dungeon-cell-bot p {color:#d8c5a6;font-size:.88rem;}
.dungeon-index :is(a,button,input,select,summary):focus-visible,.dungeon-index-layers button:focus-visible {outline:3px solid #f4c581;outline-offset:2px;}
.dungeon-cache-dialog {
    width:min(640px,calc(100% - 28px));max-width:none;max-height:min(84vh,720px);max-height:min(84dvh,720px);
    padding:0;border:1px solid #9b8053;border-radius:6px;background:#15201a;color:#e8decb;
    box-shadow:0 18px 55px #0009;overflow:hidden;
}
.dungeon-cache-dialog[open] {display:flex;flex-direction:column;}
.dungeon-cache-dialog::backdrop {background:#060b09bd;}
.dungeon-cache-dialog-header {display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:14px 16px;background:#202a21;border-bottom:1px solid #65573d;}
.dungeon-index .dungeon-cache-dialog-header h2 {margin:0;color:#f4dfb6;font-size:clamp(18px,3vw,24px);line-height:1.22;overflow-wrap:anywhere;}
.dungeon-cache-dialog-header p {margin:4px 0 0;color:#d4c6ad;font-size:.88rem;}
.dungeon-cache-dialog-header p:empty {display:none;}
.dungeon-cache-dialog-header form {margin:0;}
.dungeon-cache-dialog-header button {width:44px;height:44px;padding:0;border:1px solid #746545;border-radius:4px;background:#171f18;color:#f4dfb6;font:inherit;font-size:24px;cursor:pointer;}
.dungeon-cache-dialog-body {min-height:0;padding:14px 16px 18px;overflow:auto;overscroll-behavior:contain;}
.dungeon-cache-dialog-card {display:flow-root;min-width:0;overflow-wrap:anywhere;}
.dungeon-cache-dialog-card + .dungeon-cache-dialog-card {border-top:1px solid #65573d;margin-top:12px;padding-top:12px;}
.dungeon-cache-dialog-card > img {float:right;width:auto;max-width:56px;max-height:58px;object-fit:contain;margin:0 0 6px 10px;}
.dungeon-cache-dialog-card :is(h3,h4) {margin:0 0 6px;color:#f0d5a5;font-size:1rem;line-height:1.3;}
.dungeon-cache-dialog-card ul + :is(h3,h4) {margin-top:12px;}
.dungeon-cache-dialog-card p {margin:0 0 8px;line-height:1.4;}
.dungeon-cache-location-note,.dungeon-cache-drop-note {display:block;color:#cfc1a8;font-size:.86rem;}
.dungeon-cache-drop-note {padding:0 9px 7px;}
.dungeon-cache-dialog .dungeon-index-drops {
    clear:both;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:6px;margin:0;padding:0;list-style:none;
}
.dungeon-cache-dialog .dungeon-index-drops > li {margin:0;min-width:0;background:#1e2920;border:1px solid #65573d;border-radius:4px;}
.dungeon-cache-dialog li:not(:has(a,details)) {padding:7px 9px;}
.dungeon-cache-dialog .loot-drop-link {display:flex;min-height:44px;padding:5px 8px;color:#f2d39c;}
.dungeon-cache-dialog .loot-item-variants {padding:0 8px;}
.dungeon-cache-dialog .loot-item-variants ul {margin:0;padding:0;list-style:none;}
.dungeon-cache-dialog .loot-item-variants .loot-drop-link {padding-inline:0;}
@media (max-width:610px) {
    .dungeon-index-layers > div {display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:5px;}
    .dungeon-index-layers button {gap:5px;padding-inline:6px;font-size:.9rem;}
    .dungeon-index-layers .dungeon-index-symbol {width:17px;height:17px;}
    .dungeon-index-filters {grid-template-columns:minmax(0,1fr);}
    .dungeon-index-results {grid-template-columns:minmax(0,1fr);}
    .dungeon-index-coordinates a {min-height:44px;}
    .dungeon-cache-dialog {width:100%;max-height:86vh;max-height:86dvh;margin:auto 0 0;border-radius:12px 12px 0 0;}
    .dungeon-cache-dialog-header {padding:11px 12px;}
    .dungeon-cache-dialog-body {padding:12px 12px max(16px,env(safe-area-inset-bottom));}
    .dungeon-cache-dialog .dungeon-index-drops {grid-template-columns:minmax(0,1fr);}
}
