/* PLO modules (js/plo.js) */
.game.classic .window.dlg.huge { width: min(860px, calc(100vw - 16px)); }
.plo-body { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.plo-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plo-cols { display: grid; grid-template-columns: minmax(180px, 2fr) 3fr; gap: 8px; min-height: 0; }
@media (max-width: 600px) { .plo-cols { grid-template-columns: 1fr; } }
.plo-list { display: flex; flex-direction: column; gap: 3px; max-height: 60vh; overflow: auto; padding-right: 2px; }
.plo-info { display: flex; flex-direction: column; gap: 5px; max-height: 60vh; overflow: auto; }
.plo-info h4, .plo-info h5 { margin: 4px 0 0; color: var(--accent, #e3bd5c); }
.plo-entry { height: auto !important; min-height: 44px; flex: none; display: flex !important; align-items: center; gap: 6px; text-align: left; padding: 3px 5px !important; }
.plo-entry span { display: flex; flex-direction: column; min-width: 0; }
.plo-entry small { opacity: 0.8; font-size: 11px; }
.plo-entry.sel { outline: 1px solid var(--accent, #e3bd5c); background: rgba(227, 189, 92, 0.12) !important; }
.plo-entry.on b::after { content: ' ●'; color: #4fd16a; }
.plo-thumb { width: 40px; height: 40px; object-fit: cover; flex: none; border-radius: 3px; }
.plo-banner { width: 100%; max-height: 140px; object-fit: cover; border-radius: 4px; }
.plo-icon { image-rendering: pixelated; background: rgba(0, 0, 0, 0.25); border-radius: 3px; }
.plo-items, .plo-mobs { display: flex; flex-wrap: wrap; gap: 3px; }
.plo-bar { height: 8px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 3px; overflow: hidden; }
.plo-bar-fill { height: 100%; background: linear-gradient(90deg, #d98b1f, #f3cf5a); }
.plo-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; }
.plo-tracker, .plo-hud { position: fixed; right: 220px; top: 70px; z-index: 40; width: 220px; background: rgba(15, 12, 9, 0.82); border: 1px solid rgba(227, 189, 92, 0.35); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #e6dfcf; }
.plo-hud { top: 250px; }
.plo-tracker-head { color: var(--accent, #e3bd5c); font-weight: 600; letter-spacing: 0.04em; }
.plo-track { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.plo-track > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.plo-body .done, .plo-hud .done { color: #7fe08f; }
.plo-toast { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); z-index: 90; background: rgba(15, 12, 9, 0.92); border: 1px solid rgba(227, 189, 92, 0.6); color: #ffe9b0; padding: 8px 16px; border-radius: 6px; font-size: 13px; transition: opacity 0.6s; pointer-events: none; }
.plo-toast.gold { border-color: #f3cf5a; }
.plo-toast.out { opacity: 0; }
.plo-body button.on { border-color: var(--accent, #e3bd5c) !important; color: #ffe9b0; }
.plo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.plo-card { display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; background: rgba(0, 0, 0, 0.2); }
.plo-table { width: 100%; border-collapse: collapse; }
.plo-table td, .plo-table th { padding: 2px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
.plo-pill { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 40; background: rgba(15, 12, 9, 0.85); border: 1px solid rgba(227, 189, 92, 0.4); border-radius: 12px; padding: 3px 12px; color: #ffe9b0; font-size: 12px; }
.plo-tip { position: fixed; z-index: 120; max-width: 260px; background: rgba(12, 10, 8, 0.95); border: 1px solid rgba(227, 189, 92, 0.5); border-radius: 5px; padding: 6px 8px; font-size: 12px; color: #e6dfcf; pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.plo-tip .note { opacity: 0.75; }
.plo-tip-stat { color: #8fd0ff; }
.plo-body .plo-row select { width: auto; }
#tracker { display: none !important; } /* PLO: missions live in PLO > Missions */

/* plo-more.js: toasts, event bar, logout block, scouter, running quest, reward choice */
#plo-toasts { position: fixed; right: 16px; top: 80px; z-index: 95; display: flex; flex-direction: column; gap: 6px; pointer-events: none; max-width: min(320px, calc(100vw - 32px)); }
.plo-toast2 { background: rgba(15, 12, 9, 0.94); border: 1px solid; border-left-width: 4px; color: #f0e6cc; padding: 8px 12px; border-radius: 6px; font-size: 13px; transition: opacity 0.6s, transform 0.6s; }
.plo-toast2 b { display: block; margin-bottom: 2px; }
.plo-toast2.out { opacity: 0; transform: translateX(20px); }
#plo-pzlock { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 70; background: rgba(60, 10, 10, 0.85); border: 1px solid #a33; color: #ffd0c0; padding: 3px 10px; border-radius: 4px; font-size: 12px; pointer-events: none; }
#plo-run { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: 70; background: rgba(15, 12, 9, 0.9); border: 1px solid rgba(227, 189, 92, 0.6); color: #ffe9b0; padding: 6px 16px; border-radius: 6px; font-size: 14px; font-weight: bold; text-align: center; pointer-events: none; }
#plo-run { top: auto; bottom: 150px; min-width: 240px; }
#plo-run .hearts { color: #ff5a5a; font-size: 16px; }
#plo-run .plo-bar { margin-top: 4px; }
#plo-run .big { font-size: 22px; margin-top: 4px; color: #fff; }
#plo-scouter { position: fixed; right: 16px; top: 56px; z-index: 70; background: rgba(10, 40, 10, 0.85); border: 1px solid #5c5; color: #bfffbf; padding: 4px 10px; border-radius: 4px; font: bold 12px monospace; pointer-events: none; }
.plo-pick { cursor: pointer; }
.plo-pick.on { border-color: #e3bd5c; background: rgba(227, 189, 92, 0.15); }
.plo-row .grow { flex: 1; }
.plo-row .plo-bar { flex: 1; min-width: 80px; }
.plo-confirm { color: #ffd38a; }
.plo-rl-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; margin: 6px 0; }
.plo-body button.plo-rl { white-space: pre; font-size: 11px; padding: 4px 2px; min-height: 30px; }
.plo-body button.plo-rl.red { background: #7a1b1b; }
.plo-body button.plo-rl.black { background: #1b1b1b; }
.plo-body button.plo-rl.green { background: #1b5a1b; }
.plo-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 4px; }
.plo-day.today { border-color: #e3bd5c; box-shadow: 0 0 6px rgba(227, 189, 92, 0.6); }
.plo-day.taken { opacity: 0.6; }
.plo-day .ok { color: #6fe06f; font-weight: bold; }
.plo-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 3px; }
.plo-body button.plo-emoji { padding: 2px; display: flex; align-items: center; justify-content: center; }
.plo-emoji img { width: 28px; height: 28px; image-rendering: pixelated; }

/* the PLO item card (plo-tooltip.js, OTClient item_tooltip) */
.plo-card-tip { min-width: 158px; max-width: 360px; font-size: 12px; line-height: 15px; color: #fff; }
.plo-card-tip .tt { text-align: center; background: rgba(0, 0, 0, 0.4); padding: 3px 6px; font-weight: bold; }
.plo-card-tip .tl { text-align: center; }
.plo-card-tip .tl.wrap { white-space: normal; max-width: 300px; margin: 0 auto; }
.plo-card-tip .tpic { display: flex; justify-content: center; margin: 4px 0; }
.plo-card-tip .ts { display: flex; justify-content: space-between; gap: 18px; }
.plo-card-tip .tsep { height: 1px; background: rgba(227, 189, 92, 0.35); margin: 4px 0 2px; }

/* encyclopedia (plo-ency.js) */
.enc-cols { display: grid; grid-template-columns: 180px minmax(220px, 1fr) minmax(260px, 1.2fr); gap: 8px; min-height: 420px; }
.enc-cols2 { display: grid; grid-template-columns: 220px 1fr; gap: 8px; min-height: 420px; }
.enc-cats, .enc-list, .enc-det, .enc-art { overflow-y: auto; max-height: 62vh; }
.enc-row { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; }
.enc-row small { display: block; color: #9a9a9a; }
.enc-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.enc-sec { color: #e09038; font-weight: bold; margin: 8px 0 3px; border-bottom: 1px solid rgba(224, 144, 56, 0.3); }
.enc-stat { display: flex; justify-content: space-between; padding: 1px 6px; border-radius: 3px; }
.enc-p { margin: 3px 0; display: block; }
.enc-loot { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 4px; }
.enc-lootcell { display: flex; flex-direction: column; align-items: center; cursor: pointer; font-size: 11px; }
.enc-events { display: flex; flex-direction: column; gap: 6px; max-height: 64vh; overflow-y: auto; }
.enc-status { font-weight: bold; }
.enc-cmd { display: flex; gap: 10px; margin: 2px 0; }
.enc-cmd code { color: #ffd38a; min-width: 120px; }
.enc-tip { background: rgba(224, 144, 56, 0.15); border-left: 3px solid #e09038; padding: 4px 8px; margin: 4px 0; }
@media (max-width: 760px) { .enc-cols, .enc-cols2 { grid-template-columns: 1fr; } }
.plo-avatar { width: 72px; height: 72px; object-fit: contain; }
.plo-paperdoll { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; align-content: start; }
.plo-slot { width: 40px; height: 40px; border: 1px solid rgba(227, 189, 92, 0.3); background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; }
.plo-slot.rar1 { border-color: #57e116; } .plo-slot.rar2 { border-color: #1fe0ff; } .plo-slot.rar3 { border-color: #772ba2; } .plo-slot.rar4 { border-color: #f69605; } .plo-slot.rar5 { border-color: #db1417; }
.plo-profile-stats { max-height: 46vh; overflow-y: auto; }
.plo-ach { display: flex; flex-wrap: wrap; gap: 4px; }
.plo-achicon { width: 36px; height: 36px; }
.plo-badge { display: inline-block; border-radius: 10px; padding: 1px 10px; font-size: 12px; margin-top: 3px; }
