/* แท็บ ซื้อ | ขาย | ย่อย ในหน้าต่าง NPC + ตะกร้าขาย (trade-panel.js · 9 ต.ค. · design-briefs/90-shop-ux)
   ร้าน (shop-window.js) · ช่างคราฟ/แลกเศษ (craft-window.js) · ช่างตีบวก (refine-window.js)
   ไม่มี z-index นอกตาราง — หน้ายืนยันซ้อนในกล่องของแผงเอง (z 2 ในกล่อง position:relative) แบบ .salv-confirm เดิม */

/* ── แถบแท็บบนสุดของหน้าต่าง NPC ── */
#windows .npc-modes { display: flex; gap: 6px; flex: none; padding: 8px 10px 6px; border-bottom: 1.5px solid #e3d2a8; background: linear-gradient(#fbf3df, #f6ead0); overflow-x: auto; scrollbar-width: none; }
#windows .npc-modes button { flex: 0 0 auto; min-height: 38px; padding: 0 16px; border-radius: 10px 10px 4px 4px; border: 1.5px solid #d6bf8e; background: #fffaf0; color: #5a4020; font: 700 14px/1 var(--font-head, inherit); cursor: pointer; white-space: nowrap; }
#windows .npc-modes button:hover { background: #fff3d6; }
#windows .npc-modes button.on { background: linear-gradient(#3f8588, #2b686c); border-color: #285d61; color: #fffdf4; cursor: default; }
html.touch-ui #windows .npc-modes button { min-height: 44px; font-size: 15px; padding: 0 18px; }
html.touch-ui #windows .npc-modes { padding: 4px 8px; }
#windows .cw > .npc-modes, #windows .rw > .npc-modes { margin: -2px -2px 8px; border-radius: 10px 10px 0 0; }

/* ── กล่องแผงขาย/ย่อยในหน้าต่างช่าง ── */
#windows .trade-pane { display: flex; flex-direction: column; min-height: 0; height: min(600px, 78vh); }
html.touch-ui #windows .trade-pane { height: 100%; }
#windows .trade-pane > .sp-host, #windows .shop-selling > .sp-host { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 10px 10px; }
#windows .shop-selling { display: flex; flex-direction: column; min-height: 0; height: 100%; }

