/* =====================================================================
   PLAYER GUILD (#player-guild-window.nv-pguild) - Market Broker style, sky / white
   ===================================================================== */
html body #hud section#player-guild-window.nv-pguild[hidden],
html body #hud section#player-guild-window.nv-pguild.hidden {
  display: none !important;
}
html body #hud section#player-guild-window.nv-pguild {
  width: 580px !important; max-width: 96vw !important; max-height: min(84dvh, 720px) !important;
  left: 50% !important; top: 46% !important; transform: translate(-50%, -50%) !important;
  display: flex !important; flex-direction: column !important;
  background: radial-gradient(ellipse at 50% -10%, #ffffff 0%, #f0f7ff 38%, #e1eefb 72%, #cbe3f8 100%) !important;
  border: 3px solid #dfb758 !important; border-radius: 16px !important; border-image: none !important;
  box-shadow: 0 0 0 2px #734f0d, inset 0 0 0 2px #fff4cb, 0 18px 44px rgba(10, 30, 60, 0.45) !important;
  color: #10294f !important; overflow: hidden !important; padding: 0 !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-head {
  margin: 0 !important; min-height: 56px !important; padding: 8px 12px 8px 14px !important; gap: 10px !important;
  border: 0 !important; border-bottom: 2px solid #dfb758 !important; border-image: none !important;
  background: linear-gradient(180deg, #ffffff 0%, #eaf4fd 60%, #d6e9f9 100%) !important; box-shadow: inset 0 -1px 0 #fff4cb !important; color: #10294f !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-title { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; text-shadow: none !important; }
html body #hud section#player-guild-window.nv-pguild .pg-title > span { display: flex; flex-direction: column; line-height: 1.1; }
html body #hud section#player-guild-window.nv-pguild .pg-badge {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-style: normal; font-size: 19px;
  background: linear-gradient(180deg, #ffe39a, #e2ab33); color: #5a3d0a; box-shadow: 0 0 0 2px #9c7a36, inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html body #hud section#player-guild-window.nv-pguild .pg-title b { font-family: inherit !important; font-size: 20px !important; color: #10294f !important; text-shadow: 0 1px 0 #fff !important; }
html body #hud section#player-guild-window.nv-pguild .pg-title small { display: block !important; font-size: 12px !important; color: #8c6a2a !important; }
html body #hud section#player-guild-window.nv-pguild .pg-silver {
  margin-left: auto !important; padding: 6px 14px !important; border-radius: 999px !important;
  background: #ffffff !important; color: #10294f !important; border: 1.5px solid #b9d3ec !important; box-shadow: inset 0 1px 3px rgba(16, 41, 79, 0.08) !important; font-weight: 700;
}
html body #hud section#player-guild-window.nv-pguild .pg-close {
  width: 34px !important; height: 34px !important; padding: 0 !important; border-radius: 50% !important;
  background: radial-gradient(circle at 40% 35%, #ffffff, #d8ebfa) !important; color: #8c6a2a !important; border: 2px solid #c9a24e !important; box-shadow: none !important; font-size: 15px !important;
  cursor: pointer !important; pointer-events: auto !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-tabs { display: flex !important; align-items: center !important; gap: 6px !important; padding: 8px 12px 0 !important; background: none !important; border: 0 !important; }
html body #hud section#player-guild-window.nv-pguild .pg-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto !important; padding: 6px 16px !important;
  border: 1.5px solid #b9d3ec !important; border-image: none !important; border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff, #e3effb) !important; box-shadow: none !important; color: #1d4f9a !important; font-family: inherit !important; font-size: 13px !important; text-shadow: none !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-tab[aria-pressed="true"] { background: linear-gradient(180deg, #ffe39a, #e2ab33) !important; border: 2px solid #9c7a36 !important; color: #3d2806 !important; }
html body #hud section#player-guild-window.nv-pguild .pg-body {
  margin: 8px 12px !important; padding: 12px !important; overflow-y: auto; min-height: 220px;
  border: 1.5px solid #b9d3ec !important; border-image: none !important; border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff, #eef6fe) !important; box-shadow: 0 2px 6px rgba(20, 60, 120, 0.1) !important; color: #10294f !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-foot {
  margin: 0 !important; min-height: 34px !important; padding: 4px 14px !important; gap: 12px !important; display: flex; align-items: center;
  border: 0 !important; border-top: 2px solid #dfb758 !important; border-image: none !important;
  background: linear-gradient(180deg, #eaf4fd, #d6e9f9) !important; color: #3a5680 !important; font-size: 12px !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-safe { color: #1c7a3e !important; font-weight: 600; }
html body #hud section#player-guild-window.nv-pguild #pg-result { margin: 0 0 0 auto !important; color: #1f5fd0 !important; font-weight: 700; text-align: right; }
/* shared controls */
html body #hud section#player-guild-window.nv-pguild input[type="text"], html body #hud section#player-guild-window.nv-pguild input[type="number"] {
  border: 1.5px solid #b9d3ec !important; border-image: none !important; border-radius: 999px !important; background: #ffffff !important;
  box-shadow: inset 0 1px 3px rgba(16, 41, 79, 0.08) !important; color: #10294f !important; padding: 6px 12px !important; font-family: inherit !important; min-width: 0;
}
html body #hud section#player-guild-window.nv-pguild .pg-label { display: block; margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: #5b7396; }
html body #hud section#player-guild-window.nv-pguild .pw-btn {
  border: 1.5px solid #9ec2e6 !important; border-image: none !important; border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff, #e3effb) !important; color: #1d4f9a !important; font-family: inherit !important; font-weight: 700; cursor: pointer; padding: 6px 14px !important;
}
html body #hud section#player-guild-window.nv-pguild .pw-btn.blue {
  border: 1.5px solid #0e2a66 !important; background: linear-gradient(180deg, #4f93f2, #1f5fd0 55%, #174cb0) !important; color: #fff !important; box-shadow: inset 0 1px 0 #9cc6ff !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-big-btn {
  display: block; width: 100%; margin-top: 14px; padding: 10px; border-radius: 999px !important; border: 1.5px solid #0e2a66 !important; border-image: none !important;
  background: linear-gradient(180deg, #4f93f2, #1f5fd0 55%, #174cb0) !important; color: #fff !important; box-shadow: inset 0 1px 0 #9cc6ff !important;
  font-family: inherit !important; font-size: 15px !important; font-weight: 800; cursor: pointer;
}
html body #hud section#player-guild-window.nv-pguild .pg-cost { margin: 0 0 6px; font-size: 13px; color: #8c6a2a; }
html body #hud section#player-guild-window.nv-pguild .pg-cost b { color: #b3612b; }
html body #hud section#player-guild-window.nv-pguild .pg-hint { margin-top: 10px; font-size: 12px; color: #5b7396; }
html body #hud section#player-guild-window.nv-pguild .pg-empty { text-align: center; color: #5b7396; padding: 24px 0; }
/* no-guild hero */
html body #hud section#player-guild-window.nv-pguild .pg-noguild { text-align: center; padding: 12px 6px; }
html body #hud section#player-guild-window.nv-pguild .pg-hero {
  width: 64px; height: 64px; margin: 0 auto 8px; display: grid; place-items: center; font-size: 30px; border-radius: 50%;
  background: linear-gradient(180deg, #ffe39a, #e2ab33); box-shadow: 0 0 0 2px #9c7a36, inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html body #hud section#player-guild-window.nv-pguild .pg-noguild b { font-size: 16px; color: #10294f; }
html body #hud section#player-guild-window.nv-pguild .pg-noguild p { margin: 6px auto 0; max-width: 400px; font-size: 13px; color: #5b7396; }
/* create form */
html body #hud section#player-guild-window.nv-pguild .pg-create input[type="text"] { width: 100%; box-sizing: border-box; }
html body #hud section#player-guild-window.nv-pguild .pg-emblem-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
html body #hud section#player-guild-window.nv-pguild .pg-emblem-prev {
  width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid #b9d3ec; cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #e9f3fc) center / contain no-repeat; image-rendering: pixelated;
}
/* home: banner / members */
html body #hud section#player-guild-window.nv-pguild .pg-banner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #dfb758; background: linear-gradient(180deg, #fffdf5, #fff4d6); }
html body #hud section#player-guild-window.nv-pguild .pg-emblem {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; font-size: 22px; border-radius: 10px;
  border: 1.5px solid #9c7a36; background: #ffffff center / contain no-repeat; image-rendering: pixelated;
}
html body #hud section#player-guild-window.nv-pguild .pg-binfo { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
html body #hud section#player-guild-window.nv-pguild .pg-binfo b { font-size: 17px; color: #10294f; }
html body #hud section#player-guild-window.nv-pguild .pg-binfo small { font-size: 12px; color: #8c6a2a; }
html body #hud section#player-guild-window.nv-pguild .pg-admin { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
html body #hud section#player-guild-window.nv-pguild .pg-row2 { display: flex; gap: 8px; }
html body #hud section#player-guild-window.nv-pguild .pg-row2 input { flex: 1; }
html body #hud section#player-guild-window.nv-pguild .pg-inv-wait { color: #b3612b; font-size: 11px; }
html body #hud section#player-guild-window.nv-pguild .pg-notice { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #eaf4fd; border: 1px solid #cfe2f5; font-size: 13px; color: #1d4f9a; }
html body #hud section#player-guild-window.nv-pguild .pg-members { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
html body #hud section#player-guild-window.nv-pguild .pg-member {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  background: #ffffff; border: 1px solid #e3effb;
}
html body #hud section#player-guild-window.nv-pguild .pg-member:nth-child(2n) { background: #f4f9ff; }
html body #hud section#player-guild-window.nv-pguild .pg-member.off { opacity: 0.55; }
html body #hud section#player-guild-window.nv-pguild .pg-mc { width: 18px; text-align: center; }
html body #hud section#player-guild-window.nv-pguild .pg-memb { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #b9d3ec; background: #eaf4fd; }
html body #hud section#player-guild-window.nv-pguild .pg-mi { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
html body #hud section#player-guild-window.nv-pguild .pg-mi b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #hud section#player-guild-window.nv-pguild .pg-mi small { font-size: 11px; color: #5b7396; }
html body #hud section#player-guild-window.nv-pguild .pg-mini {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #9ec2e6; background: linear-gradient(180deg, #ffffff, #e3effb); cursor: pointer; font-size: 12px;
}
html body #hud section#player-guild-window.nv-pguild .pg-mini.red { border-color: #d69a8a; background: linear-gradient(180deg, #ffffff, #fde8e0); color: #a3392a; }
html body #hud section#player-guild-window.nv-pguild .pg-emblem-btns { display: flex; gap: 6px; }
html body #hud section#player-guild-window.nv-pguild .pg-online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 4px #22c55e; margin-right: 4px; }
html body #hud section#player-guild-window.nv-pguild .pg-offline-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; margin-right: 4px; }
html body #hud section#player-guild-window.nv-pguild .pg-donate-box { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
html body #hud section#player-guild-window.nv-pguild .pg-donate { display: flex; gap: 8px; }
html body #hud section#player-guild-window.nv-pguild .pg-donate input { flex: 1; }
html body #hud section#player-guild-window.nv-pguild .pg-donate-presets { display: flex; gap: 6px; flex-wrap: wrap; }
html body #hud section#player-guild-window.nv-pguild .pg-donate-presets button {
  padding: 3px 9px !important; font-size: 11px !important; border-radius: 6px !important; border: 1.5px solid #b9d3ec !important;
  background: linear-gradient(180deg, #ffffff, #eaf4fd) !important; color: #1d4f9a !important; cursor: pointer; font-weight: 700;
}
html body #hud section#player-guild-window.nv-pguild .pg-donate-presets button:hover {
  background: #dbeafa !important; border-color: #7fa9d6 !important;
}
html body #hud section#player-guild-window.nv-pguild .pg-danger { display: flex; gap: 8px; margin-top: 12px; border-top: 1.5px solid #cfe2f5; padding-top: 10px; }
html body #hud section#player-guild-window.nv-pguild .pg-leave, html body #hud section#player-guild-window.nv-pguild .pg-disband {
  flex: 1; padding: 8px; border-radius: 999px; border: 1.5px solid #d69a8a; background: linear-gradient(180deg, #ffffff, #fde8e0);
  color: #a3392a; font-family: inherit; font-weight: 700; cursor: pointer;
}
html body #hud section#player-guild-window.nv-pguild .pg-disband { border-color: #c33; background: linear-gradient(180deg, #ff8f7e, #e35b4a); color: #fff; }
/* guild list */
html body #hud section#player-guild-window.nv-pguild .pg-guilds { display: flex; flex-direction: column; gap: 4px; }
html body #hud section#player-guild-window.nv-pguild .pg-guild-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #ffffff; border: 1px solid #e3effb;
}
html body #hud section#player-guild-window.nv-pguild .pg-guild-row.mine { background: linear-gradient(180deg, #fff6d6, #ffe9a8); border-color: #e2ab33; }
html body #hud section#player-guild-window.nv-pguild .pg-gtag {
  min-width: 46px; text-align: center; padding: 3px 6px; border-radius: 8px; background: linear-gradient(180deg, #3f86e0, #1d58b0);
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-shadow: 0 1px 0 #0b2a66;
}
html body #hud section#player-guild-window.nv-pguild .pg-gi { display: flex; flex-direction: column; line-height: 1.2; }
html body #hud section#player-guild-window.nv-pguild .pg-gi b { font-size: 13px; }
html body #hud section#player-guild-window.nv-pguild .pg-gi small { font-size: 11px; color: #5b7396; }
/* toolbar button & icon */
html body #hud nav.toolbar.toolbar > button#toolbar-guild-btn,
#hud .toolbar #toolbar-guild-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  flex-direction: column !important;
  align-items: center !important;
}
#hud .toolbar #toolbar-guild-btn .guild-menu-art,
#hud .toolbar .guild-menu-art,
#hud .toolbar [data-toggle="player-guild-window"] .guild-menu-art {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('/ui/new_menu_icons/guild_64.png') !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
html body #hud nav.toolbar.toolbar > button#toolbar-guild-btn:after,
#hud .toolbar #toolbar-guild-btn:after {
  content: "กิลด์" !important;
  display: block !important;
  margin-top: calc(var(--u) * 2) !important;
  font-size: calc(var(--u) * 10) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #fff !important;
  white-space: nowrap !important;
  text-shadow: 0 0 calc(var(--u) * 2) #000, 0 1px 1px #000, 1px 0 #000, -1px 0 #000 !important;
}
html body #hud nav.toolbar.toolbar > button#toolbar-guild-btn[aria-expanded="true"]:after,
#hud .toolbar #toolbar-guild-btn[aria-expanded="true"]:after {
  color: #ffd24a !important;
}
/* invite card */
#pg-invite-card {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 9500; width: 320px; max-width: 92vw;
  background: radial-gradient(ellipse at 50% -10%, #ffffff, #f0f7ff 50%, #dbeafa);
  border: 3px solid #dfb758; border-radius: 14px; box-shadow: 0 0 0 2px #734f0d, 0 12px 30px rgba(10, 30, 60, 0.5);
  font-family: 'Noto Sans Thai', Tahoma, sans-serif; overflow: hidden;
}
#pg-invite-card .pg-inv-head { padding: 8px 14px; background: linear-gradient(180deg, #f0c552, #c98f1c); color: #5a3d0a; font-weight: 800; text-shadow: 0 1px 0 #fff4cb; }
#pg-invite-card .pg-inv-body { padding: 12px 14px 6px; text-align: center; color: #10294f; font-size: 14px; }
#pg-invite-card .pg-inv-body small { color: #5b7396; }
#pg-invite-card .pg-inv-btns { display: flex; gap: 8px; padding: 10px 14px 14px; }
#pg-invite-card .pg-inv-yes, #pg-invite-card .pg-inv-no {
  flex: 1; padding: 8px; border-radius: 999px; border: 1.5px solid #0e2a66; cursor: pointer; font-family: inherit; font-weight: 700;
  background: linear-gradient(180deg, #4f93f2, #1f5fd0 55%, #174cb0); color: #fff; box-shadow: inset 0 1px 0 #9cc6ff;
}
#pg-invite-card .pg-inv-no { border-color: #9ec2e6; background: linear-gradient(180deg, #ffffff, #e3effb); color: #1d4f9a; box-shadow: none; }
@media (max-width: 700px) {
  html body #hud section#player-guild-window.nv-pguild { width: 96vw !important; }
  html body #hud section#player-guild-window.nv-pguild .pg-tabs .pg-tab span:first-child { display: none; }
}

