/* Reuses the game's dark instruments and walnut/brass panel treatment. */
.pp-open { margin-top: 7px; font-size: 11px; padding: 5px 10px; }
#ppTitleOpen { display: block; width: 100%; }
.pp-window { width: min(700px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 18px; overflow: hidden; color: var(--helm-ink); }
.pp-window[open] { display: flex; flex-direction: column; gap: 10px; }
.pp-window::backdrop { background: #060d0db8; }
.pp-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pp-heading small { color: var(--helm-brass); letter-spacing: .18em; font-size: 10px; }
.pp-heading h2 { font-family: Georgia, serif; font-size: 23px; margin: 4px 0; }
#ppClose { flex-shrink: 0; width: 32px; height: 32px; padding: 0; font-size: 22px; }
.pp-home { padding: 9px 12px; border: 1px solid #8a795755; border-radius: 7px; background: var(--helm-inset); }
.pp-home label { display: block; color: var(--helm-brass); font-size: 11px; margin-bottom: 5px; }
.pp-home div { display: flex; gap: 7px; }
.pp-home select { flex: 1; min-width: 0; width: auto; font-size: 12px; padding: 6px; }
.pp-home button { font-size: 11px; white-space: nowrap; padding: 5px 9px; }
.pp-home small, .pp-note, .pp-window footer { color: var(--helm-muted); font-size: 11px; line-height: 1.5; }
.pp-home small { display: block; margin-top: 6px; }
#ppStatus { font-size: 12px; color: var(--helm-brass); margin: 0; }
#ppStatus:empty { display: none; }
.pp-modes, .pp-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.pp-modes button, .pp-tabs button { padding: 6px 9px; font-size: 11px; background: #202e26; color: var(--helm-muted); box-shadow: none; }
.pp-modes button[aria-pressed="true"], .pp-tabs button[aria-current="page"] { background: #cfad70; color: #142019; border-color: #e5c994; }
#ppSince { margin-left: auto; align-self: center; color: var(--helm-muted); font-size: 10px; }
#ppContent { min-height: 90px; overflow: auto; overscroll-behavior: contain; padding: 2px 6px 3px 1px; font-size: 12px; line-height: 1.5; }
#ppContent:focus-visible { outline: 1px solid var(--helm-brass); outline-offset: -1px; }
#ppContent h3 { font-family: Georgia, serif; color: var(--helm-brass); font-size: 16px; margin: 17px 0 8px; }
.pp-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.pp-card { background: #101b17; border: 1px solid #8a79574a; border-radius: 7px; padding: 12px; }
.pp-card span, .pp-card small { display: block; color: var(--helm-muted); font-size: 11px; }
.pp-card strong { display: block; font-size: 25px; color: var(--helm-brass); font-variant-numeric: tabular-nums; }
.pp-card small { font-size: 10px; margin-top: 3px; }
.pp-facts { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; margin: 0; }
.pp-facts dt { color: var(--helm-muted); }.pp-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pp-table-wrap { overflow-x: auto; }
#ppContent table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; }
#ppContent th { color: var(--helm-brass); font-weight: 600; }
#ppContent td, #ppContent th { padding: 8px 7px; border-bottom: 1px solid #b496632b; }
#ppContent td small { display: block; color: var(--helm-muted); }
.pp-current { padding: 10px; background: #d3af7014; border-left: 3px solid var(--helm-brass); }
.pp-journal, .pp-visits { list-style: none; padding: 0; margin: 0; }
.pp-journal li { padding: 10px 0; border-bottom: 1px solid #b496632b; }
.pp-journal time { float: right; font-size: 10px; color: var(--helm-muted); }
.pp-journal span, .pp-journal small { display: block; color: var(--helm-muted); }
.pp-badges { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.pp-badge { display: flex; gap: 10px; border: 1px solid #8a79574a; border-radius: 7px; padding: 11px; background: #111b17; }
.pp-badge>span { color: #7d877a; font-size: 24px; }.pp-badge>div { min-width: 0; flex: 1; }
#ppContent .pp-badge h3 { margin: 0; font-family: inherit; color: var(--helm-ink); font-size: 12px; }
.pp-badge p { font-size: 10px; color: var(--helm-muted); margin: 5px 0; }.pp-badge small { color: var(--helm-muted); font-size: 10px; }
.pp-badge progress { width: 100%; height: 5px; display: block; margin: 9px 0 5px; accent-color: var(--helm-brass); }
.pp-earned { border-color: #d3af7080; }.pp-earned>span, .pp-earned small { color: var(--helm-brass); }
.pp-visits li { display: flex; gap: 13px; padding: 11px; border-bottom: 1px solid #b496632b; }
.pp-visits li>span { font-size: 22px; color: var(--helm-muted); }.pp-visits small { display: block; color: var(--helm-muted); font-size: 11px; }
.pp-visits .pp-visited>span { color: var(--helm-brass); }.pp-empty { color: var(--helm-muted); padding: 16px 0; }
.pp-window footer { border-top: 1px solid #b4966333; padding-top: 7px; font-size: 10px; }
@media(max-width: 550px) { .pp-window { padding: 12px; gap: 8px; }.pp-heading h2 { font-size: 19px; }.pp-badges { grid-template-columns: 1fr; }.pp-card strong { font-size: 22px; }#ppSince { width: 100%; margin: 3px 0; }.pp-facts { font-size: 11px; gap: 6px; } }

.pp-window footer { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#ppSignOut { flex-shrink: 0; margin-left: auto; font-size: 11px; padding: 6px 10px; }