/* ── แผงขาย: ซ้าย = ของในกระเป๋า · ขวา = ตะกร้า ── */
#windows .sp { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); gap: 10px; color: #3b2a14; }
#windows .sp-bag, #windows .sp-cart { min-height: 0; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid #e3d2a8; border-radius: 12px; background: #fffaf0; padding: 8px; }
#windows .sp-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; flex: none; }
#windows .sp-chips .chip { flex: none; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1.5px solid #d6bf8e; background: #fff; color: #5a4020; font-weight: 700; font-size: 13px; cursor: pointer; }
#windows .sp-chips .chip.on { background: #2f6f73; border-color: #285d61; color: #fff; }
#windows .sp-chips .chip small { opacity: .75; font-weight: 600; }
/* ใส่ทั้งแท็บ (bag-sell-1111) — ปุ่มใต้ชิปหมวด + บอกจำนวนของดีที่ข้าม */
#windows .sp-bulk { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
#windows .sp-bulk .sp-bulk-go { flex: none; min-height: 36px; }
#windows .sp-bulk .sp-bulk-go b { color: #2f6f73; }
#windows .sp-bulk small { min-width: 0; color: #7a6a50; font-size: var(--fs-xs, 12px); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.touch-ui #windows .sp-bulk .sp-bulk-go { min-height: 44px; }
#windows .sp-dlg .sp-dn { font-weight: 600; color: #7a6a50; font-size: var(--fs-sm, 14px); }
#windows .sp-dlg p.risk.keep { color: #9a5a12; }
/* หน้ายืนยัน: ปุ่มขาย/ยอดรวมเห็นเสมอ — รายการยาวเลื่อนในตัวเอง (มือถือแนวนอน 390 เดิมปุ่มตกขอบต้องเลื่อนหา · ใส่ทั้งแท็บ = รายการยาวบ่อยขึ้น) */
#windows .sp-confirm .sp-dlg { display: flex; flex-direction: column; overflow: hidden; }
#windows .sp-confirm .sp-dlg ul { flex: 0 1 auto; min-height: 44px; overflow: auto; overscroll-behavior: contain; }
#windows .sp-confirm .sp-dlg > :not(ul) { flex: none; }
#windows .sp-grid { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; align-content: start; padding: 2px; }
#windows .sp-slot { position: relative; aspect-ratio: 1; min-height: 48px; padding: 3px; border-radius: 10px; border: 1.5px solid #e0cda0; background: #fdf6e6; cursor: pointer; display: grid; place-items: center; }
#windows .sp-slot:hover { border-color: #c9a24a; background: #fff3d6; }
#windows .sp-slot .sp-ic { width: 82%; height: 82%; display: grid; place-items: center; pointer-events: none; }
#windows .sp-ic img, #windows .sp-ic .ic3d { width: 100%; height: 100%; object-fit: contain; }
#windows .sp-slot .sp-q { position: absolute; right: 3px; bottom: 1px; font: 700 11px/1 inherit; color: #3b2a14; text-shadow: 0 0 2px #fff, 0 0 2px #fff; pointer-events: none; }
#windows .sp-slot .sp-r { position: absolute; left: 3px; bottom: 1px; font: 700 11px/1 inherit; color: #a8741a; pointer-events: none; }
#windows .sp-slot .sp-tag { position: absolute; left: 2px; top: 2px; pointer-events: none; }
#windows .sp-slot .sp-tag.junk { padding: 0 3px; border-radius: 5px; background: #8f8a80d9; color: #fff; font: 700 9px/13px inherit; }
#windows .sp-slot .sp-tag.mat { width: 9px; height: 9px; border-radius: 50%; background: #2f6f73; box-shadow: 0 0 0 1.5px #fff; }
#windows .sp-slot.in { border-color: #2f6f73; background: #e4f2ef; box-shadow: 0 0 0 2px #2f6f7355 inset; }
#windows .sp-slot .sp-ok { position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #2f6f73; color: #fff; font: 700 12px/18px inherit; text-align: center; pointer-events: none; }
#windows .sp-slot.no { cursor: not-allowed; background: #efe9dc; border-style: dashed; }
#windows .sp-slot.no .sp-ic { filter: grayscale(1); opacity: .45; }
#windows .sp-slot .sp-why { position: absolute; left: 1px; right: 1px; bottom: 1px; padding: 1px 0; border-radius: 0 0 8px 8px; background: #6b6253d9; color: #fff; font: 700 9.5px/1.2 inherit; text-align: center; white-space: nowrap; overflow: hidden; pointer-events: none; }
#windows .sp-how { margin: 0; flex: none; font-size: 12px; color: #7a6a50; }
#windows .sp-empty { grid-column: 1 / -1; margin: 12px 4px; text-align: center; color: #7a6a50; font-size: 13px; line-height: 1.5; }