/* =====================================================================
   PLAYER GUILD v2 (2026-09-28): level card, stats, cards, log, chat, requests
   ===================================================================== */
html body #hud section#player-guild-window.pg-v2 { width: 620px !important; }
html body #hud section#player-guild-window.pg-v2 .pg-tabs { flex-wrap: wrap; }
html body #hud section#player-guild-window.pg-v2 .pg-tab { position: relative; }
html body #hud section#player-guild-window.pg-v2 .pg-dot {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 4px; padding: 0 4px; border-radius: 999px;
  background: #e0453a; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 1.5px #fff;
}
html body #hud section#player-guild-window.pg-v2 .pg-body { flex: 1 1 auto; min-height: 260px; }
html body #hud section#player-guild-window.pg-v2 #pg-result.bad { color: #c0392b !important; }
html body #hud section#player-guild-window.pg-v2 .pg-muted { margin: 6px 0; color: #7d93b3; font-size: 12px; text-align: center; }
html body #hud section#player-guild-window.pg-v2 .pg-warn { display: block; margin-top: 4px; color: #c0392b; font-size: 11px; font-weight: 700; }
html body #hud section#player-guild-window.pg-v2 .pg-sub { margin: 0 0 6px; font-size: 12px; font-weight: 800; color: #5b7396; }
html body #hud section#player-guild-window.pg-v2 em { font-style: normal; color: #1d58b0; font-size: 11px; }
/* level card */
html body #hud section#player-guild-window.pg-v2 .pg-level {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid #dfb758; background: radial-gradient(ellipse at 15% 30%, #4f93f2, #1f5fd0 60%, #123a82); color: #fff;
}
html body #hud section#player-guild-window.pg-v2 .pg-lv {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(180deg, #ffe39a, #e2ab33); color: #3d2806; box-shadow: 0 0 0 2px #9c7a36, inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html body #hud section#player-guild-window.pg-v2 .pg-lv small { font-size: 10px; font-weight: 800; }
html body #hud section#player-guild-window.pg-v2 .pg-lv b { font-size: 22px; font-weight: 900; }
html body #hud section#player-guild-window.pg-v2 .pg-lv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
html body #hud section#player-guild-window.pg-v2 .pg-lv-info b { font-size: 14px; text-shadow: 0 1px 0 #0b2050; }
html body #hud section#player-guild-window.pg-v2 .pg-lv-info small { font-size: 11px; color: #dbe9ff; }
html body #hud section#player-guild-window.pg-v2 .pg-bar { display: block; height: 10px; border-radius: 999px; background: rgba(8, 25, 60, 0.55); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4); overflow: hidden; }
html body #hud section#player-guild-window.pg-v2 .pg-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffe39a, #f3b93b); transition: width .4s; }
html body #hud section#player-guild-window.pg-v2 .pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
html body #hud section#player-guild-window.pg-v2 .pg-stats span {
  display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: #ffffff; border: 1.5px solid #cfe2f5; line-height: 1.15;
}
html body #hud section#player-guild-window.pg-v2 .pg-stats b { font-size: 15px; color: #1f5fd0; }
html body #hud section#player-guild-window.pg-v2 .pg-stats small { font-size: 10.5px; color: #5b7396; text-align: center; }
/* cards */
html body #hud section#player-guild-window.pg-v2 .pg-card { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #ffffff; border: 1.5px solid #cfe2f5; display: flex; flex-direction: column; gap: 6px; }
html body #hud section#player-guild-window.pg-v2 .pg-card h4 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #10294f; }
html body #hud section#player-guild-window.pg-v2 .pg-card h4 small { margin-left: auto; font-size: 11px; font-weight: 600; color: #8c6a2a; }
html body #hud section#player-guild-window.pg-v2 .pg-manage .pg-card:first-child { margin-top: 0; }
html body #hud section#player-guild-window.pg-v2 .pg-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 180px; overflow-y: auto; }
html body #hud section#player-guild-window.pg-v2 .pg-log li { font-size: 12px; color: #10294f; padding: 3px 0; border-bottom: 1px dashed #e3effb; }
html body #hud section#player-guild-window.pg-v2 .pg-log time { display: inline-block; min-width: 92px; color: #7d93b3; font-size: 11px; }
/* members */
html body #hud section#player-guild-window.pg-v2 .pg-members { margin-top: 0; }
html body #hud section#player-guild-window.pg-v2 .pg-member.me { border-color: #7fa9d6; box-shadow: inset 3px 0 0 #1f5fd0; }
html body #hud section#player-guild-window.pg-v2 .pg-mc { width: 24px; font-size: 15px; }
html body #hud section#player-guild-window.pg-v2 .pg-contrib { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 90px; }
html body #hud section#player-guild-window.pg-v2 .pg-contrib b { font-size: 12px; color: #1f5fd0; }
html body #hud section#player-guild-window.pg-v2 .pg-contrib small { font-size: 10px; color: #7d93b3; }
html body #hud section#player-guild-window.pg-v2 .pg-ma { display: flex; gap: 4px; }
/* requests */
html body #hud section#player-guild-window.pg-v2 .pg-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #3a5680; font-weight: 600; cursor: pointer; }
html body #hud section#player-guild-window.pg-v2 .pg-reqs { display: flex; flex-direction: column; gap: 4px; }
html body #hud section#player-guild-window.pg-v2 .pg-req { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: linear-gradient(180deg, #fff8dc, #ffeebd); border: 1px solid #e2c27a; }
/* chat */
html body #hud section#player-guild-window.pg-v2 .pg-chat { display: flex; flex-direction: column; gap: 8px; height: 100%; }
html body #hud section#player-guild-window.pg-v2 .pg-chat-log {
  height: min(44dvh, 330px); overflow-y: auto; padding: 8px 10px; border-radius: 12px; background: #ffffff; border: 1.5px solid #cfe2f5; display: flex; flex-direction: column; gap: 4px;
}
html body #hud section#player-guild-window.pg-v2 .pg-chat-log p { margin: 0; font-size: 13px; color: #10294f; overflow-wrap: anywhere; }
html body #hud section#player-guild-window.pg-v2 .pg-chat-log p.mine b { color: #b3612b; }
html body #hud section#player-guild-window.pg-v2 .pg-chat-log time { margin-right: 6px; color: #7d93b3; font-size: 11px; }
html body #hud section#player-guild-window.pg-v2 .pg-chat-log b { margin-right: 6px; color: #1d58b0; }
html body #hud section#player-guild-window.pg-v2 .pg-chat-log b::after { content: ":"; }
/* guild list */
html body #hud section#player-guild-window.pg-v2 .pg-gi { flex: 1; min-width: 0; }
html body #hud section#player-guild-window.pg-v2 .pg-gemb {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 16px; border-radius: 8px;
  border: 1.5px solid #9c7a36; background: #ffffff center / contain no-repeat; image-rendering: pixelated;
}
html body #hud section#player-guild-window.pg-v2 .pg-guild-row .pw-btn { flex: none; padding: 5px 12px !important; font-size: 12px; }
html body #hud section#player-guild-window.pg-v2 .pw-btn:disabled { opacity: .5; cursor: default; filter: grayscale(.5); }
/* no guild */
html body #hud section#player-guild-window.pg-v2 .pg-hero-btns { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
html body #hud section#player-guild-window.pg-v2 .pg-hero-btns .pg-big-btn { flex: 1; font-size: 13px !important; }
html body #hud section#player-guild-window.pg-v2 .pg-big-btn.alt { background: linear-gradient(180deg, #ffe39a, #e2ab33) !important; border-color: #9c7a36 !important; color: #3d2806 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important; }
@media (max-width: 700px) {
  html body #hud section#player-guild-window.pg-v2 { width: 96vw !important; }
  html body #hud section#player-guild-window.pg-v2 .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #hud section#player-guild-window.pg-v2 .pg-contrib { display: none; }
  html body #hud section#player-guild-window.pg-v2 .pg-hero-btns { flex-direction: column; }
}
