
.mw-pools { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.mw-pool { --pool: var(--gold-2); display: inline-flex; align-items: center; gap: .35rem; min-height: 2.1rem; padding: .2rem .6rem .2rem .4rem; border-radius: .6rem; border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--pool); background: rgba(255, 255, 255, .035); color: var(--text-2); font-size: .84rem; cursor: pointer; transition: border-color .15s, background .15s; }
.mw-pool .ia-emblem { width: 1.15rem; height: 1.15rem; flex: none; }
.mw-pool b { min-width: 1.1rem; font: 600 .95rem var(--font-num); color: var(--text-3); text-align: right; }
.mw-pool.has-left b { color: var(--gold-1); }
.mw-pool.is-empty { opacity: .6; }
.mw-pool:hover { border-color: rgba(242, 198, 106, .4); border-left-color: var(--pool); background: rgba(255, 255, 255, .06); }

.mw-doors { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.mw-door { --door: var(--gold-2); display: grid; grid-template-rows: minmax(8rem, 1fr) auto; min-height: 0; padding: 0; overflow: hidden; text-align: left; border-radius: 1.2rem; border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(70% 60% at 50% 34%, color-mix(in srgb, var(--door) 14%, transparent), transparent 72%), linear-gradient(180deg, #0c1424, #070b14); color: var(--text-2); cursor: pointer; transition: border-color .15s; }
.mw-door.is-combat { --door: #ff6b5e; }
.mw-door.is-skilling { --door: #a8d47e; }
.mw-door:hover { border-color: rgba(242, 198, 106, .5); }
.mw-door:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.mw-door-art { position: relative; min-height: 0; overflow: hidden; }
.mw-thumb { position: absolute; inset: 1.1rem 1.2rem .5rem; width: calc(100% - 2.4rem); height: calc(100% - 1.6rem); }
.mw-thumb-links { fill: none; stroke: rgba(160, 172, 205, .26); stroke-width: .35; stroke-linecap: round; }
.mw-thumb-dots { fill: rgba(210, 196, 160, .42); }
.mw-thumb-lit { fill: none; stroke-width: .8; stroke-linecap: round; }
.mw-door-copy { display: grid; gap: .3rem; padding: 1rem 1.4rem 1.35rem; border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(0, 0, 0, .25); }
.mw-door-copy .t-caps { font-size: .75rem; font-weight: 400; letter-spacing: .1em; color: var(--gold-3); }
.mw-door-copy strong { font: 400 2.1rem/1.05 var(--font-display); color: var(--gold-0); }
.mw-door-state { font-size: 1rem; color: var(--text-2); }
.mw-door-state b { font: 600 1.25rem var(--font-num); color: var(--gold-1); }
.mw-door-facts { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 1.6rem; }
.mw-door-facts > span { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; border-radius: .5rem; background: rgba(255, 255, 255, .05); font-size: .8rem; color: var(--text-2); }
.mw-door-facts .ia-emblem { width: .95rem; height: .95rem; }
.mw-door-facts .is-power b { color: #8fe3a8; font-family: var(--font-num); }

.mw-toolbar { flex-wrap: wrap; row-gap: .6rem; }
.mw-toolbar .mw-webs { flex: 0 1 auto; }
.mw-toolbar .mw-back { padding: 0 .65rem; }
.mw-toolbar .mw-back .ia-glyph { width: 1.1rem; height: 1.1rem; }
.mw-tools { flex: 1 1 26rem; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.is-hud .win-tools.mw-tools { flex: 1 1 26rem; }
.is-hud .win-tools .mw-search { width: 13.5rem; }
.mw-found { font-size: .84rem; color: var(--text-3); white-space: nowrap; }
.mw-chips { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.mw-chip { height: 2.25rem; padding: 0 .7rem; border-radius: .6rem; border: 1px solid rgba(255, 255, 255, .12); background: none; color: var(--text-2); font-size: .84rem; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.mw-chip:hover { border-color: rgba(242, 198, 106, .4); color: var(--text-1); }
.mw-chip.is-on { border-color: rgba(242, 198, 106, .6); background: rgba(242, 198, 106, .14); color: var(--gold-1); }

.mw-body { flex: 1; min-height: 18rem; }
.is-hud .win-body.mw-body { grid-template-columns: minmax(0, 1fr) 25rem; }
.mw-stage { position: relative; min-width: 0; min-height: 16rem; overflow: hidden; border-radius: 1.05rem; border: 1px solid rgba(255, 255, 255, .08); background: #070c16; }
.mw-canvas { position: absolute; inset: 0; outline: none; touch-action: pan-y; }
.mw-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--gold-1); border-radius: inherit; }
.mw-canvas-el { display: block; cursor: grab; }
.mw-canvas-el.is-panning { cursor: grabbing; }
.mw-tip { position: absolute; top: 0; left: 0; z-index: 3; display: grid; gap: .15rem; max-width: 18rem; padding: .55rem .7rem; border-radius: .6rem; border: 1px solid rgba(242, 198, 106, .32); background: rgba(8, 13, 22, .95); box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .5); pointer-events: none; font-size: .84rem; line-height: 1.35; color: var(--text-1); }
.mw-tip[hidden] { display: none; }
.mw-tip b { font: 400 1.05rem var(--font-display); color: var(--gold-0); }
.mw-tip small { font-size: .74rem; color: var(--text-3); }
.mw-tip .mw-tip-foot { margin-top: .15rem; color: var(--gold-3); }
.mw-nav { position: absolute; z-index: 2; top: .7rem; right: .7rem; display: grid; gap: .35rem; }
.mw-nav button, .mw-jumps button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border-radius: .6rem; border: 1px solid rgba(242, 198, 106, .3); background: rgba(8, 13, 22, .82); color: var(--gold-1); cursor: pointer; transition: border-color .15s, background .15s; }
.mw-nav button:hover, .mw-jumps button:hover { border-color: var(--gold-2); background: rgba(20, 28, 44, .92); }
.mw-nav .ia-glyph { width: 1.1rem; height: 1.1rem; }
.mw-minus { display: block; width: 1rem; height: 2px; border-radius: 1px; background: currentColor; }
.mw-jumps { position: absolute; z-index: 2; left: .7rem; bottom: .7rem; display: flex; flex-wrap: wrap; gap: .3rem; max-width: calc(100% - 1.4rem); }
.mw-jumps button { width: 2.2rem; height: 2.2rem; }
.mw-jumps .ia-emblem { width: 1.35rem; height: 1.35rem; }
.mw-hint { position: absolute; z-index: 1; top: .8rem; left: .9rem; margin: 0; font-size: .74rem; color: rgba(214, 205, 182, .55); pointer-events: none; }
.mw-hint .for-touch { display: none; }
@media (pointer: coarse) { .mw-hint .for-mouse { display: none; } .mw-hint .for-touch { display: inline; } .mw-canvas { touch-action: none; } }
.mw-pick { display: none; }
.mw-lock { position: absolute; z-index: 3; top: .7rem; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: .6rem; width: max-content; max-width: calc(100% - 7rem); font-size: .86rem; line-height: 1.35; background: rgba(12, 16, 26, .95); }
.mw-lock .ia-glyph { flex: none; width: 1rem; height: 1rem; color: var(--ember); }
.mw-lock .btn { flex: none; }
.mw-editing { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; padding: .5rem .7rem; border: 1px solid rgba(242, 198, 106, .4); border-radius: .75rem; background: rgba(242, 198, 106, .08); font-size: .86rem; line-height: 1.35; }
.mw-editing > .ia-glyph { flex: none; width: 1.05rem; height: 1.05rem; color: var(--gold-1); }
.mw-editing > span:first-of-type { flex: 1; min-width: 0; }
.mw-editing b { color: var(--gold-1); margin-right: .3rem; }
.mw-editing-acts { flex: none; display: flex; gap: .4rem; }
.mw-editing-acts .btn { min-height: 2.2rem; padding: 0 .8rem; font-size: .85rem; }

.mw-card { min-height: 0; }
.mw-card-head { flex: none; display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.05rem 0; min-width: 0; }
.mw-card-title { flex: 1; display: grid; gap: .15rem; min-width: 0; }
.mw-card-title .t-caps { font-size: .72rem; font-weight: 400; letter-spacing: .09em; color: var(--gold-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-card-title .win-side-title, .mw-card-title h3 { margin: 0; font: 400 1.5rem/1.15 var(--font-display); color: var(--gold-0); overflow-wrap: anywhere; }
.mw-card-close { flex: none; align-self: flex-start; }
.mw-mark { --node: var(--gold-2); flex: none; display: grid; place-items: center; width: 3.2rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); background: #0e1624; color: var(--text-2); }
.mw-mark > :is(.ia-emblem, .ia-glyph) { width: 62%; height: 62%; }
.mw-mark.is-taken { border-color: var(--node); background: color-mix(in srgb, var(--node) 42%, #0e1624); color: #fff; }
.mw-mark.is-open { border-color: rgba(242, 198, 106, .6); }
.mw-mark.is-notable { border-width: 2.5px; }
.mw-mark.is-specialty { border-radius: 30%; }
.mw-mark.is-oath { border-radius: .55rem .55rem 50% 50% / .55rem .55rem 62% 62%; border-color: color-mix(in srgb, var(--oath) 60%, transparent); }
.mw-mark.is-oath.is-taken { border-color: var(--oath); background: color-mix(in srgb, var(--oath) 32%, #0e1624); }
.mw-mark.is-sworn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--oath) 28%, transparent), 0 0 .9rem color-mix(in srgb, var(--oath) 35%, transparent); }
.mw-mark.is-root { border-color: var(--gold-2); }
.mw-mark:is(.is-compare, .is-preset) { border-color: rgba(242, 198, 106, .55); color: var(--gold-1); }
.mw-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; margin: 0; color: var(--text-2); }
.mw-cost b { font: 600 1.05rem var(--font-num); color: var(--gold-1); }
.mw-cost small { font-size: .8rem; color: var(--text-3); }
.mw-cost .ia-glyph { width: .95rem; height: .95rem; color: var(--emerald); align-self: center; }
.mw-when { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .88rem; color: var(--emerald); }
.mw-when .ia-glyph { width: .9rem; height: .9rem; flex: none; }
.mw-when.is-off { color: var(--ember); }
.mw-lines { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.mw-lines li { padding: .45rem .65rem; border-radius: .6rem; background: rgba(255, 255, 255, .045); color: var(--text-1); font-size: .95rem; line-height: 1.35; }
.mw-note { margin: 0; font-size: .82rem; line-height: 1.42; color: var(--text-3); }
.mw-note b { color: var(--text-2); font-weight: 600; }
.mw-note .ia-glyph { width: .85rem; height: .85rem; color: var(--emerald); vertical-align: -.1rem; }
.mw-power { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .1rem .6rem; padding: .55rem .7rem; border-radius: .675rem; border: 1px solid rgba(88, 214, 127, .3); background: rgba(88, 214, 127, .07); }
.mw-power > span { color: var(--text-2); font-size: .86rem; }
.mw-power > b { color: #8fe3a8; font: 600 1.05rem var(--font-num); white-space: nowrap; }
.mw-power > small { grid-column: 1 / -1; color: var(--text-3); font-size: .76rem; }
.mw-power.is-down { border-color: rgba(255, 143, 79, .35); background: rgba(255, 143, 79, .07); }
.mw-power.is-down > b { color: #ff9b7a; }
.is-hud .mw-card .detail-scroll { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.mw-oath { display: grid; gap: .45rem; padding: .7rem .8rem; border-radius: .75rem; border: 1px solid color-mix(in srgb, var(--oath) 45%, transparent); background: color-mix(in srgb, var(--oath) 8%, rgba(0, 0, 0, .2)); }
.mw-oath-head { display: flex; align-items: center; gap: .45rem; }
.mw-oath-head .ia-emblem { width: 1.2rem; height: 1.2rem; }
.mw-oath-head b { flex: 1; color: var(--text-1); font: 400 1.1rem var(--font-display); }
.mw-oath-part { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); align-items: baseline; gap: .6rem; }
.mw-oath-part small { color: var(--gold-3); font-size: .7rem; letter-spacing: .09em; }
.mw-oath-part span { color: var(--text-1); font-size: .9rem; line-height: 1.35; }
.mw-oath-part.is-cost span { color: #ff9b7a; }
.mw-oath-part.is-wins span { color: #a8e0a0; }
.mw-spec { display: grid; gap: .4rem; }
.mw-spec-option { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; align-items: start; gap: .55rem; padding: .55rem .65rem; text-align: left; border-radius: .65rem; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s; }
.mw-spec-option:hover:not(:disabled) { border-color: rgba(242, 198, 106, .4); }
.mw-spec-option.is-on { border-color: rgba(242, 198, 106, .6); background: rgba(242, 198, 106, .09); }
.mw-spec-option:disabled { cursor: default; }
.mw-spec-option:disabled:not(.is-on) { opacity: .6; }
.mw-spec-option > span:not(.mw-spec-dot) { display: grid; gap: .1rem; min-width: 0; }
.mw-spec-option b { color: var(--text-1); font-weight: 600; font-size: .92rem; }
.mw-spec-option small { color: var(--text-3); font-size: .8rem; line-height: 1.3; }
.mw-spec-option small.mw-spec-best { color: var(--gold-3); font-style: italic; }
.mw-spec-option em { font: 600 .84rem var(--font-num); font-style: normal; color: #8fe3a8; white-space: nowrap; }
.mw-spec-dot { width: 1rem; height: 1rem; margin-top: .1rem; border-radius: 50%; border: 2px solid var(--gold-3); }
.mw-spec-option.is-on .mw-spec-dot { border-color: var(--gold-1); background: radial-gradient(circle, var(--gold-1) 0 42%, transparent 46%); }
.mw-route { display: grid; gap: .35rem; padding: .65rem .75rem; border-radius: .7rem; border: 1px dashed rgba(242, 198, 106, .4); background: rgba(242, 198, 106, .05); }
.mw-route-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.mw-route-head small { color: var(--gold-3); font-size: .72rem; letter-spacing: .09em; }
.mw-route-head b { font: 600 .95rem var(--font-num); color: var(--gold-1); }
.mw-sworn { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .5rem .65rem; text-align: left; border-radius: .65rem; border: 1px solid color-mix(in srgb, var(--oath) 50%, transparent); background: color-mix(in srgb, var(--oath) 10%, transparent); color: var(--text-2); cursor: pointer; }
.mw-sworn .ia-emblem { flex: none; width: 1.2rem; height: 1.2rem; }
.mw-sworn > span { display: grid; min-width: 0; }
.mw-sworn b { font: 400 1rem var(--font-display); color: var(--text-1); }
.mw-sworn small { font-size: .78rem; color: var(--text-3); }
.mw-sworn.is-small { padding: .25rem .5rem; }
.mw-sworn.is-small b { font-size: .9rem; }
.mw-regions { display: grid; gap: .55rem; }
.mw-region { --pool: var(--gold-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem .6rem; padding: .6rem .7rem; border-radius: .7rem; border-left: 3px solid var(--pool); background: rgba(255, 255, 255, .035); }
.mw-region > :not(.mw-reset) { grid-column: 1; }
.mw-region-head { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.mw-region-head .ia-emblem { width: 1.15rem; height: 1.15rem; flex: none; }
.mw-region-head > b { font: 400 1.05rem var(--font-display); color: var(--text-1); }
.mw-region-head > span { margin-left: auto; font-size: .84rem; color: var(--text-3); white-space: nowrap; }
.mw-region-head > span b { font: 600 .95rem var(--font-num); color: var(--gold-1); }
.mw-region > small { font-size: .76rem; line-height: 1.35; color: var(--text-3); }
.mw-reset { grid-column: 2; grid-row: 1 / span 3; }
.mw-reset.is-armed { border-color: rgba(255, 93, 87, .6); color: #ff8a84; }
.mw-builds { display: grid; gap: .45rem; }
.mw-builds .win-caps, .mw-foot .win-caps { margin: 0; font: 400 .75rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-3); }
.mw-build-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .4rem; }
.mw-build { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); align-items: center; gap: .45rem; padding: .4rem .55rem; text-align: left; border-radius: .6rem; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: var(--text-2); cursor: pointer; }
.mw-build .ia-emblem { width: 1.3rem; height: 1.3rem; }
.mw-build > span { display: grid; min-width: 0; }
.mw-build strong { font-size: .86rem; font-weight: 600; color: var(--text-1); }
.mw-build small { font-size: .72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-build:hover { border-color: rgba(242, 198, 106, .35); }
.mw-diff { display: grid; gap: .3rem; font-size: .88rem; color: var(--text-2); }
.mw-diff b { font: 600 1rem var(--font-num); }
.mw-diff .is-gain b { color: #5fe08a; }
.mw-diff .is-loss b { color: #f1ead8; }
.mw-legend span { display: inline-block; width: .8rem; height: .8rem; margin: 0 .2rem 0 .1rem; border-radius: 50%; border: 2px solid #5fe08a; vertical-align: -.12rem; }
.mw-legend span.is-loss { margin-left: .6rem; border: 2px dashed #f1ead8; }
.mw-rename { display: grid; gap: .35rem; margin: 0; }
.mw-rename .t-caps { font-size: .72rem; letter-spacing: .09em; color: var(--gold-3); }
.mw-rename > div { display: flex; gap: .4rem; }
.mw-rename .input { flex: 1; min-width: 0; }
.mw-tags { display: grid; gap: .4rem; }
.mw-tags > .t-caps { font-size: .72rem; letter-spacing: .09em; color: var(--gold-3); }
.mw-tag-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.mw-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .5rem; border-radius: .55rem; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: .8rem; cursor: pointer; }
.mw-tag .ia-emblem { width: 1rem; height: 1rem; }
.mw-tag.is-on { border-color: rgba(242, 198, 106, .6); background: rgba(242, 198, 106, .12); color: var(--gold-1); }
.mw-tag:disabled { opacity: .5; cursor: default; }

.mw-stage.is-list { background: rgba(255, 255, 255, .02); }
.mw-list { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .7rem; padding: .8rem; }
.mw-list-tabs { flex: none; align-self: flex-start; flex-wrap: wrap; }
.mw-list-tabs .ia-emblem { width: 1rem; height: 1rem; }
.mw-list-scroll { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 1rem; padding-right: .3rem; }
.mw-list-group { display: grid; gap: .3rem; }
.mw-list-group .win-caps { margin: 0 0 .1rem; font: 400 .75rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-3); }
.mw-row { --node: var(--gold-2); display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .35rem .6rem; text-align: left; border-radius: .6rem; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: var(--text-2); cursor: pointer; }
.mw-row:hover { border-color: rgba(242, 198, 106, .3); }
.mw-row.is-selected { border-color: rgba(242, 198, 106, .6); background: rgba(242, 198, 106, .08); }
.mw-row-mark { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); background: #0e1624; }
.mw-row-mark > :is(.ia-emblem, .ia-glyph) { width: 1.15rem; height: 1.15rem; }
.mw-row.is-taken .mw-row-mark { border-color: var(--node); background: color-mix(in srgb, var(--node) 50%, #0e1624); color: #fff; }
.mw-row.is-open .mw-row-mark { border-color: rgba(242, 198, 106, .65); }
.mw-row.is-oath .mw-row-mark { border-radius: .4rem .4rem 50% 50%; border-color: var(--oath); }
.mw-row.is-locked { opacity: .66; }
.mw-row-name { display: grid; min-width: 0; }
.mw-row-name b { font-size: .9rem; font-weight: 600; color: var(--text-1); }
.mw-row-name small { font-size: .78rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-row-cost { font-size: .8rem; color: var(--text-3); white-space: nowrap; }
.mw-row.is-taken .mw-row-cost { color: var(--emerald); }
.mw-row.is-off .mw-row-mark { border-style: dashed; background: color-mix(in srgb, var(--node) 18%, #0e1624); }
.mw-row.is-off .mw-row-cost { color: var(--ember); }

.mw-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; min-width: 0; }
.mw-presets { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.mw-preset { display: flex; align-items: stretch; min-width: 0; border-radius: .65rem; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); overflow: hidden; }
.mw-preset-open { display: grid; gap: .05rem; min-width: 6.5rem; max-width: 13rem; padding: .35rem .7rem; text-align: left; background: none; border: 0; color: var(--text-2); cursor: pointer; }
.mw-preset-open b { font-size: .86rem; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-preset-open small { font-size: .72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-preset-open:hover { background: rgba(255, 255, 255, .04); }
.mw-preset .mw-preset-load { margin: 0; border-radius: 0; border-width: 0 0 0 1px; min-height: 0; }
.mw-preset.is-current { border-color: rgba(242, 198, 106, .5); background: rgba(242, 198, 106, .07); }
.mw-preset.is-chosen { box-shadow: inset 0 0 0 1px var(--gold-1); }
.mw-preset.is-empty .mw-preset-open b { font-weight: 400; color: var(--text-3); }
.mw-swap { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.3rem; padding: 0 .8rem; border-radius: .6rem; border: 1px solid rgba(255, 255, 255, .12); background: none; color: var(--text-2); font-size: .86rem; cursor: pointer; }
.mw-swap .ia-glyph { width: 1rem; height: 1rem; }
.mw-swap.is-on { border-color: color-mix(in srgb, var(--emerald) 55%, transparent); background: rgba(88, 214, 127, .1); color: #8fe3a8; }

button.gear-power { appearance: none; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: help; }
.gear-build { display: flex; align-items: center; gap: .35rem; width: 100%; margin: .3rem 0 .1rem; padding: .3rem .5rem; border-radius: .5rem; border: 1px solid rgba(242, 198, 106, .22); background: rgba(242, 198, 106, .06); color: var(--gold-1); font-size: .76rem; line-height: 1.25; text-align: left; cursor: pointer; }
.gear-build .ia-emblem { flex: none; width: .95rem; height: .95rem; }
.gear-build span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-build:hover { border-color: rgba(242, 198, 106, .45); }
.lo-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
.lo-preset { display: grid; gap: .05rem; min-width: 0; padding: .35rem .45rem; text-align: left; border-radius: .5rem; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); color: var(--text-2); cursor: pointer; }
.lo-preset b { font-size: .78rem; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-preset small { font-size: .66rem; color: var(--text-3); }
.lo-preset.is-current { border-color: rgba(242, 198, 106, .5); background: rgba(242, 198, 106, .09); }
.lo-preset:disabled { cursor: default; }
.lo-preset:disabled:not(.is-current) { opacity: .55; }
.lo-presets-block .lo-head .btn { margin: -.2rem -.2rem -.2rem 0; }

.tip-body.ledger { display: grid; gap: .3rem; }
.tip-body.ledger .tip-row { align-items: baseline; }
.tip-body.ledger .tip-row span { display: grid; }
.tip-body.ledger .tip-row small { color: var(--text-3); font-size: .7rem; }
.tip-body.ledger .tip-row b { color: #8fe3a8; }
.tip-body.ledger .tip-note { margin-top: .2rem; }
.ledger-inline { margin: .4rem 0 .2rem; padding: .55rem .65rem; border-radius: .6rem; border: 1px solid rgba(242, 198, 106, .22); background: rgba(0, 0, 0, .3); }
.ledger-inline .tip-head h4 { margin: 0; font: 400 1rem var(--font-display); color: var(--gold-1); }

@media (min-width: 761px) and (min-height: 501px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  .is-hud .stage .mastery-window.win-page { overflow-y: auto; }
  .is-hud .stage .mastery-window .detail-action .detail-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
  .is-hud .stage .mastery-window .detail-action .detail-buttons .btn { flex: 1 1 8rem; }
  .is-hud .hud-panel .gear-build { margin-top: .5rem; }
  .is-hud .stage .mastery-window .win-body.mw-body { grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem); }
}
@media (min-width: 761px) and (max-width: 1100px) and (min-height: 501px), (min-width: 761px) and (max-width: 1100px) and (pointer: fine), (min-width: 761px) and (max-width: 1100px) and (pointer: none), (min-width: 761px) and (max-height: 620px) and (min-height: 501px), (min-width: 761px) and (max-height: 620px) and (pointer: fine), (min-width: 761px) and (max-height: 620px) and (pointer: none) {
  .is-hud .stage .mastery-window .win-body.mw-body { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(18rem, 1fr) auto; }
  .is-hud .stage .mastery-window .mw-doors { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(16rem, 1fr); }
}

@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .mastery-page.is-phone { gap: .8rem; padding-bottom: 1rem; }
  .mw-hero { flex-wrap: wrap; }
  .mw-hero .mw-pools { flex: 1 1 100%; }
  .mw-hero .mw-pool { min-height: 2.75rem; }
  .mw-doors { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .mw-door { grid-template-rows: 12rem auto; }
  .mw-door-copy strong { font-size: 1.7rem; }
  .mw-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
  .mw-toolbar .mw-webs { display: flex; gap: .4rem; overflow-x: auto; }
  .mw-toolbar .bank-tab { min-height: 2.75rem; }
  .mw-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .4rem; }
  .mw-search { flex: 1 1 100%; }
  .mw-search .input { min-height: 2.75rem; }
  .mw-chip { height: 2.75rem; }
  .mw-body { flex: none; display: flex; flex-direction: column; gap: .8rem; min-height: 0; }
  .mw-stage { flex: none; height: 62vh; min-height: 18rem; }
  .mw-nav button { width: 2.9rem; height: 2.9rem; }
  .mw-pick { position: absolute; z-index: 2; top: .6rem; left: .6rem; right: 4.1rem; display: flex; align-items: center; gap: .5rem; padding: .35rem .4rem .35rem .7rem; border-radius: .7rem; border: 1px solid rgba(242, 198, 106, .35); background: rgba(8, 13, 22, .92); }
  .mw-pick-name { flex: 1; display: grid; min-width: 0; }
  .mw-pick-name b { font: 400 1rem var(--font-display); color: var(--gold-0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mw-pick-name small { font-size: .74rem; color: var(--text-3); }
  .mw-pick .btn { flex: none; min-height: 2.75rem; }
  .mw-jumps button { width: 2.75rem; height: 2.75rem; }
  .mw-card { min-height: 0; }
  .mw-card .detail-scroll { overflow: visible; }
  .mw-stage.is-list { height: auto; min-height: 0; }
  .mw-list { position: static; padding: .6rem; }
  .mw-list-scroll { overflow: visible; }
  .mw-preset-open { min-height: 2.75rem; }
  .mw-preset .mw-preset-load { min-height: 2.75rem; }
  .mw-swap { min-height: 2.75rem; }
}

@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .combat-choose .combat-tabs { flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .combat-choose .combat-tabs button { padding: .3rem .6rem; }
}

@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .mw-canvas { touch-action: none; -webkit-touch-callout: none; }
  .mastery-page .mw-stage { height: max(14rem, calc((100dvh - var(--band-b, var(--top)) - var(--nav, 0px)) * .66)); min-height: 0; }
  .mastery-page .mw-stage.is-list { height: auto; }
  .mastery-page :is(.mw-pool, .mw-chip, .mw-swap, .mw-row, .mw-preset-open, .mw-sworn, .mw-spec-option, .mw-build, .mw-tag) { min-height: 3.3rem; }
  .mastery-page .mw-chip { height: 3.3rem; min-width: 3.3rem; }
  .mastery-page .btn { min-height: 3.3rem; }
  .mastery-page .btn.btn-icon { width: 3.3rem; }
  .mastery-page .mw-preset .mw-preset-load { min-height: 3.3rem; }
  .mastery-page .mw-toolbar .bank-tab { min-height: 3.3rem; }
  .mastery-page .mw-toolbar .mw-back { min-width: 3.3rem; justify-content: center; }
  .mastery-page .mw-search .input { min-height: 3.3rem; }
  .mastery-page .mw-list-tabs button { min-height: 3.3rem; }
  .mastery-page :is(.mw-nav, .mw-jumps) button { width: 3.3rem; height: 3.3rem; }
  .mastery-page .mw-jumps { gap: .4rem; }
  .mastery-page .mw-pick { right: 4.5rem; }
  .mastery-page .mw-hint { right: 4.6rem; line-height: 1.35; }
  .world-first .mastery-page .mw-stage:not(.is-list) { overflow: clip; }
  .mastery-page .mw-tip { max-width: min(18rem, calc(100% - 1rem)); font-size: .95rem; }
  .mastery-page .mw-tip small { font-size: .9rem; }
  .mastery-page :is(.t-caps, .btn-sm, .segmented button, .tab-name, .bank-tab small, .mw-pool, .mw-chip, .mw-hint, .mw-note, .mw-row-cost, .mw-row-name small, .mw-build strong, .mw-build small,
    .mw-preset-open b, .mw-preset-open small, .mw-region-head > span, .mw-region > small, .mw-list-group .win-caps, .mw-card-title .t-caps, .mw-foot .win-caps, .mw-builds .win-caps,
    .mw-power > span, .mw-power > small, .mw-swap, .mw-door-facts > span, .mw-door-copy .t-caps, .mw-pick-name small, .mw-cost small, .mw-oath-part small, .mw-route-head small, .mw-spec-option small,
    .mw-sworn small, .mw-rename .t-caps, .mw-tags > .t-caps, .mw-tag, .mw-found, .mw-editing) { font-size: .9rem; }
  .world-first .mastery-page .mw-stage:not(.is-list) { height: max(16rem, calc(100dvh - var(--sheet-t, var(--page-top)) - var(--nav, 0px) - 2.75rem - 4.4rem)); }
  .world-first .mastery-page .mw-stage:not(.is-list) .mw-canvas { top: 2.5rem; }
  .world-first .mastery-page .mw-stage:not(.is-list) .mw-nav { top: 3.1rem; }
  .world-first .mastery-page .mw-hint { position: absolute; top: 0; left: 0; right: 0; width: auto; max-width: none; height: 2.5rem; margin: 0; padding: 0 .9rem; display: flex; align-items: center;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-bottom: 1px solid rgba(242, 198, 106, .18); background: rgb(9, 14, 24); color: rgba(214, 205, 182, .7); }
  .world-first .mastery-page .mw-pick { top: 3.1rem; }
  .world-first.web-hint-done .mastery-page .mw-hint { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
  .world-first.web-hint-done .mastery-page .mw-stage:not(.is-list) .mw-canvas { top: 0; transition: top 0s .35s; }
  .world-first.web-hint-done .mastery-page .mw-stage:not(.is-list) .mw-nav, .world-first.web-hint-done .mastery-page .mw-pick { top: .6rem; transition: top 0s .35s; }
  .reduce-motion.web-hint-done .mastery-page :is(.mw-hint, .mw-canvas, .mw-nav, .mw-pick) { transition: none; }
  .mastery-page .mw-to-web { width: 100%; justify-content: center; margin-top: .7rem; }
}
@media (max-height: 500px) and (pointer: coarse) {
  .world-first .mastery-page .mw-stage:not(.is-list) { height: max(12rem, calc(100dvh - var(--sheet-t, var(--page-top)) - 2.75rem - 3.4rem - env(safe-area-inset-bottom))); }
}