#windows .sp-cart header { display: flex; align-items: center; gap: 6px; flex: none; }
#windows .sp-cart header b { flex: 1; font-size: 15px; }
#windows .sp-cart header small { font-weight: 600; color: #7a6a50; font-size: 12px; }
#windows .sp-cart header .rbtn { min-height: 32px; font-size: 12.5px; white-space: nowrap; }
#windows .sp-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }
#windows .sp-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto 28px; align-items: center; gap: 6px; padding: 3px 4px 3px 6px; border-radius: 9px; border: 1.5px solid #e6d6b0; background: #fff; }
#windows .sp-row .sp-ic { width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
#windows .sp-nm { min-width: 0; display: grid; line-height: 1.2; }
#windows .sp-nm b { font-size: 13px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
#windows .sp-nm small.risk { font-size: 11px; color: #b0442e; font-weight: 700; }
#windows .sp-nm small.sp-mk { font-size: var(--fs-xs, 12px); color: #2f6f73; font-weight: 700; }   /* ป้ายราคาตลาดตอนขายร้าน (gear-system-1110) */
#windows .sp-step { display: inline-flex; align-items: center; gap: 2px; }
#windows .sp-step button { min-width: 28px; height: 28px; padding: 0 4px; border-radius: 7px; border: 1.5px solid #d6bf8e; background: #fffaf0; color: #4a3418; font-weight: 700; cursor: pointer; }
#windows .sp-step .sp-n { min-width: 46px; font-size: 13px; }
#windows .sp-step .sp-n small { color: #9a8a70; font-weight: 600; font-size: 10.5px; }
#windows .sp-step.one { font-size: 12px; color: #7a6a50; padding: 0 6px; }
#windows .sp-g { font-size: 13px; font-weight: 700; color: #6b4a14; text-align: right; min-width: 52px; }
#windows .sp-x { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #e0cda0; background: #fff; color: #9a5a3a; font: 700 15px/1 inherit; cursor: pointer; }
#windows .sp-cart footer { flex: none; display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid #e3d2a8; }
#windows .sp-sum { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; }
#windows .sp-sum .gold-amt { font-size: 19px; font-weight: 800; color: #6b4a14; }
#windows .sp-sum small { margin-left: auto; color: #7a6a50; font-size: 12px; }
#windows .sp-act { display: flex; gap: 6px; }
#windows .sp-act .rbtn { min-height: 44px; }
#windows .sp-go { flex: 1; min-height: 44px; border-radius: 10px; border: 1.5px solid #a8781a; background: linear-gradient(#f3cf6a, #e0a93a); color: #4a300a; font: 800 16px/1 var(--font-head, inherit); cursor: pointer; }
#windows .sp-go:disabled { opacity: .5; cursor: default; filter: grayscale(.4); }
#windows .sp-row .sp-ic, #windows .sp-confirm .sp-ic { overflow: hidden; }

/* หน้ายืนยัน (ซ้อนในกล่องแผง) */
#windows .sp-confirm { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #3b2a1466; border-radius: 12px; }
#windows .sp-dlg { width: min(420px, 94%); max-height: 94%; overflow: auto; padding: 14px; border-radius: 12px; background: #fff8e8; border: 2px solid #bd9b59; box-shadow: 0 10px 30px #23180e55; }
#windows .sp-dlg h4 { margin: 0 0 8px; font-size: 16px; }
#windows .sp-dlg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
#windows .sp-dlg li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
#windows .sp-dlg li .sp-ic { width: 28px; height: 28px; }
#windows .sp-dlg li.more { display: block; color: #7a6a50; }
#windows .sp-dlg p.risk { margin: 8px 0 0; font-size: 12.5px; color: #b0442e; font-weight: 700; }
#windows .sp-dsum { margin: 10px 0; text-align: right; font-size: 15px; font-weight: 700; }
#windows .sp-dsum .gold-amt { font-size: 19px; color: #6b4a14; }
#windows .sp-dact { display: flex; gap: 8px; justify-content: flex-end; }
#windows .sp-dact .rbtn { min-height: 44px; padding: 0 18px; }
#windows .sp-dact .sp-go { flex: 0 0 auto; padding: 0 26px; }

/* ── แท็บย่อยในหน้าต่างช่าง (ใช้ตัววาด .salv เดิม) ── */
#windows .sp-salv { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
#windows .sp-salv-b { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#windows .sp-salv-b .salv-list { max-height: none; }
#windows .sp-salv-f { flex: none; display: flex; align-items: center; gap: 8px; }
#windows .sp-salv-f[hidden] { display: none; }
#windows .sp-salv-f .salv-go { min-height: 44px; }

