/* sq.css — the windows of the look the owner picked on 13 Nov 2026, built in the game exactly as their boards
   (docs/team/ui-square-20261113.md; the boards: assets/gen/hud_doboui_pick/final_square_navy/, their own code in
   canvas_src/). The rules below the first block are the boards' own stylesheet, each selector put under #sq
   (js/sq/core.js makes that root and scales it: a board is 1366 x 768). PC only: js/sq/core.js does not start on a phone. */
#sq{position:fixed;left:0;top:0;width:1366px;height:768px;transform-origin:0 0;z-index:45;pointer-events:none;font-family:'Baloo 2','Noto Sans Thai',sans-serif;font-weight:700;line-height:1.15;font-size:16px;color:#e8f7ff;text-align:left;user-select:none;-webkit-user-select:none}
#sq,#sq *{box-sizing:content-box}
#sq [hidden]{display:none!important}
#sq .win{pointer-events:auto}
#sq .win.folded>:not(.tb){display:none}
#sq .tb{cursor:move}
/* a finger drags a window by its title bar on every screen (js/sq/core.js down): an iPad with a keyboard or trackpad has no html.mob, so the drag panned and was cancelled (Feedback 03 F16, 22 Nov 2026) */
#sq > .win > .tb{touch-action:none}
#sq button{font-family:inherit;font-weight:inherit;line-height:inherit;text-align:center}
#sq input{user-select:text;-webkit-user-select:text}
#sq .sl>canvas.i{position:absolute;left:5px;top:5px;width:30px;height:30px}
#sq .ghost.sl{cursor:pointer}
#sq .bt:disabled,#sq .bt.away{color:#c8e1ee;cursor:default}
/* the game's own rules of the same short names must not reach the boards' (.rw of css/refinewin.css gives a row the whole height; the page's sheets left-align table heads) */
#sq .rw{height:auto}
#sq .cl{text-shadow:none;overflow-wrap:normal}
#sq .elt th{text-align:center}
#sq .dy.big{border:0;margin:0;font-size:inherit}
#sq .elt th.l{text-align:left}
/* the HUD (js/sq/hud.js): board Flat's own rules */
#sq .hud{position:absolute;left:0;top:0;right:0;bottom:0;z-index:0;pointer-events:none;color:#e8f7ff}
#sq .hud[hidden]{display:none}
#sq .hud button{pointer-events:auto}
#sq .hud .sh{text-shadow:0 1px 2px rgba(6,8,28,.95),0 0 5px rgba(6,8,28,.7)}
#sq .hud .mi{display:flex;flex-direction:column;align-items:center;gap:4px;width:68px;position:relative;color:#e8f7ff}
#sq .hud .mi>img{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(6,8,28,.8))}
#sq .hud .mi>span{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:12px;line-height:1;white-space:nowrap;text-shadow:0 1px 2px rgba(6,8,28,.95),0 0 5px rgba(6,8,28,.7)}
#sq .hud .mi>i{position:absolute;right:6px;top:-4px;font-style:normal;font-family:'Baloo 2';font-weight:700;font-size:10px;color:rgba(255,255,255,.72);text-shadow:0 1px 2px rgba(6,8,28,.95)}
#sq .hud .mi>em{position:absolute;left:6px;top:-5px;font-style:normal;font-family:'Baloo 2';font-weight:700;font-size:10px;line-height:14px;padding:0 4px;border-radius:7px;background:#ffd45e;color:#e8f7ff}
#sq .hud .mi>em.d{left:14px;top:-2px;width:8px;height:8px;padding:0;border-radius:50%;background:#ff5a6e;box-shadow:0 0 0 1.5px #416e87}
#sq .hud .mi>em[hidden]{display:none}
#sq .hud .rb{position:absolute;box-sizing:border-box;border-radius:50%;background:rgba(18,22,58,.36);box-shadow:inset 0 0 0 2px rgba(255,255,255,.72);display:flex;align-items:center;justify-content:center;color:#e8f7ff}
#sq .hud .rb>i{position:absolute;left:50%;top:-8px;transform:translateX(-50%);font-style:normal;font-family:'Baloo 2';font-weight:700;font-size:11px;line-height:15px;padding:0 5px;border-radius:8px;background:rgba(10,12,40,.82);color:#e8f7ff}
#sq .hud .rb>b{position:absolute;right:-2px;bottom:-4px;font-family:'Baloo 2';font-weight:800;font-size:13px;text-shadow:0 1px 2px rgba(6,8,28,.95),0 0 4px rgba(6,8,28,.9)}
#sq .hud .rb>u{position:absolute;left:3px;top:3px;right:3px;bottom:3px;border-radius:50%;text-decoration:none;pointer-events:none}
#sq .hud .rb>s{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;text-decoration:none;font-family:'Baloo 2';font-weight:800;font-size:15px;text-shadow:0 1px 2px rgba(6,8,28,.95),0 0 4px rgba(6,8,28,.9);pointer-events:none}
#sq > .win{z-index:1}
#sq .ghost{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}
#sq .th{font-family:'Noto Sans Thai',sans-serif}
#sq .win{position:absolute;box-sizing:border-box;border-radius: 0px;background:#10283b;box-shadow:0 0 0 1px #183c54,0 6px 16px rgba(6,8,28,.45);color:#e8f7ff;display:flex;flex-direction:column;overflow:hidden}
#sq .tb{display:flex;align-items:center;gap:6px;height:28px;padding:0 6px 0 9px;background:linear-gradient(180deg,#10283b,#10283b);border-bottom:1px solid #416e87;font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:12.5px;flex:none}
#sq .tb>img{width:20px;height:20px;object-fit:contain}
#sq .tb>.sub{font-family:'Baloo 2';font-weight:600;font-size:11px;color:#a7c5d9}
#sq .kb{font-family:'Baloo 2';font-weight:700;font-size:10px;line-height:14px;padding:0 5px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;color:#a7c5d9}
#sq .wb{display:flex;align-items:center;justify-content:center;width:18px;height:18px;box-sizing:border-box;border-radius: 0px;background:linear-gradient(180deg,#10283b,#10283b);box-shadow:inset 0 0 0 1px #416e87}
#sq .wb>img{width:12px;height:12px;object-fit:contain}
#sq .ft{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 9px;background:#10283b;border-top:1px solid #416e87;font-size:12px}
#sq .mu{color:#a7c5d9}
#sq .ok{color:#a9d2b5}
#sq .bad{color:#df8996}
#sq .bl{color:#8ee7f7}
#sq .bt{display:flex;align-items:center;justify-content:center;gap:5px;height:24px;padding:0 10px;box-sizing:border-box;border-radius: 0px;background:linear-gradient(180deg,#10283b,#10283b);box-shadow:inset 0 0 0 1px #416e87;font-family:'Noto Sans Thai',sans-serif;font-size:11.5px;font-weight:600;color:#e8f7ff;white-space:nowrap}
#sq .bt.pr{background:linear-gradient(180deg,#185776,#185776);box-shadow:inset 0 0 0 1px #3c7d98;color:#e8f7ff;font-weight:700}
#sq .bt>img{width:13px;height:13px;object-fit:contain}
#sq .sl{position:relative;width:40px;height:40px;box-sizing:border-box;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;display:block;flex:none}
#sq .sl.on{background:#10283b;box-shadow:inset 0 0 0 1.5px #416e87}
#sq .sl.pk{background:#10283b;box-shadow:inset 0 0 0 2px #3c7d98,0 0 0 3px rgba(63,102,200,.28)}
/* the grade's glow behind a piece's picture (js/gradeframe.js NC.Grade.bgClass; the owner, 18 Nov 2026: a background, by code, not a frame; then "อลังการกว่านี้ สีแดงก็แดงเข้มหน่อย สีเข้มๆหน่อย"): a bright core of the grade's colour, a deep rim, a slanted light across the top-left; ราตรี a deep blood red */
#sq .sl.g1{background-image:linear-gradient(135deg,rgba(255,255,255,.28) 0,rgba(255,255,255,.08) 32%,rgba(255,255,255,0) 50%),radial-gradient(circle at 50% 42%,#5fd36a 0,#2e9a4a 52%,#081b2b 100%)}
#sq .sl.g2{background-image:linear-gradient(135deg,rgba(255,255,255,.28) 0,rgba(255,255,255,.08) 32%,rgba(255,255,255,0) 50%),radial-gradient(circle at 50% 42%,#5cb0ff 0,#2a6fd6 52%,#163a7a 100%)}
#sq .sl.g3{background-image:linear-gradient(135deg,rgba(255,255,255,.28) 0,rgba(255,255,255,.08) 32%,rgba(255,255,255,0) 50%),radial-gradient(circle at 50% 42%,#17364b 0,#7d4fd4 52%,#3d1f78 100%)}
#sq .sl.g4{background-image:linear-gradient(135deg,rgba(255,255,255,.28) 0,rgba(255,255,255,.08) 32%,rgba(255,255,255,0) 50%),radial-gradient(circle at 50% 42%,#ffd766 0,#e3961b 52%,#7a4a06 100%)}
#sq .sl.g5{background-image:linear-gradient(135deg,rgba(255,255,255,.28) 0,rgba(255,255,255,.08) 32%,rgba(255,255,255,0) 50%),radial-gradient(circle at 50% 42%,#ff5f7e 0,#c4163f 52%,#5a0a1f 100%)}
#sq .sl>img.i{position:absolute;left:5px;top:5px;width:30px;height:30px;object-fit:contain}
#sq .sl>img.w{position:absolute;inset:2px;width:36px;height:36px;border-radius: 0px}
#sq .sl>img.r{transform:rotate(45deg)}
#sq .sl>img.h{position:absolute;left:13px;top:13px;width:14px;height:14px;object-fit:contain;opacity:.4}
#sq .sl>.c{position:absolute;right:3px;bottom:0;font-size:12px;color:#e8f7ff;text-shadow:0 0 2px #051321,0 0 2px #051321,0 0 3px #051321}
#sq .sl>.rf{position:absolute;right:2px;top:0;font-size:10.5px;color:#e8bfa1;text-shadow:0 0 2px #051321,0 0 2px #051321}
#sq .sl>.lv{position:absolute;left:2px;bottom:2px;padding:0 3px;border-radius: 0px;background:#c7334a;font-size:8.5px;line-height:11px;color:#e8f7ff}
/* a piece's states in words (js/sq/bag.js SQ.cellTags; the old bag's .iv-tag colours, the owner's pick B of 9 Nov): ผูกตัว / ผูกบัญชี grey, แปดเปื้อน purple */
#sq .sl>.tg{position:absolute;right:1px;bottom:2px;display:flex;flex-direction:column;align-items:flex-end;gap:1px;pointer-events:none}
#sq .sl>.tg.up{bottom:14px}
#sq .sl>.tg>i{font-style:normal;padding:0 2px;font-size:8px;line-height:10px;color:#e8f7ff;white-space:nowrap;max-width:38px;overflow:hidden}
#sq .sl>.tg>i.bd{background:#16445c}
#sq .sl>.tg>i.tn{background:#185776}
#sq .sl>.tg>i.dp{background:#185776}
#sq .sl>.m{position:absolute;left:-3px;top:-3px;width:14px;height:14px;border-radius:50%;background:#185776;box-shadow:0 0 0 1.5px #416e87;font-size:9px;line-height:14px;text-align:center;color:#e8f7ff}
#sq .sl>img.ar{position:absolute;right:-4px;top:-4px;width:16px;height:16px}
#sq .sl>.g{position:absolute;left:3px;right:3px;bottom:-1px;height:3px;border-radius: 0px}
#sq .eq{display:flex;align-items:center;gap:7px;height:46px}
#sq .eq>div{min-width:0;flex:1}
#sq .eq .k{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10px;line-height:1.1;color:#a7c5d9}
#sq .eq .n{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sq .eq .n.no{font-weight:500;color:#c8e1ee}
#sq .eq .s{font-family:'Baloo 2';font-weight:700;font-size:10px;line-height:1.1;color:#8ee7f7;white-space:nowrap}
#sq .vt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:46px;height:50px;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:9.5px;color:#a7c5d9;border-bottom:1px solid #416e87}
#sq .vt>img{width:22px;height:22px;object-fit:contain;opacity:.7}
#sq .vt>b{position:absolute;right:3px;top:3px;font-family:'Baloo 2';font-weight:700;font-size:9.5px;line-height:13px;padding:0 4px;border-radius: 0px;background:#10283b;color:#a7c5d9}
#sq .vt.on{background:#10283b;color:#e8f7ff;box-shadow:inset 3px 0 0 #3c7d98}
#sq .vt.on>img{opacity:1}
#sq .vt.on>b{background:#185776;color:#e8f7ff}
#sq .pip{display:inline-flex;gap:2px;vertical-align:middle}
#sq .pip>i{width:7px;height:7px;border-radius:50%;background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .tbl{width:100%;border-collapse:collapse;font-size:12.5px}
#sq .tbl th{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:10px;color:#a7c5d9;text-align:right;padding:4px 0 3px;border-bottom:1px solid #416e87}
#sq .tbl th:first-child,#sq .tbl td:first-child{text-align:left}
#sq .tbl td{text-align:right;padding:0;height:22px;border-bottom:1px dotted #416e87;white-space:nowrap}
#sq .tbl td:first-child{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:11px;color:#a7c5d9}
#sq .tbl td.b{color:#a7c5d9;font-weight:600}
#sq .tbl td.d{width:62px}
#sq .tbl small{font-size:10px;font-weight:600;color:#a7c5d9}
#sq .dd{display:inline-flex;align-items:center;gap:3px}
#sq .dd>img{width:11px;height:11px}
#sq .op{display:flex;align-items:center;gap:5px;min-height:19px;font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:11px;line-height:1.25}
#sq .op>i{width:6px;height:6px;border-radius: 0px;transform:rotate(45deg);background:#23516b;flex:none;margin:0 2px}
#sq .op>img{width:11px;height:11px;margin-left:auto;flex:none}
#sq .op.lost>span{text-decoration:line-through;color:#df8996}
#sq .op.none{color:#c8e1ee}
#sq .hd{font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:10.5px;color:#a7c5d9;margin-bottom:3px}
#sq .sr{display:flex;align-items:center;gap:6px;height:29px;font-size:13px}
#sq .sr>img{width:19px;height:19px;object-fit:contain}
#sq .sr>.key{width:30px}
#sq .sr>.nm{flex:1;font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10.5px;color:#a7c5d9;white-space:nowrap}
#sq .sr>.v{width:16px;text-align:right}
#sq .sr>.gv{width:20px;font-size:11.5px;color:#8ee7f7}
#sq .sr>.cs{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:9.5px;color:#a7c5d9}
#sq .pl{display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius: 0px;background:linear-gradient(180deg,#185776,#185776);box-shadow:inset 0 0 0 1px #3c7d98}
#sq .pl.hot{box-shadow:inset 0 0 0 1px #3c7d98,0 0 0 3px rgba(63,102,200,.3)}
#sq .pl>img{width:9px;height:9px;object-fit:contain}
#sq .cv{display:flex;flex-direction:column;justify-content:center;gap:1px;height:36px;padding:0 8px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .cv.hot{background:#10283b;box-shadow:inset 0 0 0 1.5px #416e87}
#sq .cv>span{font-size:10px;font-weight:600;color:#a7c5d9;line-height:1.1}
#sq .cv>b{font-size:13px;font-weight:700;white-space:nowrap}
#sq .cv small{font-size:10px;color:#8ee7f7}
#sq .cap{position:absolute;font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:13px;color:#e8f7ff;text-shadow:0 1px 2px rgba(6,8,28,.95),0 0 6px rgba(6,8,28,.7)}
#sq .cap>small{display:block;font-weight:500;font-size:11px;color:rgba(255,255,255,.82);margin-top:2px}
#sq .rar{width:5px;align-self:stretch;margin:5px 2px 5px -3px;border-radius: 0px}
#sq .tag{display:inline-flex;align-items:center;gap:4px;height:19px;padding:0 7px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:10.5px;color:#e8f7ff;white-space:nowrap}
#sq .tag>img{width:11px;height:11px;object-fit:contain}
#sq .full{font-family:'Baloo 2';font-weight:700;font-size:9px;line-height:13px;padding:0 4px;border-radius: 0px;background:#081b2b;color:#e8f7ff;margin-left:2px;flex:none}
#sq .tnt{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:11px;line-height:1.35;padding:5px 7px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;color:#a7c5d9}
#sq .mk{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10.5px;color:#a7c5d9;min-height:17px;display:flex;align-items:center}
#sq .xl{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:11px;line-height:1.4;color:#e8f7ff}
#sq .xl>b{font-weight:700}
#sq .box{padding:7px 9px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .veil{position:absolute;inset:0;background:rgba(10,12,34,.38)}
#sq .tabs{display:flex;align-items:flex-end;gap:3px;height:31px;padding:0 9px;box-sizing:border-box;background:#10283b;border-bottom:1px solid #416e87;flex:none}
#sq .tab{display:flex;align-items:center;gap:5px;height:25px;padding:0 11px;box-sizing:border-box;border-radius: 0px 0 0;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11.5px;color:#a7c5d9;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;margin-bottom:-1px;white-space:nowrap}
#sq .tab.on{background:#10283b;color:#e8f7ff;box-shadow:inset 1px 0 0 #416e87,inset -1px 0 0 #416e87,inset 0 2px 0 #3c7d98}
#sq .tab.gold{color:#dec49e}
#sq .tab>b{font-family:'Baloo 2';font-weight:700;font-size:10px;padding:0 5px;border-radius: 0px;background:#10283b;color:#a7c5d9;line-height:13px}
#sq .tab.on>b{background:#185776;color:#e8f7ff}
#sq .kd{font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:9px;line-height:14px;padding:0 5px;border-radius: 0px;color:#e8f7ff;white-space:nowrap;flex:none}
#sq .kd.a{background:#185776}
#sq .kd.b{background:#185776}
#sq .kd.p{background:#185776}
#sq .kd.u{background:#d98a12}
#sq .ln{position:relative;white-space:nowrap;display:flex;align-items:center;gap:6px;height:26px;padding:0 6px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:11.5px}
#sq .ln>img{width:18px;height:18px;border-radius: 0px}
#sq .ln>.rs{margin-left:auto;white-space:nowrap;display:flex;align-items:center;gap:5px;font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:9.5px;color:#a7c5d9}
#sq .ln>.rs>b{font-family:'Baloo 2';font-weight:700;font-size:11px;color:#e8f7ff}
#sq .br{position:relative;height:6px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;overflow:hidden}
#sq .br>i{position:absolute;left:0;top:0;bottom:0;border-radius: 0px;background:#185776}
#sq .sk{display:grid;grid-template-columns:28px 1fr auto 26px;grid-template-rows:17px 15px;column-gap:7px;align-items:center;height:34px;padding:0 6px;box-sizing:border-box;border-radius: 0px;border-top:1px dotted #416e87}
#sq .ln+.sk{border-top-color:transparent}
#sq .sk.pk{background:#10283b;box-shadow:inset 0 0 0 1.5px #416e87;border-top-color:transparent}
#sq .sk>.ic{grid-row:1/3;position:relative;width:28px;height:28px}
#sq .sk>.ic>img{width:28px;height:28px;border-radius: 0px;display:block}
#sq .sk.lk>.ic>img{opacity:.42}
#sq .sk>.ic>b{position:absolute;left:-4px;top:-4px;min-width:13px;height:13px;border-radius: 0px;background:#081b2b;color:#e8f7ff;font-size:9px;line-height:13px;text-align:center}
#sq .sk>.n{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11.5px;white-space:nowrap;align-self:end}
#sq .sk.lk>.n{color:#a7c5d9}
#sq .sk>.lv{font-size:12px;text-align:right;align-self:end;white-space:nowrap}
#sq .sk>.lv>small{font-size:10px;font-weight:600;color:#a7c5d9}
#sq .sk>.q{grid-column:2/4;display:flex;align-items:center;gap:4px;font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:9.5px;color:#c28693;white-space:nowrap;align-self:start}
#sq .sk>.q>img{width:9px;height:9px;object-fit:contain}
#sq .sk>.q.w{color:#dec49e}
#sq .sk>.p1{grid-column:4;grid-row:1/3;display:flex;align-items:center;justify-content:center;width:26px;height:22px;border-radius: 0px;background:linear-gradient(180deg,#185776,#185776);box-shadow:inset 0 0 0 1px #3c7d98;color:#e8f7ff;font-size:11px}
#sq .sk>.p1.off{background:#10283b;box-shadow:inset 0 0 0 1px #416e87;color:#c8e1ee}
#sq .sk>.p1.off>img{width:10px;height:10px;object-fit:contain;opacity:.5}
#sq .slot{position:relative;width:40px;height:40px;box-sizing:border-box;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;flex:none}
#sq .slot>img{position:absolute;inset:2px;width:36px;height:36px;border-radius: 0px}
#sq .slot>b{position:absolute;left:-3px;top:-5px;min-width:14px;height:14px;padding:0 2px;box-sizing:border-box;border-radius: 0px;background:#081b2b;color:#e8f7ff;font-size:9.5px;line-height:14px;text-align:center}
#sq .slot.pk{box-shadow:inset 0 0 0 2px #3c7d98,0 0 0 3px rgba(63,102,200,.28)}
#sq .slot>img.e{inset:13px;width:14px;height:14px;opacity:.35;border-radius:0}
#sq .sw{position:relative;width:26px;height:14px;border-radius: 0px;background:#17364b;box-shadow:inset 0 0 0 1px #416e87;flex:none}
#sq .sw>i{position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:#10283b;box-shadow:0 1px 1px rgba(0,0,0,.25)}
#sq .sw.on{background:#185776;box-shadow:inset 0 0 0 1px #3c7d98}
#sq .sw.on>i{left:14px}
#sq .rw{display:flex;align-items:center;gap:7px;min-height:26px;font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:11px}
#sq .sg{display:inline-flex;border-radius: 0px;box-shadow:inset 0 0 0 1px #416e87;overflow:hidden;flex:none}
#sq .sg>span{display:flex;align-items:center;justify-content:center;height:22px;padding:0 9px;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:10.5px;color:#a7c5d9;background:linear-gradient(180deg,#10283b,#10283b);border-left:1px solid #416e87;white-space:nowrap}
#sq .sg>span:first-child{border-left:0}
#sq .sg>span.on{background:linear-gradient(180deg,#185776,#185776);color:#e8f7ff;font-weight:700}
#sq .sc{font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:11.5px;display:flex;align-items:center;gap:6px;margin-bottom:5px}
#sq .sc>img{width:15px;height:15px;object-fit:contain}
#sq .note{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10px;line-height:1.4;color:#a7c5d9}
#sq .pr{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
#sq .pr>img{width:12px;height:12px;object-fit:contain}
#sq .ck{display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;flex:none}
#sq .ck.on{background:#185776;box-shadow:inset 0 0 0 1px #3c7d98}
#sq .ck>img{width:10px;height:10px;object-fit:contain}
#sq .ln>.br{position:absolute;left:6px;right:6px;bottom:1px;height:3px;box-shadow:none;background:#10283b}
#sq .it{display:flex;align-items:center;gap:7px;height:30px;padding:0 4px;border-top:1px dotted #416e87}
#sq .it:first-child{border-top-color:transparent}
#sq .it>.m{flex:1;min-width:0}
#sq .it .n{display:flex;align-items:center;gap:4px;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sq .it .w{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:9.5px;color:#a7c5d9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
#sq .it>.pr{font-size:12px}
#sq .sl.s{width:28px;height:28px}
#sq .sl.s>img.i{left:3px;top:3px;width:22px;height:22px}
#sq .sl.s>.c{right:1px;bottom:-2px;font-size:10.5px}
#sq .x15{font-family:'Baloo 2';font-weight:700;font-size:9.5px;line-height:13px;padding:0 4px;border-radius: 0px;background:#f2b21b;color:#887657;flex:none}
#sq .bt.in{background:#10283b;box-shadow:inset 0 0 0 1px #416e87;color:#8ee7f7}
#sq .sg.c>span{padding:0 6px}
#sq .mo{display:flex;align-items:center;gap:6px;height:36px;padding:0 7px;box-sizing:border-box;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .mo>img.p{width:28px;height:28px;object-fit:contain;flex:none}
#sq .mo>img.e{width:14px;height:14px;object-fit:contain;flex:none}
#sq .mo>.m{flex:1;min-width:0;display:flex;flex-direction:column}
#sq .mo .n{display:flex;align-items:center;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:10.5px;white-space:nowrap}
#sq .mo .w{font-size:10px;font-weight:600;color:#a7c5d9}
#sq .lt{display:flex;align-items:center;gap:8px;width:132px;height:56px;padding:0 9px;box-sizing:border-box;border-bottom:1px solid #416e87;text-align:left}
#sq .lt>img{width:30px;height:30px;object-fit:contain;flex:none;opacity:.75}
#sq .lt>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#sq .lt .n{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11.5px;color:#a7c5d9}
#sq .lt .w{font-size:10.5px;color:#a7c5d9}
#sq .lt .br{height:4px}
#sq .lt.on{background:#10283b;box-shadow:inset 3px 0 0 #3c7d98}
#sq .lt.on>img{opacity:1}
#sq .lt.on .n{color:#e8f7ff;font-weight:700}
#sq .cl{display:flex;align-items:center;gap:8px;height:29px;padding:0 6px;border-top:1px dotted #416e87;border-radius: 0px}
#sq .cl:first-child{border-top-color:transparent}
#sq .cl.pk{background:#10283b;box-shadow:inset 0 0 0 1.5px #416e87;border-top-color:transparent}
#sq .cl>.q{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;font-size:13px;color:#c8e1ee;flex:none}
#sq .cl>.m{flex:1;min-width:0;display:flex;flex-direction:column}
#sq .cl .n{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11px;white-space:nowrap}
#sq .cl .w{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:9.5px;color:#a7c5d9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sq .av{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius: 0px;box-shadow:inset 0 0 0 1px rgba(38,43,70,.22);font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:14px;flex:none}
#sq .rd{display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;flex:none}
#sq .rd.on{box-shadow:inset 0 0 0 1.5px #3c7d98}
#sq .rd.on>i{width:8px;height:8px;border-radius:50%;background:#185776}
#sq .mb{display:flex;align-items:center;gap:9px;height:52px;padding:0 8px;border-top:1px dotted #416e87;border-radius: 0px}
#sq .mb:first-child{border-top-color:transparent}
#sq .mb.pk{background:#10283b;box-shadow:inset 0 0 0 1.5px #416e87;border-top-color:transparent}
#sq .mb>.m{flex:1;min-width:0}
#sq .mb .n{display:flex;align-items:center;gap:5px;font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:12px;white-space:nowrap}
#sq .mb .w{display:flex;align-items:center;gap:5px;font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10.5px;color:#a7c5d9;white-space:nowrap;margin-top:2px}
#sq .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#17364b;flex:none}
#sq .dot.g{background:#185776}
#sq .gt{width:100%;border-collapse:collapse;font-family:'Noto Sans Thai',sans-serif;font-size:11px}
#sq .gt th{font-weight:600;font-size:10px;color:#a7c5d9;text-align:left;padding:5px 6px 4px;border-bottom:1px solid #416e87;white-space:nowrap}
#sq .gt td{height:30px;padding:0 6px;border-bottom:1px dotted #416e87;white-space:nowrap;font-weight:500}
#sq .gt td.r,#sq .gt th.r{text-align:right}
#sq .gt td.b{font-family:'Baloo 2';font-weight:700;font-size:12px}
#sq .gt tr.pk td{background:#10283b}
#sq .gt tr.me td{background:#10283b}
#sq .st{display:flex;flex-direction:column;gap:1px;padding:6px 9px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .st>span{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10px;color:#a7c5d9;white-space:nowrap}
#sq .st>b{font-size:14px;white-space:nowrap}
#sq .nv{display:flex;align-items:center;gap:7px;height:30px;padding:0 10px;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11.5px;color:#a7c5d9;white-space:nowrap}
#sq .nv.on{background:#10283b;color:#e8f7ff;font-weight:700;box-shadow:inset 3px 0 0 #3c7d98}
#sq .nv>b{margin-left:auto;font-family:'Baloo 2';font-weight:700;font-size:10px;padding:0 5px;border-radius: 0px;background:#c7334a;color:#e8f7ff;line-height:13px}
#sq .ng{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:9.5px;color:#a7c5d9;padding:9px 10px 3px}
#sq .qc{padding:8px 10px;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .qc .n{font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:12px}
#sq .qc .w{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10.5px;color:#a7c5d9;margin-top:2px}
#sq .kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 5px;box-sizing:border-box;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87,0 1px 0 #416e87;font-family:'Baloo 2';font-weight:700;font-size:10.5px;color:#e8f7ff}
#sq .set{display:flex;align-items:center;gap:10px;min-height:31px;padding:2px 0;border-top:1px dotted #416e87}
#sq .set:first-child{border-top-color:transparent}
#sq .set>.m{flex:1;min-width:0}
#sq .set .n{font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:11.5px}
#sq .set .w{font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:9.5px;line-height:1.3;color:#a7c5d9}
#sq .dy{display:flex;flex-direction:column;align-items:center;gap:2px;height:80px;padding:4px 3px;box-sizing:border-box;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;text-align:center}
#sq .dy>.d{font-size:10px;color:#a7c5d9}
#sq .dy>img{width:22px;height:22px;object-fit:contain}
#sq .dy>.t{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:9.5px;line-height:1.2;color:#e8f7ff}
#sq .dy.got{background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .dy.got>img{opacity:.5}
#sq .dy.next{background:#10283b;box-shadow:inset 0 0 0 2px #3c7d98}
#sq .dy.big{background:#10283b;box-shadow:inset 0 0 0 1px #416e87}
#sq .elt{width:100%;border-collapse:separate;border-spacing:2px;font-size:12px}
#sq .elt th{font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:9.5px;color:#a7c5d9;padding:0;height:38px;vertical-align:bottom}
#sq .elt th>img{display:block;width:18px;height:18px;margin:0 auto 1px}
#sq .elt th>span{display:block;white-space:nowrap}
#sq .elt th.c{vertical-align:middle;color:#a7c5d9;font-weight:500}
#sq .elt th.l{height:30px;text-align:left;vertical-align:middle;white-space:nowrap;font-size:10.5px;padding-right:4px}
#sq .elt th.l>img{display:inline-block;vertical-align:middle;margin:0 5px 0 0}
#sq .elt td{width:52px;height:30px;text-align:center;border-radius: 0px;box-shadow:inset 0 0 0 1px #416e87;font-weight:700}
#sq .elt tr.pk td{box-shadow:inset 0 0 0 1.5px #416e87}
#sq .elt tr.pk th.l{color:#8ee7f7}
#sq .pc{display:flex;flex-direction:column;min-height:104px;padding:6px 7px;box-sizing:border-box;border-radius: 0px;background:#10283b;box-shadow:inset 0 0 0 1px #416e87;min-width:0}
#sq .pc.me{box-shadow:inset 0 0 0 1.5px #416e87;background:#10283b}
#sq .pc .n{display:flex;align-items:center;gap:4px;font-family:'Noto Sans Thai',sans-serif;font-weight:700;font-size:11.5px;white-space:nowrap}
#sq .pc .w{display:flex;align-items:center;gap:4px;font-family:'Noto Sans Thai',sans-serif;font-weight:500;font-size:10px;color:#a7c5d9;white-space:nowrap;overflow:hidden;margin-top:2px}
#sq .win{border-radius:0;box-shadow:0 0 0 2px #183c54,0 8px 22px rgba(8,14,40,.5)}
#sq .tb{height:36px;padding:0 9px 0 13px;background:#185776;border-bottom:2px solid #183c54;color:#e8f7ff;font-size:14.5px;text-shadow:0 1px 0 rgba(6,14,50,.6)}
#sq .tb>img{width:21px;height:21px}
#sq .tb>.sub{color:#e8f7ff}
#sq .tb>span:not(.tag):not(.kb):not(.pr)[style*="color"],#sq .tb .mu{color:#e8f7ff !important}
#sq .tb .tag,#sq .tb .bt{text-shadow:none}
/* a status tag on a title bar shrinks and ends in "…"; ย่อ, ปิด and the coins never move for it (the owner's UI fixes of 20 Nov 2026, item 2) */
#sq .tb>.tag{display:block;line-height:19px;min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sq .tb>.wb,#sq .tb>.pr{flex:none}
/* (the crafting frame's title gives way first: "งานฝีมือ · หินออฟ · เจาะออฟ" on a 338 px page left the short tag "ต…") */
#sq .tb>[data-f="title"]{min-width:0;flex:0 4 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sq .tb>.tag.short{flex-shrink:0}
#sq .tbnote{flex:none;padding:4px 10px;background:#10283b;border-bottom:1px solid #416e87;color:#dec49e;font-family:'Noto Sans Thai',sans-serif;font-weight:600;font-size:11px;line-height:1.35}
#sq .tbnote[hidden]{display:none}
#sq .tb .kb{background:#10283b;box-shadow:none;color:#8ee7f7;text-shadow:none}
#sq .wb{width:21px;height:21px;border-radius:0;background:#10283b;box-shadow:inset 0 0 0 1.5px #183c54}
#sq .bt.pr{background:#ffc93c;color:#e8f7ff;box-shadow:inset 0 0 0 1.5px #183c54}
#sq .sl.on{box-shadow:inset 0 0 0 1.5px #416e87}
#sq .sl.pk,#sq .slot.pk{box-shadow:inset 0 0 0 2.5px #ffc93c,0 0 0 2px #183c54}
#sq .sg>span.on{background:#185776}
#sq .sw>i{border-radius:0}
#sq .bt.pr:disabled,#sq .bt.pr.away{background:#10283b;box-shadow:inset 0 0 0 1px #416e87;color:#c8e1ee}
