/* ระบบพี่เลี้ยง (client-debug/js/mentor.js, src/map/mentor.js): the window "พี่เลี้ยง" - warm blue, the same in every theme
   (#win-mentor over the RO theme's). Entries only with the system (<html class="mt-sys">). Linked by client/index.html and
   client-debug/index.html after style.css. */

html:not(.mt-sys) .mt-entry, html:not(.mt-sys) .mh-grid [data-w="!mentor"] { display: none !important; }
/* the button beside the minimap (ui.js buildMapButtons): a sky-blue tile */
.sb-ic.sb-mentor { border-color: #1d4f8f; color: #fff; background: linear-gradient(#b3dcff, #4b92e6 52%, #23589e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4); --gi-fill: rgba(220, 240, 255, 0.6); }

#win-mentor .win-body { padding: 0; overflow: auto; background: linear-gradient(180deg, #172a4a, #0f1c33 70%, #0b1426); color: #eaf2ff; }
.mt { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 14px; font-size: 13px; line-height: 1.4; }
.mt-wait, .mt-note { padding: 6px 2px; margin: 0; }
.mt-hero { display: flex; flex-direction: column; gap: 3px; margin: 0 -12px; padding: 12px 14px; background: linear-gradient(135deg, #2f5fa8, #1d3c70); border-bottom: 1px solid rgba(150, 190, 255, 0.3); }
.mt-hero b { font-size: 16px; color: #fff; }
.mt-hero span { font-size: 12px; color: #d4e3ff; }
#win-mentor .mt-h { margin: 6px 0 0; font-size: 13.5px; font-weight: 800; color: #cfe0ff; text-shadow: none; }
#win-mentor .mt-h .muted { font-weight: 400; font-size: 12px; }
#win-mentor .muted { color: #a9bde0; }
.mt-card { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(150, 190, 255, 0.25); }
.mt-req { border-color: rgba(255, 210, 110, 0.6); background: rgba(255, 210, 110, 0.1); }
.mt-row { display: flex; align-items: center; gap: 6px; }
.mt-nm { font-size: 14px; color: #fff; }
.mt-lv { font-size: 12px; color: #b8cdf0; }
.mt-sub { margin-top: 3px; font-size: 12px; color: #c4d6f5; }
.mt-dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7590; flex: none; }
.mt-dot.on { background: #4ee28a; box-shadow: 0 0 6px #4ee28a; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mt-chip { padding: 1px 7px; border-radius: 9px; font-size: 11.5px; background: rgba(255, 255, 255, 0.08); color: #c9d8f3; border: 1px solid rgba(255, 255, 255, 0.12); }
.mt-chip.on { background: #2fbf71; border-color: #8ff0b4; color: #052e18; font-weight: 700; }
.mt-chip.skip { opacity: 0.45; }
#win-mentor .mt-in { flex: 1; min-width: 0; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid rgba(150, 190, 255, 0.45); background: rgba(0, 0, 0, 0.3); color: #fff; font: inherit; }
#win-mentor .mt-ask .mt-row { margin-top: 6px; }
#win-mentor .mt-sure { background: #c0392b !important; color: #fff !important; border-color: #ff8a7a !important; }
.mt-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.mt-tb th { text-align: left; font-weight: 600; color: #a9c2ec; padding: 3px 4px; border-bottom: 1px solid rgba(150, 190, 255, 0.25); }
.mt-tb td { padding: 4px; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mt-tb td:first-child { white-space: nowrap; }
.mt-rw { display: inline-flex; align-items: center; gap: 3px; margin: 1px 3px 1px 0; padding: 1px 6px 1px 2px; border-radius: 9px; background: rgba(0, 0, 0, 0.28); font-size: 11.5px; }
.mt-rw b { color: #ffe08a; font-weight: 700; }
.mt-rz { padding-left: 3px; color: #ffe08a; font-weight: 700; }
.mt-rz i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 10px; color: #6b4300; background: radial-gradient(circle at 40% 35%, #fff2b8, #f2b632); }
html.mhud .win.win-mentor { --wk: max(var(--uik, 1), 0.85); transform: scale(max(var(--uik, 1), 0.85)); max-height: calc((100% - 88px - var(--mh-wb)) / max(var(--uik, 1), 0.85)) !important; }