/* ── โหมดย่อยในกระเป๋า: ปุ่มกลับซ้ายสุด (9 ต.ค. "ไปหน้าย่อยแล้วกลับไม่ได้") ── */
.salv-head .salv-back { flex: none; min-height: 36px; font-weight: 700; white-space: nowrap; }
html.touch-ui .salv-head .salv-back { min-height: 44px; }

/* ── จอสัมผัสแนวนอน (Screen Shell เต็มจอ · สูง ~390) ── */
html.touch-ui #windows .sp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
html.touch-ui #windows .sp-bag, html.touch-ui #windows .sp-cart { padding: 6px; }
html.touch-ui #windows .sp-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
html.touch-ui #windows .sp-chips .chip { min-height: 40px; font-size: 13.5px; }
html.touch-ui #windows .sp-cart header .rbtn { min-height: 40px; }
html.touch-ui #windows .sp-step button { min-width: 36px; height: 36px; }
html.touch-ui #windows .sp-x { width: 44px; height: 44px; min-width: 0; padding: 0; }
/* จอสัมผัส: ตะกร้ากว้างแค่ ~300px (iPhone SE) — แถวละสองบรรทัด: ชื่อ+ราคา / ปุ่มจำนวน · ปุ่ม × ไม่ตกขอบ */
html.touch-ui #windows .sp-row { grid-template-columns: 34px minmax(0, 1fr) auto 44px; grid-template-areas: "ic nm g x" "ic st st x"; gap: 2px 6px; padding: 4px 4px 4px 6px; }
html.touch-ui #windows .sp-row > .sp-ic { grid-area: ic; } html.touch-ui #windows .sp-row > .sp-nm { grid-area: nm; }
html.touch-ui #windows .sp-row > .sp-step { grid-area: st; justify-self: start; } html.touch-ui #windows .sp-row > .sp-g { grid-area: g; }
html.touch-ui #windows .sp-row > .sp-x { grid-area: x; align-self: center; }
html.touch-ui #windows .sp-nm b { -webkit-line-clamp: 1; }
html.touch-ui #windows .sp-step .sp-n { min-width: 44px; }
html.touch-ui #windows .sp-g { min-width: 0; }
html.touch-ui #windows .sp-how { display: none; }
html.touch-ui #windows .sp-sum small { display: none; }
html.touch-ui #windows .trade-pane > .sp-host, html.touch-ui #windows .shop-selling > .sp-host { padding: 6px 8px 8px; }
/* ── จอสัมผัสแนวนอน รอบ 2 (9 ต.ค. 93-mobile-ux/shop-sell · ผู้ใช้: "PC ดีมาก แต่ mobile item ที่จะกดขายเบียดกันผิดปกติ") ──
 *   ต้นเหตุ: ช่อง aspect-ratio 1 ในตารางที่ถูกบีบความสูง → แถวเตี้ยกว่าช่อง ช่องซ้อนกัน (844×390 ทับกันทุกแถว) · แถบแท็บกินแถวของตัวเอง ~60px
 *   แบบเกมมือถือ: ช่องขนาดคงที่ 60px ตารางเลื่อนได้ · ตะกร้าเป็นแผงขวาแคบ (สรุป+ปุ่มขายแถวเดียว) · ตัวกรองเลื่อนแนวนอน · ปุ่ม ≥ 44
 *   ตรวจ: tools/check-shop-mobile.mjs */
