#treewin { left: 2rem; right: 2rem; top: 1.4rem; bottom: 1.4rem; z-index: 8; padding: 5.8rem 1.8rem 1.8rem; gap: .8rem; }
#treewin .tw-bar { flex: none; display: flex; align-items: center; gap: .8rem; height: 3.6rem; }
#treewin .tw-chip { display: inline-flex; align-items: center; gap: .5rem; height: 3.6rem; box-sizing: border-box; padding: 0 1.2rem; white-space: nowrap;
border: 0 solid transparent; border-image: url(../assets/ui/dark/inset.png) 16 fill / .8rem; font: 600 max(11px, 1.3rem)/1 var(--sans); color: var(--ink2); }
#treewin .tw-chip b { font: 700 max(13px, 1.7rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
#treewin .tw-chip i { font-style: normal; color: var(--ink3); }
#treewin .tw-left.has { color: var(--r2); }
#treewin .tw-left.has b { color: var(--r2); text-shadow: 0 0 .8rem rgba(242,212,99,.6); }
#treewin .tw-gold b { color: var(--r2); }
#treewin .tw-chip .tw-coin { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff0b0, #dba31e 58%, #7a5208); box-shadow: 0 0 0 1px #000; }
#treewin .tw-cost.poor b { color: #ff6a5a; }
#treewin .tw-search { position: relative; margin-left: auto; display: flex; align-items: center; gap: .6rem; }
#treewin .tw-q { box-sizing: border-box; width: 27rem; height: 3.6rem; min-height: 28px; padding: 0 3rem 0 1.2rem; font: 400 14px/1 var(--sans); color: var(--ink); background: none; border-radius: 0; outline: none;
border: 0 solid transparent; border-image: url(../assets/ui/dark/input.png) 16 fill / .8rem; user-select: text; -webkit-user-select: text; }
#treewin .tw-q::placeholder { color: var(--ink3); }
#treewin .tw-q:focus { filter: brightness(1.25); }
#treewin .tw-qx { position: absolute; left: 24.2rem; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; min-height: 0; padding: 0; border: 0; border-image: none; background: none; font: 400 max(11px, 1.3rem)/1 var(--sans); color: var(--ink3); }
#treewin .tw-qx:hover { color: var(--ink); }
#treewin .tw-found { min-width: 5.6rem; font: 600 max(11px, 1.3rem)/1 var(--sans); font-style: normal; color: var(--teal); white-space: nowrap; }
#treewin .tw-found b { font: 700 max(12px, 1.5rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
#treewin .tw-found i { font-style: normal; margin: 0 .2rem; color: var(--ink3); }
#treewin .tw-found.none { color: #ff8672; }
#treewin .tw-ic { width: 3.6rem; min-width: 26px; height: 3.6rem; padding: 0; border-width: .8rem; font: 700 max(13px, 1.7rem)/1 var(--sans); }
#treewin .tw-map { position: relative; flex: 1; min-height: 0; margin: 3px; overflow: hidden; background: #080706; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass-lo), 0 0 0 3px #000; }
#treewin .tw-bg { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; pointer-events: none; }
#treewin .tw-cv, #treewin .tw-ov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#treewin .tw-ov { cursor: default; }
#treewin.over .tw-ov { cursor: pointer; }
#treewin.grab .tw-ov { cursor: grabbing; }
#treewin .tw-load { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; background: rgba(8,7,6,.88); font-size: max(13px, 1.6rem); color: var(--ink2); }
#treewin .tw-msg { position: absolute; z-index: 6; left: 50%; top: 1rem; transform: translateX(-50%); box-sizing: border-box; width: max-content; max-width: 60%; padding: .2rem 1.4rem; text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s;
font: 600 max(12px, 1.4rem)/1.4 var(--sans); color: var(--ink); text-shadow: 0 1px 2px #000; border: .8rem solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / .8rem; }
#treewin .tw-msg.on { opacity: 1; }
#treewin:not(.refund) .tw-cost { display: none; }
#treewin .tw-where { position: absolute; z-index: 3; left: 50%; bottom: .8rem; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; box-sizing: border-box; max-width: 70%; padding: .3rem 1.2rem;
pointer-events: none; white-space: nowrap; font: 600 max(10px, 1.2rem)/1.4 var(--sans); color: var(--ink3); text-shadow: 0 1px 2px #000; background: rgba(8,7,6,.72); border-radius: .4rem; }
#treewin .tw-where b { font: 700 max(11px, 1.35rem)/1.4 var(--sans); color: var(--r2); }
#treewin .tw-where.prem { pointer-events: auto; color: #ffd98a; }
#treewin .tw-where .tw-pref { min-height: 2.8rem; padding: 0 1.2rem; font-size: max(11px, 1.3rem); }
#treewin .tw-rbar { position: absolute; z-index: 5; left: 50%; bottom: .8rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; box-sizing: border-box; max-width: calc(100% - 1.6rem); padding: .5rem 1.2rem;
white-space: nowrap; font: 600 max(11px, 1.3rem)/1.4 var(--sans); color: var(--ink); text-shadow: 0 1px 2px #000; background: rgba(8,7,6,.86); border-radius: .4rem; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass-lo); }
#treewin .tw-rbar b { font: 700 max(12px, 1.5rem)/1.2 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
#treewin .tw-rbar .tw-rm { font: 700 max(11px, 1.35rem)/1.4 var(--sans); color: var(--r2); }
#treewin .tw-rbar .tw-rt b { color: var(--r2); }
#treewin .tw-rbar .bad, #treewin .tw-rbar b.bad { color: #ff6a5a; }
#treewin .tw-rbar .free { color: #8ff0dc; }
#treewin .tw-rbar .tw-rh { color: var(--ink2); }
#treewin .tw-rbar button { min-height: 3.2rem; padding: 0 1.2rem; font-size: max(11px, 1.3rem); }
#treewin .tw-rbar button.armed { filter: brightness(1.25); }
#treewin.refund > header b { color: var(--r2); }
#treewin .tw-note.where { color: var(--ink2); }
#treewin .tw-ask.rp { margin-top: .8rem; }
#treewin .tw-tools { position: absolute; z-index: 3; right: .8rem; top: .8rem; display: flex; gap: .5rem; }
#treewin .tw-tools button { min-height: 3.6rem; padding: 0 .8rem; }
#treewin .tw-tools button i { display: none; font-style: normal; }
#treewin .tw-tools .tw-ic { padding: 0; }
#treewin .tw-tools .tw-tg.on { border-image-source: url(../assets/ui/dark/btn_hover.png); color: var(--brass-hi); }
#treewin .tw-sum, #treewin .tw-legend { position: absolute; z-index: 2; left: .8rem; box-sizing: border-box; display: flex; flex-direction: column; padding: .8rem 1.2rem 1rem;
border: 0 solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / .8rem; background: rgba(9,8,6,.9); box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.55); }
#treewin .tw-sum { top: .8rem; width: max(29rem, 236px); max-height: calc(100% - max(23rem, 190px)); min-height: 9rem; }
#treewin .tw-legend { bottom: .8rem; width: max(29rem, 236px); }
#treewin .tw-hits { position: absolute; z-index: 2; right: .8rem; top: 5.2rem; box-sizing: border-box; display: flex; flex-direction: column; gap: .5rem; width: max(30rem, 240px); max-height: calc(100% - 6.4rem); padding: .8rem 1rem 1rem;
border: 0 solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / .8rem; background: rgba(9,8,6,.92); box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.55); }
#treewin .tw-hits.hidden { display: none; }
#treewin .tw-hits h5 b { color: var(--teal); font-family: var(--serif); font-variant-numeric: tabular-nums; }
#treewin .tw-hits .tw-fit { flex: none; min-height: 3.2rem; font-size: max(11px, 1.25rem); }
#treewin .tw-hl { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .3rem; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--brass) #090807; touch-action: pan-y; }
#treewin .tw-hit { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-height: 0; padding: .45rem .8rem; text-align: left; cursor: pointer; color: var(--ink2);
background: rgba(255,255,255,.03); border: 1px solid rgba(140,111,63,.22); border-radius: .3rem; font: 400 max(10px, 1.15rem)/1.4 var(--sans); }
#treewin .tw-hit:hover, #treewin .tw-hit.on { background: rgba(72,194,176,.1); border-color: rgba(110,240,215,.55); }
#treewin .tw-hit b { font: 600 max(11px, 1.3rem)/1.3 var(--serif); color: var(--r0); }
#treewin .tw-hit.t-n b { color: var(--r2); } #treewin .tw-hit.t-k b { color: var(--r3); } #treewin .tw-hit.t-j b, #treewin .tw-hit.t-c b { color: var(--r1); }
#treewin .tw-hit small { color: var(--ink3); font-size: max(9px, 1.05rem); } #treewin .tw-hit u { text-decoration: none; } #treewin .tw-hit u.got { color: #9fe283; } #treewin .tw-hit u.can { color: var(--teal); }
#treewin .tw-hit span { color: #b9b0e8; }
#treewin .tw-hmore { margin: .3rem 0 0; text-align: center; color: var(--ink3); font-size: max(10px, 1.1rem); }
#treewin .tw-map h5 { flex: none; position: relative; margin: 0 0 .4rem; padding-right: 2.6rem; font: 600 max(11px, 1.25rem)/1.6 var(--serif); letter-spacing: .1em; color: var(--brass); }
#treewin .tw-map h5 .x, #treewin .tw-pop .x { right: -.4rem; top: -.2rem; width: 2.4rem; height: 2.4rem; min-width: 20px; min-height: 20px; }
#treewin .tw-sumc { flex: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: .1rem .6rem; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(140,111,63,.25); font-size: max(10px, 1.1rem); color: var(--ink3); white-space: nowrap; }
#treewin .tw-sumc b { color: var(--ink); font-weight: 700; }
#treewin .tw-suml { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: .4rem; scrollbar-width: thin; scrollbar-color: var(--brass) #090807; touch-action: pan-y; }
#treewin .tw-suml .tw-m { font-size: max(11px, 1.25rem); line-height: 1.55; font-weight: 400; }
#treewin .tw-lg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .1rem .4rem; }
#treewin .tw-lg.tw-lt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#treewin .tw-lg + .tw-lg { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid rgba(140,111,63,.25); }
#treewin .tw-lr { display: flex; align-items: center; gap: .3rem; min-width: 0; font-size: max(10px, 1.15rem); color: var(--ink2); white-space: nowrap; }
#treewin .tw-lr canvas { flex: none; width: 2.6rem; height: 2.6rem; min-width: 20px; min-height: 20px; }
#treewin .tw-lr span { overflow: hidden; text-overflow: ellipsis; }
#treewin .tw-tip, #treewin .tw-pop { position: absolute; box-sizing: border-box; padding: .3rem; text-align: center; font: 400 max(11px, 1.3rem)/1.5 var(--sans); color: var(--ink2);
border: 0 solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / .8rem; background: rgba(9,8,6,.94); box-shadow: 0 1rem 2.4rem rgba(0,0,0,.7); }
#treewin .tw-tip { z-index: 5; width: max(32rem, 260px); max-width: calc(100% - 1.2rem); pointer-events: none; }
#treewin .tw-pop { z-index: 4; width: max(30rem, 250px); max-width: calc(100% - 1.2rem); }
#treewin .tw-pop .x { right: .5rem; top: .5rem; }
#treewin .tw-ih { display: flex; flex-direction: column; justify-content: center; min-height: 4.4rem; padding: .4rem 2.4rem; color: var(--r0);
border: 0 solid transparent; border-image: url(../assets/ui/dark/tip_head_normal.png) 24 fill / 1.2rem; }
#treewin .t-n .tw-ih { color: var(--r2); border-image-source: url(../assets/ui/dark/tip_head_rare.png); }
#treewin .t-k .tw-ih { color: var(--r3); border-image-source: url(../assets/ui/dark/tip_head_unique.png); }
#treewin .t-c .tw-ih, #treewin .t-j .tw-ih { color: var(--r1); border-image-source: url(../assets/ui/dark/tip_head_magic.png); }
#treewin .tw-ih b { font: 600 max(14px, 1.8rem)/1.25 var(--serif); letter-spacing: .02em; text-shadow: 0 .2rem 0 #000; }
#treewin .tw-ih small { font: 400 max(10px, 1.15rem)/1.3 var(--sans); letter-spacing: .04em; color: var(--ink3); }
#treewin .tw-ib { padding: .6rem 1.2rem .8rem; }
#treewin .tw-kind { font-size: max(10px, 1.2rem); color: var(--ink3); }
#treewin .tw-m { font-weight: 600; color: var(--ink); }
#treewin .tw-m.bad { color: #ff6a5a; }
#treewin .tw-m.dim { font-weight: 400; color: var(--ink3); }
#treewin .tw-desc { margin: .5rem 0 0; font-size: max(10px, 1.2rem); line-height: 1.5; color: var(--ink2); }
#treewin .tw-ib hr { border: 0; height: .6rem; width: 20rem; max-width: 86%; margin: .6rem auto; background: url(../assets/ui/dark/sep.png) center / 100% 100% no-repeat; }
#treewin .tw-st { font-weight: 600; color: var(--ink2); }
#treewin .tw-st.got { color: var(--r2); }
#treewin .tw-st.can { color: #9fe283; }
#treewin .tw-st.path { color: #8ff0dc; }
#treewin .tw-st.far { color: #ff8672; }
#treewin .tw-st b { font-weight: 700; }
#treewin .tw-hint { margin-top: .2rem; font-size: max(10px, 1.15rem); color: var(--ink3); }
#treewin .tw-hint i { font-style: normal; margin: 0 .5rem; }
#treewin .tw-pa { padding: .6rem 1rem .9rem; }
#treewin .tw-pa:empty { display: none; }
#treewin .tw-ask { color: var(--ink2); }
#treewin .tw-ask b { font: 700 max(13px, 1.6rem)/1 var(--serif); color: var(--r2); font-variant-numeric: tabular-nums; }
#treewin .tw-ask b.bad { color: #ff6a5a; }
#treewin .tw-ask i { font-style: normal; margin: 0 .5rem; color: var(--ink3); }
#treewin .tw-ask.sub { font-size: max(10px, 1.2rem); color: var(--ink3); }
#treewin .tw-ask.sub b { font: 700 max(11px, 1.3rem)/1 var(--sans); color: var(--ink); }
#treewin .tw-note { margin: .2rem 0 0; font-size: max(10px, 1.2rem); color: var(--ink3); }
#treewin .tw-note.bad { color: #ff8672; }
#treewin .tw-btns { display: flex; justify-content: center; gap: .6rem; margin-top: .7rem; }
#treewin .tw-btns button { flex: 1 1 auto; min-width: 0; padding: 0 .4rem; }
#treewin .tw-btns.tw-seg button { flex: 1 1 0; }
#treewin .tw-btns button b { font-weight: 700; }
#treewin .tw-btns button.armed { border-image-source: url(../assets/ui/dark/btn_primary.png) !important; color: #6a0d07 !important; box-shadow: 0 0 0 1px #c8281c, 0 0 1rem rgba(200,40,28,.5); }
#treewin .tw-at { --c: #9c3524; --d: #5c1c12; --h: #ff9480; min-height: 3.8rem; border: 1px solid #000; border-image: none; background: linear-gradient(var(--c), var(--d));
box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font: 700 max(12px, 1.4rem)/1 var(--sans); color: #fff; text-shadow: 0 1px 0 #000; }
#treewin .tw-at.a-d { --c: #347526; --d: #1c4214; --h: #9fe283; }
#treewin .tw-at.a-i { --c: #2a55b0; --d: #172f66; --h: #93b6ff; }
#treewin .tw-at:hover { filter: brightness(1.25); }
#treewin .tw-at:active { filter: brightness(.85); }
#treewin .tw-seg .tw-at[data-act="pattr"]:not(.on) { filter: saturate(.35) brightness(.6); }
#treewin .tw-seg .tw-at.on { box-shadow: inset 0 0 0 1px #000, inset 0 0 0 .3rem var(--h); }
body.touch #treewin { left: calc(.8rem + var(--sal)); right: calc(.8rem + var(--sar)); top: calc(.8rem + var(--sat)); bottom: calc(.8rem + var(--sab)); padding: 4.9rem 1rem 1rem; gap: 0; }
body.touch #treewin > header { justify-content: flex-start; padding: 0 5rem 0 1.6rem; }
body.touch #treewin > header b { font-size: max(13px, 1.6rem); letter-spacing: .04em; }
body.touch #treewin .tw-bar { position: absolute; left: 12.6rem; right: 4.8rem; top: .3rem; height: 4.2rem; min-height: 0; gap: .5rem; overflow: hidden; }
body.touch #treewin > header .x { z-index: 6; }
body.touch #treewin .tw-chip { flex: 0 1 auto; min-width: 0; overflow: hidden; }
body.touch #treewin .tw-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.touch #treewin .tw-gold span, body.touch #treewin .tw-cost span:last-child { display: none; }
body.touch #treewin .tw-search { flex: 1 1 9rem; min-width: 7rem; margin-left: auto; justify-content: flex-end; gap: .4rem; }
body.touch #treewin .tw-chip { height: 3rem; padding: 0 .8rem; gap: .4rem; font-size: max(10px, 1.15rem); }
body.touch #treewin .tw-chip b { font-size: max(12px, 1.45rem); }
body.touch #treewin .tw-pts span { display: none; }
body.touch #treewin .tw-q { flex: 0 1 15rem; width: 15rem; min-width: 5rem; height: 3.2rem; padding-right: 2.6rem; font-size: 16px; }
body.touch #treewin .tw-qx { position: relative; left: auto; top: auto; transform: none; flex: none; margin-left: -2.8rem; }
body.touch #treewin .tw-found { min-width: 0; }
body.touch #treewin .tw-ic { width: 3.4rem; }
body.touch #treewin .tw-next { min-height: 3.2rem; }
body.touch #treewin .tw-tools { flex-direction: column; right: .6rem; top: .6rem; gap: .4rem; }
body.touch #treewin .tw-tools button { width: 4rem; height: 4rem; min-height: 0; padding: 0; font: 700 max(14px, 1.8rem)/1 var(--sans); }
body.touch #treewin .tw-tools button span { display: none; }
body.touch #treewin .tw-tools button i { display: inline; }
body.touch #treewin .tw-msg { top: .6rem; max-width: 72%; }
body.touch #treewin .tw-where { left: .6rem; bottom: .5rem; transform: none; max-width: calc(100% - 6rem); padding: .2rem .8rem; gap: .5rem; }
body.touch #treewin .tw-rbar { left: .6rem; right: 5.2rem; top: .5rem; bottom: auto; transform: none; max-width: none; gap: .6rem; padding: .3rem .8rem; font-size: max(10px, 1.15rem); }
body.touch #treewin .tw-rbar b { font-size: max(11px, 1.35rem); }
body.touch #treewin .tw-rbar button { min-height: 3.4rem; padding: 0 1rem; margin-left: auto; }
body.touch #treewin .tw-rbar button + button { margin-left: 0; }
body.touch #treewin.refund .tw-msg { top: 4.6rem; }
body.touch #treewin .tw-sum, body.touch #treewin .tw-legend { left: .6rem; top: .6rem; bottom: auto; width: 27rem; max-height: calc(100% - 1.2rem); min-height: 0; }
body.touch #treewin .tw-legend { width: 31rem; }
body.touch #treewin .tw-hits { right: 5.2rem; top: .6rem; width: 26rem; max-height: calc(100% - 1.2rem); padding: .6rem .8rem .8rem; }
body.touch #treewin .tw-map h5 .x { width: 3rem; height: 3rem; right: -.6rem; top: -.5rem; }
body.touch #treewin .tw-pop { left: .6rem !important; right: 5.2rem; top: auto !important; bottom: .6rem; width: auto; max-width: none; max-height: calc(100% - 1.2rem);
display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 26rem); align-items: center; gap: 0 .4rem; text-align: left; }
body.touch #treewin .tw-pop .tw-ih { align-self: stretch; min-height: 0; padding: .4rem 1.2rem; }
body.touch #treewin .tw-pop .tw-ih b { font-size: max(13px, 1.5rem); }
body.touch #treewin .tw-pop .tw-ib { max-height: 13rem; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: .4rem .6rem; font-size: max(11px, 1.2rem); line-height: 1.4; }
body.touch #treewin .tw-pop .tw-ib hr { margin: .3rem 0; width: 12rem; }
body.touch #treewin .tw-pop .tw-pa { padding: .4rem 3.4rem .5rem .2rem; text-align: center; }
body.touch #treewin .tw-pop .tw-ask { font-size: max(10px, 1.15rem); white-space: nowrap; }
body.touch #treewin .tw-pop .tw-ask.cost { display: none; }
body.touch #treewin .tw-pop .tw-btns { margin-top: .4rem; }
body.touch #treewin .tw-pop .tw-btns button { min-height: 4rem; padding: 0 .2rem; }
body.touch #treewin .tw-pop .x { right: .3rem; top: .3rem; width: 3.2rem; height: 3.2rem; }
:root:not([lang="th"]) #treewin .tw-sumc { grid-template-columns: repeat(2, auto); }
:root:not([lang="th"]) #treewin .tw-lg:not(.tw-lt):not(.tw-la) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:root:not([lang="th"]) body.touch #treewin .tw-chip { padding: 0 .5rem; gap: .3rem; }
:root:not([lang="th"]) body.touch #treewin .tw-q:not(:placeholder-shown) { width: 11rem; }
:root:not([lang="th"]) #treewin .tw-lr { white-space: normal; line-height: 1.15; }
#treewin .tw-jw { display: flex; align-items: center; gap: .6rem; margin: .2rem 0; min-width: 0; }
#treewin .tw-ji { flex: 0 0 auto; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; background: rgba(0, 0, 0, .35); border: 1px solid rgba(227, 184, 115, .25); border-radius: .4rem; }
#treewin .tw-ji img, #treewin .tw-ji svg { width: 100%; height: 100%; object-fit: contain; }
#treewin .tw-jn { display: flex; flex-direction: column; min-width: 0; text-align: left; }
#treewin .tw-jn b { font: 600 max(12px, 1.45rem)/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#treewin .tw-jn small { font-size: max(10px, 1.1rem); color: var(--ink3); }
#treewin .tw-jm { font-size: max(10px, 1.2rem); color: #a9c4ff; text-align: left; }
#treewin .tw-jm.boss { color: #e3b873; }
#treewin .tw-jnow { padding: .2rem 0 .4rem; border-bottom: 1px solid rgba(227, 184, 115, .18); margin-bottom: .4rem; }
#treewin .tw-jlist { display: flex; flex-direction: column; gap: .35rem; max-height: 26rem; overflow-y: auto; margin-top: .3rem; padding-right: .2rem; }
#treewin .tw-pop button.tw-jrow { display: block; flex: 0 0 auto; width: 100%; text-align: left; padding: .35rem .5rem; height: auto; min-height: 0; max-height: none; line-height: 1.3; white-space: normal; overflow: visible; background: rgba(20, 14, 26, .7); border: 1px solid rgba(227, 184, 115, .2); border-radius: .4rem; }
#treewin .tw-pop { max-width: min(34rem, 92vw); }
#treewin .tw-pop button.tw-jrow:hover:not([disabled]) { border-color: rgba(227, 184, 115, .6); background: rgba(40, 28, 46, .85); }
#treewin .tw-pop button.tw-jrow[disabled] { opacity: .55; }
#treewin .tw-jrow small.bad { color: #ff8672; font-size: max(10px, 1.1rem); }
#treewin .tw-tip .tw-jw { margin-top: .3rem; }
body.touch #treewin .tw-jlist { max-height: 40vh; }
#treewin .tw-lo { position: absolute; z-index: 3; right: .8rem; top: 5.2rem; box-sizing: border-box; display: flex; flex-direction: column; gap: .5rem; width: max(32rem, 250px); max-height: calc(100% - 6.4rem); padding: .8rem 1rem 1rem;
border: 0 solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / .8rem; background: rgba(9,8,6,.94); box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.55); }
#treewin .tw-lo.hidden { display: none; }
#treewin .tw-lnote { margin: 0; color: var(--ink3); font-size: max(10px, 1.1rem); line-height: 1.45; }
#treewin .tw-lkey { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: max(10px, 1.1rem); }
#treewin .tw-lkey u { text-decoration: none; } #treewin .tw-lkey u.add { color: #ffd56b; } #treewin .tw-lkey u.out { color: #ff8672; }
#treewin .tw-lol { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .45rem; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--brass) #090807; touch-action: pan-y; }
#treewin .tw-los { flex: none; display: flex; flex-direction: column; gap: .3rem; padding: .55rem .8rem .65rem; background: rgba(255,255,255,.03); border: 1px solid rgba(140,111,63,.25); border-radius: .3rem; }
#treewin .tw-los.on { border-color: rgba(255,213,107,.7); background: rgba(255,213,107,.07); }
#treewin .tw-los.empty { border-style: dashed; }
#treewin .tw-lnm { font: 600 max(11px, 1.35rem)/1.3 var(--serif); color: var(--r2); overflow-wrap: anywhere; }
#treewin .tw-los.empty .tw-lnm { color: var(--ink3); font-weight: 400; }
#treewin .tw-los small { color: var(--ink3); font-size: max(9px, 1.05rem); }
#treewin .tw-lq { margin: 0; color: var(--ink2); font-size: max(10px, 1.15rem); line-height: 1.4; font-variant-numeric: tabular-nums; }
#treewin .tw-lq.tw-lok { color: #9fe283; } #treewin .tw-lq.tw-lpoor { color: #ff8672; }
#treewin .tw-lob2 { display: flex; flex-wrap: wrap; gap: .4rem; }
#treewin .tw-lob2 button { flex: 1 1 auto; min-height: 2.8rem; padding: 0 .8rem; font-size: max(10px, 1.15rem); }
#treewin .tw-lob2.tw-lsm button { min-height: 2.4rem; font-size: max(9px, 1.05rem); }
#treewin .tw-lob2 button.on { color: #ffd56b; }
#treewin .tw-ldel { color: #ff9a88; }
#treewin .tw-lon { width: 100%; box-sizing: border-box; min-height: 3rem; padding: 0 .8rem; font-size: max(11px, 1.3rem); }
body.touch #treewin .tw-lo { right: 5.2rem; top: .6rem; width: 28rem; max-height: calc(100% - 1.2rem); padding: .6rem .8rem .8rem; }
body.touch #treewin .tw-lob2 button { min-height: 3.4rem; }