html.touch-ui #windows .sp { grid-template-columns: minmax(0, 1fr) clamp(216px, 36%, 300px); }
html.touch-ui #windows .sp-grid { grid-template-columns: repeat(auto-fill, 60px); grid-auto-rows: 60px; justify-content: start; gap: 6px; }
html.touch-ui #windows .sp-slot { width: 60px; height: 60px; aspect-ratio: auto; min-height: 0; box-sizing: border-box; }
html.touch-ui #windows .sp-slot .sp-q, html.touch-ui #windows .sp-slot .sp-r { font-size: 12px; }
html.touch-ui #windows .sp-slot .sp-tag.junk { font-size: 10px; line-height: 14px; }
html.touch-ui #windows .sp-slot .sp-why { font-size: 10.5px; }
html.touch-ui #windows .sp-chips .chip { min-height: 44px; }
html.touch-ui #windows .sp-cart header .rbtn { min-height: 44px; }
html.touch-ui #windows .sp-step button { min-width: 44px; height: 44px; }
/*   ท้ายตะกร้า: "ได้ 960" + ล้าง + ขาย แถวเดียว (เดิมสองแถว กินที่รายการในตะกร้า) */
html.touch-ui #windows .sp-cart footer { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
html.touch-ui #windows .sp-cart footer .sp-sum { flex-wrap: nowrap; white-space: nowrap; }
html.touch-ui #windows .sp-cart footer .sp-sum > :not(.gold-amt):not(small) { font-size: 12px; }
html.touch-ui #windows .sp-cart footer .sp-sum .gold-amt { font-size: 17px; }
html.touch-ui #windows .sp-cart footer > :not(.sp-sum):not(.sp-act) { grid-column: 1 / -1; }
/*   ตะกร้าแคบ: ชื่อของ "+ ของขายทั้งหมด (1)" สั้นลงได้ (ตัดท้าย) ไม่ดันหัวตะกร้า */
html.touch-ui #windows .sp-cart header .rbtn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/*   ร้าน: ติ๊ก "อาชีพฉัน" ทั้งป้ายเป็นที่แตะ 44px */
html.touch-ui #windows .shop-mine { min-height: 44px; padding: 0 6px; }
html.touch-ui #windows .shop-mine input { width: 22px; height: 22px; }
/*   คราฟ: จำนวนชุด − + สูงสุด */
html.touch-ui #windows .cw-n button { min-width: 44px; min-height: 44px; }
@media (max-height: 500px) {
  /* แถบแท็บของ NPC ขึ้นไปอยู่แถวหัวหน้าต่าง (แบบ HEAD SLOT ใน ui-touch.css) — คืนพื้นที่ ~60px ให้ตาราง/รายการ */
  html.touch-ui body #windows .win[data-win] > .body :is(.shop, .shop-selling, .trade-pane, .cw, .rw) { position: static !important; }
  html.touch-ui body #windows .win[data-win] .npc-modes { position: absolute !important; top: 0; right: 50px; height: 44px; z-index: 1;
    max-width: calc(100% - 50px - var(--hx-title, 30%)); margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; gap: 4px; align-items: center; }
  html.touch-ui body #windows .win[data-win] .npc-modes button { min-height: 44px; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
  html.touch-ui body #windows .win[data-win]:has(.npc-modes) > header > .win-t { flex: 0 1 auto; max-width: var(--hx-title, 30%); }
}
/*   แถวในตะกร้า (กว้าง 216–300): บรรทัดบน ไอคอน · ชื่อ · ราคา · ✕ / บรรทัดล่าง − จำนวน + (ปุ่ม 44 ทุกปุ่ม · เดิม + ทับ ✕ บน SE) */
html.touch-ui #windows .sp-row { grid-template-columns: 34px minmax(0, 1fr) auto 44px; grid-template-areas: "ic nm g x" "st st st st"; }
html.touch-ui #windows .sp-row > .sp-step { justify-self: start; }
html.touch-ui #windows .sp-row > .sp-x { align-self: start; }
html.touch-ui #windows .sp-row > .sp-step.one { min-height: 0; padding-left: 40px; }
/* ร้านบนจอสัมผัสแนวนอน: บทพูดซ่อนอยู่แล้ว (ui-shop.css) · ปุ่ม "ขายของ" ลอยมุมขวาเดิมถูกแทนด้วยแถบ ซื้อ | ขาย → ไม่ต้องมีกล่องลอยว่าง */
html.touch-ui.land #windows .win[data-win="shop"] .shop-top { display: none; }
/* แท็บเล็ต (สูงเกิน 500 = ไม่โดน Compact Shell): หมวดช่างคราฟ/แลกเศษ · ปุ่มท้ายหน้าต่างตีบวก ≥ 44 (เดิม 40) */
html.touch-ui #windows .win[data-win] :is(.cw-tabs > button, .foot .rbtn, .foot > button) { min-height: 44px; }

/* ── บัตรรายเดือน: คลัง/ขายทุกที่ (pass-perks.js · card-perks-1020) ── */
/* ปุ่มท้ายกระเป๋า — ผู้ถือบัตรสีทอง · ไม่มีบัตร = จาง + 🔒 (แตะแล้วเห็นคำอธิบายสิทธิ์) */
.win .bag-pass { display: inline-flex; gap: 6px; flex: none; }
.win .bag-pass .bp-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 10px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.win .bag-pass.on .bp-btn { border-color: #c8932c; background: linear-gradient(#fff3cf, #f7dc94); color: #5a3a08; }
.win .bag-pass:not(.on) .bp-btn { opacity: .78; }
.win .bag-pass .bp-btn .bag-fi { width: 18px; height: 18px; }
.win .bag-pass .bp-tag { font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 999px; background: #e8b64a; color: #4a3006; line-height: 1.5; }
.win .bag-pass .bp-lock { font-style: normal; font-size: 12px; }
html.touch-ui .win .bag-pass .bp-btn { min-height: 44px; padding: 0 12px; }
/* หน้าต่างขายทุกที่ — แผงขายเดิม + บรรทัดบอกสิทธิ์ */
#windows .trade-pane.pass-sell > .ps-note { flex: none; margin: 6px 10px 0; padding: 5px 10px; border-radius: 8px; background: #fff3cf; border: 1px solid #e8c97a; color: #5a3a08; font-size: 13px; }
/* bag-whisper-1024: คอม 1366×768 — แผงสูง min(600px,78vh) + บรรทัดบอกสิทธิ์ ยาวเกินหน้าต่าง ปุ่ม "ขาย" ตกขอบล่าง (วัดได้ y=638 นอกกรอบที่จบ 626) กดไม่ถึง · จอสัมผัสใช้ height:100% ของกฎ touch-ui ข้างบน */
#windows .trade-pane.pass-sell { height: min(500px, calc(100vh - 190px)); }
/* แผ่นอธิบายสิทธิ์ (ไม่มีบัตร) — โครง #qty-pick */
#qty-pick.pass-info .pi-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: #3e2c16; }
#qty-pick.pass-info .pi-note { margin: 0; color: #6b5530; font-size: 13.5px; }
#qty-pick.pass-info .qp-act.one { grid-template-columns: 1fr; }

/* rare-sell-1113: ยืนยันขายของแรร์ — ปุ่ม "เก็บไว้" เด่นสุด · ปุ่มยืนยันขายเล็ก/จางกว่า กันกดพลาด */
#windows .sp-dlg li.rare { padding: 4px 6px; border-radius: 8px; background: #fdebc9; border: 1px solid #e0b96a; }
#windows .sp-dlg li.rare small { display: block; color: #8a4a10; font-size: var(--fs-xs, 12px); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
#windows .sp-dlg p.sp-tip { margin: 6px 0 0; font-size: var(--fs-xs, 12px); color: #6b5a40; }
#windows .sp-dact.rare { justify-content: space-between; align-items: center; }
#windows .sp-dact.rare .sp-yes-quiet { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #c9b88f; background: transparent; color: #7a5a30; font: 600 var(--fs-xs, 13px)/1 var(--font-head, inherit); cursor: pointer; }
#windows .sp-dact.rare .sp-go { flex: 1 1 auto; padding: 0 18px; }
@media (max-height: 480px) { #windows .sp-dlg p.sp-tip { display: none; } #windows .sp-confirm .sp-dlg ul { min-height: 96px; } #windows .sp-dact.rare { margin-top: 0; } #windows .sp-dlg p.risk { margin-top: 4px; } #windows .sp-dsum { margin: 4px 0 6px; } }
#windows .sp-confirm .sp-dlg ul { align-content: start; }
