/* The journal, backpack and location windows share the game client's brass and slate trim. */
.rp-side, .rp-dialog-layer {
  --rp-ink: #e5dfcd;
  --rp-muted: #a9a591;
  --rp-gold: #f2cc7a;
  --rp-green: #abd28e;
  --rp-stroke: #565346;
  --rp-face: #34342e;
  color: var(--rp-ink);
  font: 13px/1.4 "Trebuchet MS", Verdana, sans-serif;
  text-align: left;
}
.rp-side *, .rp-dialog-layer * { box-sizing: border-box; }
.rp-side { display:flex; flex-direction:column; min-height:0; height:100%; }
.rp-side button, .rp-dialog-layer button, .rp-dialog-layer input, .rp-dialog-layer select { font:inherit; }
.rp-side button, .rp-dialog-layer button { color:inherit; cursor:pointer; }
.rp-side button:focus-visible, .rp-dialog-layer :focus-visible { outline:2px solid var(--rp-gold); outline-offset:-2px; }
.rp-side h2, .rp-dialog-layer h2, .rp-dialog-layer h3, .rp-side p, .rp-dialog-layer p { margin:0; }
.rp-side svg, .rp-dialog-layer svg { flex:none; overflow:visible; vertical-align:middle; shape-rendering:crispEdges; }
.rp-head { display:flex; gap:8px; align-items:center; justify-content:space-between; flex:none; margin:0 0 9px; min-height:24px; }
.rp-head h2 { font: bold 18px/1.15 Georgia, 'Times New Roman', serif; letter-spacing:.15px; color:#f2d698; text-shadow:1px 1px 1px #111; }
.rp-count,.rp-mono,.rp-kicker { font: 10px/1.4 'Courier New',monospace; font-variant-numeric:tabular-nums; }
.rp-count { color:#cec4a6; border:1px solid #555348; background:#292a25; border-radius:2px; padding:2px 5px; white-space:nowrap; }
.rp-scroll { min-height:0; overflow:auto; flex:1; }
.rp-scroll,.rp-body { scrollbar-color:#70664f #2b2c26; scrollbar-width:thin; }
.rp-bag { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(7,minmax(0,1fr)); flex:1; min-height:0; gap:3px; }
.rp-slot { position:relative; display:grid; place-items:center; min-width:0; min-height:0; border:1px solid #171915; border-radius:2px; outline:1px solid #514d40; outline-offset:-2px; background:linear-gradient(138deg,#3a392f,#34342d 56%,#30312b); box-shadow: inset 2px 2px 0 #242620, inset -1px -1px 0 #5a5546; }
button.rp-slot { padding:1px; transition:background .12s; }
button.rp-slot:hover,button.rp-slot:focus-visible { background:linear-gradient(138deg,#56513d,#434235); outline:1px solid #b3995f; outline-offset:-2px; }
.rp-slot svg { width:min(68%,32px); height:min(85%,31px); filter:drop-shadow(1px 2px 0 #1c1d18); }
.rp-slot .rp-qty { position:absolute; top:1px; left:4px; color:#ffdd78; font:700 10px/1.3 'Courier New',monospace; text-shadow:1px 1px #17180d; }
.rp-coinbar { margin-top:9px; padding:7px 0 0; border-top:1px solid var(--rp-stroke); display:flex; align-items:center; justify-content:space-between; color:#bdb8a4; font-size:11px; flex:none; }
.rp-coinbar b,.rp-price { display:inline-flex; align-items:center; gap:5px; color:var(--rp-gold); font:700 12px 'Courier New',monospace; }
.rp-list { display:grid; align-content:start; gap:5px; }
.rp-row,.rp-equip { text-align:left; border:1px solid #555247; box-shadow:inset 0 1px #45463c; border-radius:2px; background:linear-gradient(120deg,#3c3d34,#33352e); }
.rp-row:hover,.rp-equip:hover { border-color:#8c7c55; background:#424337; }
.rp-row { display:flex; gap:8px; align-items:center; width:100%; padding:8px; }
.rp-row-copy { display:grid; flex:1; min-width:0; gap:2px; }
.rp-row strong,.rp-equip strong { color:#f0ead7; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.rp-row small,.rp-equip small { color:var(--rp-muted); font-size:10px; }
.rp-trail { color:#aa9e7f; font-size:15px; }
.rp-skill-book { container-type:size; overscroll-behavior:contain; flex:1 1 0; min-width:0; }
.rp-skills {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:clamp(36px,calc((100cqh - 8px)/5),61px);
  gap:2px; align-content:start;
}
.rp-skill,.rp-skill-readout {
  min-width:0; border:1px solid #272921; border-radius:1px;
  background:linear-gradient(138deg,#4b4c3e,#383b31 74%); box-shadow:inset 1px 1px #78735a,inset -1px -1px #303026;
}
.rp-skill {
  display:grid; grid-template-columns:auto auto; grid-template-rows:minmax(0,1fr) auto;
  column-gap:3px; align-items:center; justify-content:center; justify-items:center; padding:2px 1px;
}
.rp-skill svg { width:clamp(17px,9cqh,27px); height:clamp(17px,9cqh,27px); max-height:100%; filter:drop-shadow(1px 1px #29291d); }
.rp-skill strong { color:#ffdc77; font:bold clamp(13px,6.2cqh,18px)/1 var(--mono); text-shadow:1px 1px #201d13; font-variant-numeric:tabular-nums; }
.rp-skill small { grid-column:1/-1; color:#e0d9bd; font:10px/1.15 var(--sans); white-space:nowrap; }
.rp-skill:hover,.rp-skill:focus-visible { background:linear-gradient(138deg,#615f47,#454738); box-shadow:inset 1px 1px #c3ac72,inset -1px -1px #494635; }
.rp-skill-readout { grid-column:span 2; display:flex; flex-direction:column; justify-content:center; padding:3px 9px; background:#30352b; box-shadow:inset 1px 1px #262b23,inset -1px -1px #5d604c; }
.rp-skill-readout small { color:#cecab2; font:10px/1.3 var(--sans); }
.rp-skill-readout b { color:#efd599; font:700 12px/1.4 var(--mono); white-space:nowrap; }
@container (max-height:155px) and (min-width:235px) {
  .rp-skills { grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:clamp(32px,calc((100cqh - 6px)/4),38px); }
  .rp-skill-readout { grid-column:span 3; }
}
.rp-equip { display:flex; gap:9px; align-items:center; padding:8px; width:100%; }
.rp-equip span,.rp-equip small { display:block; }
.rp-side-foot { flex:none; padding-top:8px; }
.rp-empty { padding:10px 1px; color:var(--rp-muted); font-size:12px; }
.rp-dialog-layer { position:absolute; z-index:12; inset:0; display:grid; place-items:center; background:#151a1766; pointer-events:auto; padding:10px; }
.rp-dialog-layer:empty,.rp-dialog-layer[hidden] { display:none!important; }
.rp-window { position:relative; display:flex; flex-direction:column; width:min(405px,100%); max-height:100%; min-height:0; overflow:hidden; border:2px solid #1c211a; outline:1px solid #827451; border-radius:3px; background:linear-gradient(118deg,#3c3e33,#33352e 55%,#30332b); box-shadow:inset 0 0 0 1px #69654d,0 7px 20px #10120ba6; }
.rp-window::after { content:''; position:absolute; pointer-events:none; inset:4px; border:1px solid #706b5255; }
.rp-window-top { flex:none; display:flex; align-items:center; gap:10px; padding:12px 14px 10px; background:linear-gradient(#46473a,#37392f); border-bottom:1px solid #1e211a; box-shadow:0 1px #68644b; }
.rp-window-top > svg { filter:drop-shadow(1px 2px #24231b); }
.rp-window-top h2 { margin:1px 0 0; color:#f1d799; font:700 20px/1.15 Georgia,serif; text-shadow:1px 2px #24231d; }
.rp-kicker { color:#b5ad90; text-transform:uppercase; letter-spacing:1.1px; }
.rp-close { align-self:flex-start; margin:0 0 0 auto; line-height:20px!important; color:#cbbd9e!important; font-size:19px!important; background:#313429; border:1px solid #625e48; border-radius:2px; width:24px; height:24px; padding:0; }
.rp-close:hover { color:#fff1cf!important; }
.rp-body { overflow:auto; padding:14px; min-height:0; }
.rp-body h3 { margin:15px 0 6px; font:700 15px Georgia,serif; color:var(--rp-gold); }
.rp-body > p { margin-bottom:12px; color:#d6d3c1; }
.rp-button { display:inline-flex; gap:6px; align-items:center; justify-content:center; min-height:31px; padding:5px 10px; font-weight:600!important; border:1px solid #756b4d; background:linear-gradient(#535441,#404333); box-shadow:inset 0 1px #75765f,0 1px #1f231c; border-radius:2px; }
.rp-button:hover { filter:brightness(1.14); }
.rp-button.primary { color:#28251a; background:linear-gradient(#d8bb79,#b49a5f); box-shadow:inset 0 1px #edd79a,0 1px #202118; border-color:#746241; }
.rp-button.danger { background:linear-gradient(#685044,#4f4136); border-color:#8d6b57; }
.rp-button:disabled { opacity:.55; cursor:default; filter:none; }
.rp-wide { width:100%; }
.rp-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:13px; }
.rp-body .rp-note { margin-top:10px; margin-bottom:0; color:var(--rp-muted); font-size:11px; }
.rp-sub,.rp-tag { color:#bab69e; font-size:11px; }
.rp-tag { color:var(--rp-gold); font:10px 'Courier New',monospace; text-transform:uppercase; letter-spacing:.4px; }
.rp-tag.good,.rp-good { color:var(--rp-green); }
.rp-form { display:grid; gap:10px; }
.rp-form label { display:grid; gap:4px; color:#d5d3bf; font-size:12px; }
.rp-form input,.rp-form select { width:100%; min-width:0; border:1px solid #65644e; border-radius:2px; background:#262a23; color:#efe9d7; padding:8px; }
.rp-form input::placeholder { color:#999a88; }
.rp-form .rp-actions { margin-top:2px; }
.rp-error { margin-top:8px; padding:7px 9px; color:#f4c2a3; font-size:12px; border:1px solid #82644b; background:#47392f; }
.rp-panes { display:flex; gap:5px; margin:0 0 10px; }
.rp-panes button { flex:1; padding:5px 8px; border:1px solid #625f48; background:#2d3129; }
.rp-panes button[aria-pressed=true] { color:var(--rp-gold); border-color:#998254; background:#484737; }
.rp-trade { display:grid; gap:4px; }
.rp-trade-row { display:flex; gap:8px; align-items:center; padding:6px 7px; border:1px solid #555645; background:#32362e; border-radius:2px; }
.rp-trade-copy { flex:1; min-width:0; }
.rp-trade-copy strong,.rp-trade-copy small { display:block; }
.rp-trade-copy strong { font-size:12px; color:#e6e0cd; }
.rp-trade-copy small { color:#b0b19c; font-size:10px; }
.rp-trade-row .rp-button { padding:3px 7px; min-height:24px; font-size:11px; }
.rp-ledger { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding:8px 10px; margin:0 0 12px; background:#2c3028; border:1px solid #575a48; }
.rp-ledger span { display:inline-flex; align-items:center; gap:5px; color:#d6d2ba; font-size:11px; }
.rp-ledger b { color:var(--rp-gold); font-weight:600; }
.rp-progress { width:100%; height:7px; background:#22271e; border:1px solid #62624a; box-shadow:inset 0 1px #161b12; }
.rp-progress > i { display:block; height:100%; background:linear-gradient(#a9bd72,#798b4e); }
.rp-progress.rp-red > i { background:linear-gradient(#c38564,#995d48); }
.rp-track { display:flex; align-items:center; justify-content:space-between; gap:7px; margin:8px 0 4px; font:11px 'Courier New',monospace; color:#cbc9b5; }
.rp-stages { list-style:none; margin:10px 0; padding:0; display:grid; }
.rp-stages li { display:flex; gap:8px; padding:5px 0; color:#aaa995; }
.rp-stages li > span:first-child { width:17px; flex:none; color:#969780; text-align:center; }
.rp-stages li.current,.rp-stages li.current > span:first-child { color:var(--rp-gold); }
.rp-stages li.done,.rp-stages li.done > span:first-child { color:var(--rp-green); }
.rp-hero-item { display:flex; align-items:center; gap:13px; margin:0 0 13px; }
.rp-hero-icon { width:56px; height:56px; flex:none; display:grid; place-items:center; border:1px solid #70694e; box-shadow:inset 1px 2px #25291e; background:#303429; }
.rp-hero-item p { font-size:13px; color:#d8d3c0; }
.rp-try-on { width:min(36%,145px); height:clamp(88px,21dvh,145px); flex:none; border:1px solid #827c5c; background:#414d3e; }
.rp-dialog-layer.rp-encounter { background:transparent; place-items:end center; pointer-events:none; }
.rp-encounter .rp-window { pointer-events:auto; width:min(365px,100%); }
.rp-encounter .rp-window-top { padding:8px 12px; }
.rp-encounter .rp-window-top h2 { font-size:16px; }
.rp-encounter .rp-body { padding:7px 13px 11px; }
.rp-encounter .rp-actions { margin-top:8px; }
@media (max-height:700px) { .rp-head { margin-bottom:5px; }.rp-coinbar { margin-top:5px; padding-top:4px; }.rp-bag { gap:2px; } }
@media (max-width:620px) { .rp-count { font-size:9px; }.rp-head h2 { font-size:16px; }.rp-window-top { padding:9px 11px; }.rp-body { padding:11px; } }
.rp-journal { display:grid; gap:6px; padding:0; margin:0; list-style:none; }
.rp-journal li { display:grid; gap:2px; border-left:2px solid #7d7858; padding-left:8px; overflow-wrap:anywhere; }
.rp-journal small { color:var(--rp-muted); font-size:10px; }
.rp-section-label { margin:9px 0 1px; color:var(--rp-gold); font:700 14px/1.25 Georgia,serif; }
.rp-dialog-layer .rp-section-label { margin:12px 0 2px; }
.rp-speaker { margin:0 0 10px; padding:7px 10px; border-left:2px solid #bba368; background:#30342a; }
.rp-speaker b { display:block; margin-bottom:2px; font-size:11px; color:var(--rp-gold); }
.rp-combat-loot { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; }
.rp-combat-loot span { display:inline-flex; align-items:center; gap:3px; color:var(--rp-ink); font-size:11px; }
.rp-combat-loot .rp-cosmetic { color:var(--rp-gold); font-weight:bold; }

/* Character books use inset pages and latched brass tabs, like the client frame. */
.rp-filters { display:flex; flex:none; align-items:stretch; margin:0 0 8px; border:1px solid #22261b; background:#282b23; box-shadow:0 1px #716b54; }
.rp-filters button { flex:1; min-width:0; border:0; border-right:1px solid #27291e; padding:5px 2px; border-radius:0; background:linear-gradient(#484a39,#3c3e31); box-shadow:inset 0 1px #66664e; color:#c6c4ad; font:600 11px/1.2 'Trebuchet MS',sans-serif; }
.rp-filters button:last-child { border-right:0; }
.rp-filters button[aria-pressed=true] { color:#f7df9d; box-shadow:inset 0 2px #c5a660,inset 1px 0 #746c4a; background:linear-gradient(#55513a,#454334); }
.rp-filters button:hover { filter:brightness(1.14); }
/* The journal has one register. On a very short rail the entire page scrolls. */
.rp-side:has(.rp-quest-page) { container:questbook / size; }
.rp-quest-page { min-width:0; --quest-new:#ed9a87; --quest-started:#f1ca70; --quest-done:#a9d19c; }
.rp-scroll.rp-quest-page { overflow-x:hidden; }
.rp-guide { padding:7px 9px 8px; margin:0 0 6px; border:1px solid #8a7549; border-top:2px solid #b49c60; background:linear-gradient(120deg,#484631,#383c30 80%); box-shadow:inset 0 0 0 1px #2e3226; overflow-wrap:anywhere; }
.rp-guide-top,.rp-guide-top > span { display:flex; align-items:center; gap:4px; }
.rp-guide-top { justify-content:space-between; gap:5px; font:700 9px/1.25 'Trebuchet MS',sans-serif; color:#d7c182; text-transform:uppercase; letter-spacing:.08em; }
.rp-guide-top small { flex-shrink:0; color:#c8c6ad; font:10px/1.2 'Trebuchet MS',sans-serif; letter-spacing:0; text-transform:none; }
.rp-guide-heading { display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px; align-items:center; margin:6px 0 5px; }
.rp-guide-emblem { position:relative; width:36px; height:36px; display:grid; place-items:center; overflow:hidden; background:#2c3329; border:1px solid #8a7c55; box-shadow:inset 0 0 0 1px #26291f; }
.rp-guide-emblem canvas { position:absolute; inset:0; width:100%; height:100%; image-rendering:pixelated; }
.rp-guide-heading small { display:block; margin-bottom:1px; color:#c3c1a6; font:10px/1.25 'Trebuchet MS',sans-serif; }
.rp-guide .rp-guide-heading h3 { margin:0; font:bold 15px/1.1 Georgia,serif; color:#ffe2a0; }
.rp-guide-step { color:#f2ead3; font:12px/1.3 'Trebuchet MS',sans-serif; }
.rp-guide-step strong { font-weight:600; }
.rp-guide p { margin:2px 0 0; color:#d2d0ba; font:11px/1.35 'Trebuchet MS',sans-serif; }
.rp-guide p.rp-guide-tip { margin-top:5px; }
.rp-guide-tally { display:inline-block; margin-left:5px; color:#e2c887; font:10px/1.4 'Trebuchet MS',sans-serif; }
.rp-guide .rp-guide-action { margin-top:6px; min-height:22px; max-width:100%; padding:2px 8px; border-color:#89774e; color:#f6dfaa; font:600 11px/1.25 'Trebuchet MS',sans-serif; }
.rp-guide-short-tip { display:none; }
.rp-guide-idle { display:flex; align-items:center; gap:8px; }
.rp-guide-idle b { color:#e9d292; font:600 13px Georgia,serif; }
.rp-register { min-width:0; }
.rp-quest-key { display:flex; flex-wrap:wrap; gap:2px 10px; margin:1px 0 5px; font:10px/1.3 'Trebuchet MS',sans-serif; }
.rp-quest-key .available,.rp-quest-page button.rp-quest-line.available,.rp-quest-page button.rp-quest-line.locked { color:var(--quest-new); }
.rp-quest-key .active,.rp-quest-page button.rp-quest-line.active { color:var(--quest-started); }
.rp-quest-key .complete,.rp-quest-page button.rp-quest-line.complete { color:var(--quest-done); }
.rp-register-group { margin-bottom:6px; }
.rp-register .rp-register-group h3 { display:flex; gap:6px; align-items:center; margin:2px 0; color:#bebda5; font:600 10px/1.4 'Trebuchet MS',sans-serif; }
.rp-register-group h3::after { content:''; flex:1; height:1px; background:#575945; }
.rp-quest-page button.rp-quest-line { width:100%; min-width:0; min-height:20px; padding:2px 4px; display:flex; align-items:center; gap:5px; border:0; box-shadow:none; border-radius:0; background:transparent; text-align:left; font:13px/1.17 Georgia,serif; }
.rp-quest-line i { flex:none; width:10px; text-align:center; font:10px/1 'Trebuchet MS',sans-serif; }
.rp-quest-line span { min-width:0; overflow-wrap:anywhere; }
.rp-quest-line svg { margin-left:auto; }
.rp-quest-page button.rp-quest-line.tracked { background:#484936; }
.rp-quest-page button.rp-quest-line:hover,.rp-quest-page button.rp-quest-line:focus-visible { background:#4d503e; }
.rp-tracked-note,.rp-body .rp-track-quest { display:inline-flex; align-items:center; gap:5px; margin:5px 0; color:#ead197; font:11px/1.35 'Trebuchet MS',sans-serif; }
.rp-body .rp-track-quest { min-height:25px; padding:3px 8px; }
.rp-step-hint { display:block; margin-top:2px; color:#c9c7ae; }
@container questbook (max-height:210px) {
  .rp-guide { padding:4px 6px; margin-bottom:4px; }
  .rp-guide-heading { gap:5px; margin:3px 0; }
  .rp-guide-emblem { width:27px; height:27px; }
  .rp-guide .rp-guide-heading h3 { font-size:13px; }
  .rp-guide-step { font-size:11px; }
  .rp-guide-tip { display:none; }
  .rp-guide-tools { margin-top:3px; display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 8px; }
  .rp-guide .rp-guide-action { margin:0; }
  .rp-guide-short-tip { display:block; }
  .rp-guide-short-tip summary { color:#ddc995; cursor:pointer; font:11px/1.4 'Trebuchet MS',sans-serif; }
  .rp-guide-short-tip[open] { flex-basis:100%; }
  .rp-quest-page button.rp-quest-line { min-height:19px; }
}
@container questbook (min-height:330px) {
  .rp-scroll.rp-quest-page { display:flex; flex-direction:column; overflow:hidden; }
  .rp-quest-page .rp-guide { flex:none; max-height:62%; overflow:auto; }
  .rp-quest-page .rp-register { min-height:0; overflow:auto; scrollbar-color:#70664f #2b2c26; scrollbar-width:thin; }
}
.rp-work-row { width:100%; display:flex; align-items:flex-start; gap:8px; padding:8px 6px; border:0; border-bottom:1px solid #4e5242; text-align:left; background:linear-gradient(105deg,#393e33,#33382f); }
.rp-work-row > i { margin-top:5px; width:5px; height:5px; flex:none; background:#a39b77; transform:rotate(45deg); }
.rp-work-row > span,.rp-session-entry > span { display:grid; min-width:0; gap:3px; flex:1; }
.rp-work-row b,.rp-session-entry strong { color:#ece7d5; font-size:12px; font-weight:600; line-height:1.28; overflow-wrap:anywhere; }
.rp-work-row small,.rp-session-entry small { color:#adbaa0; font-size:10px; }
.rp-work-row:hover { background:#43483a; }
.rp-today { color:#bdbea5; font-size:10px; padding:2px 0 6px; }
.rp-pay-receipt { width:100%; display:flex; align-items:center; gap:6px; margin-bottom:6px; padding:4px 7px; text-align:left; background:#323a2c; border-left:2px solid #a18e5d; }
.rp-pay-receipt > span { display:grid; gap:2px; }
.rp-pay-receipt small { font-size:10px; color:#c4c6b2; }
.rp-pay-receipt b { font:700 11px var(--mono); color:#ecd191; }
.rp-pay-receipt i { margin-left:auto; color:#ddc785; }
.rp-focus-card { width:100%; display:grid; gap:4px; padding:9px; margin-bottom:8px; border:1px solid #78795b; border-left:3px solid #a2b982; background:linear-gradient(120deg,#424d3b,#353e32); color:var(--rp-ink); text-align:left; }
.rp-focus-line { display:flex; align-items:center; gap:5px; color:#c0d49f; font:10px/1.4 'Courier New',monospace; }
.rp-focus-line b { margin-left:auto; font-size:12px; }
.rp-focus-card > strong { font-size:13px; overflow-wrap:anywhere; }
.rp-focus-card > small { color:#bdc4a9; font-size:10px; }
.rp-focus-track { height:4px; display:block; overflow:hidden; background:#242b20; }
.rp-focus-track i { height:100%; display:block; background:#acc17e; }
.rp-focus-detail { padding:9px 12px; margin:0 0 10px; background:#2b3328; border:1px solid #5b654c; display:grid; grid-template-columns:1fr auto; align-items:center; gap:7px; }
.rp-focus-detail span { font-size:12px; color:#c8d0b4; }
.rp-focus-detail b { font:700 22px/1.1 'Courier New',monospace; color:#e4ddac; }
.rp-focus-detail .rp-focus-track { grid-column:1 / -1; }
.rp-session-entry { display:flex; gap:8px; align-items:center; padding:7px; border:1px solid #555a47; background:#30362c; }
.rp-start-focus { margin:12px 0 0; padding:11px; border:1px solid #585d47; background:#30362c; }
.rp-pair-form { grid-template-columns:1fr auto; align-items:end; }
.rp-pair-form label { min-width:0; }
@media (max-width:620px) { .rp-filters { margin-bottom:4px; }.rp-filters button { padding:2px 1px; font-size:9px; }.rp-work-row,.rp-focus-card { padding:4px; }.rp-work-row b { font-size:11px; } }
.rp-inventory-hint { margin-top:3px; min-height:12px; color:#d2bd89; font:10px/12px 'Trebuchet MS',sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rp-inventory-hint + .rp-coinbar { margin-top:3px; }
.rp-shelves { display:flex; flex-wrap:wrap; gap:4px; margin:0 0 8px; }
.rp-shelves button { padding:3px 7px; border:1px solid #5b5c47; background:#30342a; font-size:11px; }
.rp-shelves button[aria-pressed=true] { border-color:#a28b58; color:#edd59b; background:#464735; }
@media (max-width:620px), (max-height:560px) { .rp-inventory-hint { display:none; } }
.rp-quest-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
.rp-quest-actions .rp-button { padding:5px 3px; font-size:11px; }
.rp-work-foot {display:grid;grid-template-columns:1fr 1fr;gap:4px}
.rp-work-foot .rp-button {min-width:0;padding:5px 3px;font-size:11px}
.rp-award-preview {display:grid;gap:4px;background:#343c2d;border:1px solid #677154;padding:8px}
.rp-award-preview strong {color:#e4cf93}.rp-award-preview small {color:#c2cbad;font-size:11px}

/* Shop window: a grid of goods with the price under each, and a strip for the chosen one. */
.rp-shop-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px; margin-bottom:8px; }
.rp-ware { position:relative; display:grid; justify-items:center; padding:3px 1px 2px; min-width:0; border:1px solid #171915; border-radius:2px; outline:1px solid #514d40; outline-offset:-2px; background:linear-gradient(138deg,#3a392f,#34342d 56%,#30312b); box-shadow:inset 2px 2px 0 #242620, inset -1px -1px 0 #5a5546; }
.rp-ware svg { filter:drop-shadow(1px 2px 0 #1c1d18); }
.rp-ware small { font:700 10px/1.25 'Courier New',monospace; color:#ffdd78; text-shadow:1px 1px #17180d; }
.rp-ware .rp-qty { position:absolute; top:1px; left:4px; color:#f1ead6; font:700 10px/1.3 'Courier New',monospace; text-shadow:1px 1px #17180d; }
.rp-ware.dim svg { opacity:.5; filter:grayscale(.7); }
.rp-ware.dim small { color:#a39c84; }
.rp-ware:hover,.rp-ware:focus-visible { background:linear-gradient(138deg,#56513d,#434235); outline-color:#b3995f; }
.rp-ware.chosen { outline:2px solid #e3be72; background:linear-gradient(138deg,#5d5540,#48442f); }
.rp-shop-foot { position:sticky; bottom:-10px; padding:6px 0 2px; background:#33352e; box-shadow:0 -6px 8px -6px #1a1c17; }
.rp-ware-detail { display:flex; gap:8px; align-items:flex-start; padding:7px; border:1px solid #555645; border-radius:2px; background:#2d3129; }
.rp-ware-detail > div { min-width:0; flex:1; }
.rp-ware-detail .rp-try-on { width:clamp(58px,17%,88px); height:clamp(62px,12dvh,91px); }
.rp-ware-detail strong { display:block; font:600 13px/1.2 Georgia,serif; color:#efdba7; }
.rp-ware-detail small { display:block; font-size:10.5px; line-height:1.35; color:#c2c0a8; }
.rp-ware-detail small.ok { color:#a9c98a; }
.rp-ware-detail small.bad, .rp-ware-actions .bad { color:#e09a84; font-size:11px; }
.rp-ware-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:6px; }
.rp-ware-actions .rp-price { display:inline-flex; align-items:center; gap:3px; margin-right:auto; color:#ffdd78; font-weight:700; }
.rp-ware-actions .rp-button { padding:3px 8px; min-height:25px; font-size:11px; }
.rp-ware-hint { margin:0; padding:7px; border:1px dashed #555645; border-radius:2px; color:#c2c0a8; font-size:11.5px; line-height:1.4; }

/* Dialogue: the speaker's portrait, their words on parchment, and the replies beneath. */
.rp-speech { display:flex; gap:9px; align-items:flex-start; margin-bottom:9px; }
.rp-face { flex:none; width:72px; height:92px; border:1px solid #191a14; outline:1px solid #71674c; outline-offset:-2px; image-rendering:pixelated; background:#353e33; }
.rp-speech blockquote { flex:1; min-width:0; margin:0; padding:9px 11px; border:1px solid #8f7f58; border-radius:2px; background:linear-gradient(170deg,#eadfbd,#dccfa6); box-shadow:inset 0 0 0 1px #f4ecd0, inset 0 -8px 14px -10px #9c8a5c; color:#3a3324; font:14px/1.5 Georgia,serif; }
.rp-speech blockquote p { margin:0; }
.rp-speech blockquote p + p { margin-top:7px; }
.rp-speech .rp-errand-line { padding-top:7px; border-top:1px solid #b9a877; color:#5a4416; font-style:italic; }
.rp-replies { display:grid; gap:3px; }
.rp-reply { display:block; width:100%; text-align:left; padding:6px 9px 6px 22px; position:relative; border:1px solid #55533f; background:#32362e; color:#e6dfc8; font:13px/1.3 Georgia,serif; }
.rp-reply::before { content:"›"; position:absolute; left:9px; color:#bba368; }
.rp-reply:hover,.rp-reply:focus-visible { border-color:#b49b66; background:#454636; color:#fff1c8; }
.rp-reply-act { border-color:#7a6a45; background:#454232; color:#f1dba0; }
.rp-reply.rp-guide-reply { border-color:#ad955d; border-inline-start:3px solid #e6c277; background:linear-gradient(100deg,#4b4630,#363a2f 78%); }
.rp-guide-reply:not(.rp-offer)::before { content:"◆"; color:#e8c77e; font-size:9px; top:50%; transform:translateY(-50%); left:6px; }
.rp-guide-reply:hover,.rp-guide-reply:focus-visible { outline:1px solid #e7c883; outline-offset:-2px; }
.rp-reply-tag,.rp-choice-guide { font:600 10px/1.3 'Trebuchet MS',sans-serif; color:#e8c77e; }
.rp-reply-tag { display:inline-block; margin-inline-start:.75em; }
.rp-choice-guide { margin:1px 0 2px; }
/* Spellbook: four schools across, four ranks down. */
.rp-spellbook { display:flex; flex-direction:column; gap:6px; }
.rp-schools,.rp-spells { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
.rp-schools span { text-align:center; font:600 10.5px/1.2 Georgia,serif; color:var(--school); letter-spacing:.02em; }
.rp-spell { position:relative; display:grid; justify-items:center; padding:4px 1px 2px; min-width:0; border:1px solid #171915; border-radius:2px; outline:1px solid #514d40; outline-offset:-2px; background:linear-gradient(138deg,#3a392f,#34342d 56%,#30312b); box-shadow:inset 2px 2px 0 #242620, inset -1px -1px 0 #5a5546; }
.rp-spell small { font:700 9.5px/1.25 'Courier New',monospace; color:var(--school); }
.rp-spell.locked svg { opacity:.35; filter:grayscale(1); }
.rp-spell.locked small { color:#8f8a76; }
.rp-spell:hover,.rp-spell:focus-visible { background:linear-gradient(138deg,#56513d,#434235); outline-color:#b3995f; }
.rp-spell.chosen { outline:1px solid #e3be72; }
.rp-spell.ready { outline:2px solid var(--school); background:linear-gradient(138deg,#4c4a3a,#3d3d31); box-shadow:inset 0 0 8px -2px var(--school); }
.rp-spell-detail { display:grid; gap:1px; padding:7px 8px; border:1px solid #555645; border-left:3px solid var(--school); border-radius:2px; background:#2d3129; }
.rp-spell-detail strong { font:600 13px/1.2 Georgia,serif; color:#efdba7; }
.rp-spell-detail small { font-size:10.5px; line-height:1.35; color:#c2c0a8; }
.rp-spell-detail small.ok { color:#a9c98a; }
.rp-spell-detail small.bad { color:#e09a84; }
.rp-spellbook .rp-note { margin:0; display:block; }
.rp-spellbook .rp-note svg { vertical-align:-3px; }

/* The Newcomer's Round, and the choices it offers. */
.rp-quest-tag { display:flex; align-items:center; gap:4px; margin-bottom:5px; font:600 10px/1.2 'Trebuchet MS',sans-serif; letter-spacing:.03em; text-transform:uppercase; color:#7a5a16; }
.rp-offer { display:flex; align-items:center; gap:9px; padding:6px 9px; }
.rp-offer::before { content:none; }
.rp-offer span { display:grid; gap:1px; min-width:0; }
.rp-offer b { font:600 13px/1.2 Georgia,serif; color:#f1dba0; }
.rp-offer small { font:10.5px/1.3 'Trebuchet MS',sans-serif; color:#c2c0a8; }

/* Fennick's pens: one row for each stray, with its price. */
.rp-pens { display:grid; gap:4px; margin:8px 0; }
.rp-pen { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; padding:5px 8px; border:1px solid #55533f; background:#32362e; }
.rp-pen span { display:grid; gap:1px; min-width:0; }
.rp-pen b { font:600 13px/1.2 Georgia,serif; color:#f1dba0; }
.rp-pen small { font:10.5px/1.3 'Trebuchet MS',sans-serif; color:#c2c0a8; }
.rp-pen.rare { border-color:#8a7440; background:#3a382b; }
.rp-pen.rare b { color:#ffe08a; }
.rp-pen.mine { opacity:.72; }
.rp-pen em { font:italic 11px Georgia,serif; color:#b7cf89; padding:0 6px; }
.rp-pen .rp-button { display:inline-flex; align-items:center; gap:4px; min-width:66px; justify-content:center; padding:4px 8px; white-space:nowrap; }

/* The adventure journal uses the same paper, inventory art and dialogue as the village. */
.rp-adventure-current { display:grid; justify-items:start; gap:5px; margin:10px 0; padding:8px 10px; border-inline-start:2px solid #c5a56a; background:#373b2f; }
.rp-adventure-current > small,.rp-adventure-notes small { color:#c7bea2; font:11px/1.35 'Trebuchet MS',sans-serif; }
.rp-adventure-current > b { color:#f1d99f; font:600 14px/1.3 Georgia,serif; }
.rp-adventure-reqs { display:flex; gap:4px 12px; flex-wrap:wrap; margin:5px 0 9px; padding:0; list-style:none; }
.rp-adventure-reqs li { color:#e3bc93; font:12px/1.4 'Trebuchet MS',sans-serif; }
.rp-adventure-reqs li.met { color:#b3cda0; }
.rp-adventure-reqs .rp-button { display:inline; font:inherit; color:inherit; background:none; border:0; padding:2px 0; box-shadow:none; text-align:start; }
.rp-adventure-reqs .rp-button:hover,.rp-adventure-reqs .rp-button:focus-visible { text-decoration:underline; }
.rp-adventure-gift { display:flex; align-items:center; gap:8px; margin:4px 0; padding:6px 8px; border:1px solid #655e47; background:#37392e; }
.rp-adventure-gift > svg { flex:none; }
.rp-adventure-gift > span { min-width:0; display:grid; gap:2px; }
.rp-adventure-gift b { color:#edd5a1; font:600 13px Georgia,serif; }
.rp-adventure-gift small { color:#d3d1bc; font:11px/1.4 'Trebuchet MS',sans-serif; }
.rp-adventure-notes { list-style:none; margin:0; padding:0; }
.rp-adventure-notes details { border-bottom:1px solid #545641; padding:5px 0; }
.rp-adventure-notes summary { cursor:pointer; color:#b7d39f; font:13px/1.35 Georgia,serif; }
.rp-adventure-notes details[open] > summary { margin-bottom:5px; }
.rp-adventure-feedback { border-inline-start:2px solid #b49b66; padding:4px 9px; color:#ead3a0; }
.rp-body .rp-place-clue { display:block; width:100%; margin-bottom:7px; color:#e8c77e; text-align:start; }
.rp-body .rp-adventure-ending h3 { margin:2px 0 5px; color:#eed399; }
.rp-adventure-ending .rp-ledger { margin-bottom:5px; }
.rp-victory-loot summary { padding:3px 0; cursor:pointer; color:#c7bea2; font:11px/1.3 'Trebuchet MS',sans-serif; }

/* The station cabinet keeps every upcoming material within sight. */
.rp-station-survey { display:grid; gap:9px; min-width:0; }
.rp-station-survey h3 { margin:0; }
.rp-resource-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
.rp-resource-cell { --resource:#b5af87; min-width:0; display:grid; justify-items:center; align-content:center; gap:1px; padding:4px 2px; background:linear-gradient(150deg,#444639,#33372e); border:1px solid #24281f; box-shadow:inset 0 1px #63634d; border-radius:2px; }
.rp-resource-cell b,.rp-resource-cell small { display:block; max-width:100%; overflow-wrap:anywhere; line-height:1.15; }
.rp-resource-cell b { font:600 11px/1.15 Georgia,serif; color:#e8dfbd; }
.rp-resource-cell small { color:#c6b996; font-size:9px; }
.rp-resource-cell svg { filter:drop-shadow(1px 2px 0 #1e221b); }
.rp-resource-cell.locked { background:linear-gradient(155deg,#383c32,#2e3129); }
.rp-resource-cell.locked b { color:#ccc7af; }
.rp-resource-cell[aria-pressed=true] { border-color:var(--resource); box-shadow:inset 0 0 0 1px #393b2e, inset 0 -2px var(--resource); background:#43483a; }
.rp-resource-cell:hover { background:#4c5040; }
.rp-resource-hero { display:flex; align-items:center; gap:10px; border-block:1px solid #68684c; padding:7px 4px; }
.rp-resource-art { flex:none; width:56px; height:51px; display:grid; place-items:center; background:radial-gradient(ellipse at 50% 62%,color-mix(in srgb,var(--resource) 34%,transparent),transparent 70%); }
.rp-resource-art svg { filter:drop-shadow(1px 3px 0 #27291f); }
.rp-resource-hero h4 { margin:0 0 2px; font:700 18px/1.1 Georgia,serif; color:#efdbab; }
.rp-resource-hero p,.rp-tool-rack p { font-size:11px; line-height:1.3; }
.rp-resource-quote { display:flex; flex-wrap:wrap; column-gap:12px; row-gap:4px; }
.rp-resource-quote>span { flex:1 0 auto; display:grid; color:#cbc7af; font-size:11px; line-height:1.35; }
.rp-resource-quote b { color:#eedcb3; font-size:13px; font-variant-numeric:tabular-nums; }
.rp-resource-quote small { color:#cfcab0; font-size:10px; font-weight:400; }
.rp-recipe { color:#d8d0b6; display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; font-size:11px; }
.rp-recipe>span:first-child { font-weight:700; }
.rp-recipe small { color:#bcb8a6; }
.rp-recipe .short { color:#f0b99f; }
.rp-resource-status { color:#ead29c; padding:3px 0; font-size:12px; }
.rp-station-survey .rp-actions { margin:0; }
.rp-station-survey .rp-actions button { flex:1 0 auto; white-space:normal; }
.rp-paired-resource { display:flex; gap:6px; align-items:center; color:#e0d4ad; border-bottom:1px solid #69654b; padding-bottom:5px; font-size:11px; }
.rp-paired-resource b,.rp-tool-rack summary small { margin-left:auto; }
.rp-tool-rack { background:#30342b; border:1px solid #555944; padding:0 6px; }
.rp-tool-rack summary { display:flex; list-style:none; align-items:center; gap:7px; font-size:12px; min-height:32px; cursor:pointer; color:#dfdac3; }
.rp-tool-rack summary::-webkit-details-marker { display:none; }
.rp-tool-rack summary small { color:#d1c295; }
.rp-tool-rack p { margin:2px 0 6px; color:#c8c4af; }
.rp-tool-row { width:100%; display:flex; align-items:center; text-align:left; gap:6px; border:0; border-top:1px solid #555641; background:none; padding:4px 0; }
.rp-tool-row b,.rp-tool-row small { display:block; font-size:11px; }
.rp-tool-row small { margin-top:2px; color:#c3c2ac; font-size:10px; }
.rp-tool-row em { flex:none; margin-left:auto; color:#dfc791; font-size:10px; font-style:normal; }
.rp-tool-row.current em { color:#b9d0a1; }
.rp-pair-form .rp-resource-select { grid-row:2; }
.rp-pair-form button { grid-row:1 / span 2; grid-column:2; }
.rp-form .rp-resource-select[hidden] { display:none; }
@media(max-width:620px) {
  .rp-resource-cell>svg { width:25px; height:25px; }
  .rp-station-survey { gap:6px; }
  .rp-resource-cell { padding:3px 1px; }
  .rp-resource-hero { padding:4px 2px; gap:6px; }
}
.sg-roadmap{margin:12px 0}
.sg-feature,.sg-entry{font:inherit;color:inherit;text-align:left;cursor:pointer;width:100%;display:grid;align-items:center;gap:11px}
.sg-feature{grid-template-columns:auto minmax(0,1fr) 12px;padding:9px 12px;border:1px solid #91835a;border-left:3px solid var(--sg-accent);background:linear-gradient(103deg,#484a36,#32382c);box-shadow:inset 0 0 0 2px #252a2180}
.sg-feature:hover,.sg-entry:hover{background:#494d38}
.sg-feature strong,.sg-feature small,.sg-feature em,.sg-entry strong,.sg-entry small{display:block}
.sg-feature strong{font:700 18px/1.15 var(--serif);color:#f6dfa4}
.sg-feature small,.sg-feature em,.sg-entry small{font:11px/1.35 var(--sans);color:#d5d1b8}
.sg-feature small{color:var(--sg-accent);font-weight:700;margin-bottom:3px}
.sg-medallion{display:grid;place-items:center;width:47px;height:47px;background:radial-gradient(ellipse at center,#68664b,#33392d 75%);border:1px solid #868062;box-shadow:inset 0 0 0 2px #33372b}
.sg-feature i,.sg-entry i,.sg-group i{font:700 17px var(--serif);color:#cdb983}
.sg-index{border:1px solid #656650;border-top:0}
.sg-index summary{cursor:pointer}
.sg-index>summary{padding:8px 11px;background:#373c2f;color:#e6d8aa;font:700 13px var(--serif)}
.sg-index>summary span{color:#bcbba4;font:10px var(--mono);float:right}
.sg-group{border-top:1px solid #575b48}
.sg-group>summary{padding:5px 10px;display:grid;grid-template-columns:25px minmax(0,1fr) 12px;gap:8px;align-items:center;color:#d1ccb4;font:12px var(--sans)}
.sg-group summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-group summary b{font:700 12px var(--mono);text-align:center;color:#dbbc80}
.sg-group.sg-earned summary i{color:#a4c185}
.sg-entry{grid-template-columns:30px minmax(0,1fr) 12px;background:#2d342a;border:0;border-top:1px solid #464d3e;padding:5px 15px;color:#e3d9b9;font:13px var(--serif)}
.rp-forge-patterns { border-top:1px solid #64664b; padding-top:7px; }
.rp-forge-patterns h3 { margin:0 0 4px; }
.rp-forge-pattern { display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:2px 7px; padding:6px; background:#30342b; border:1px solid #555944; }
.rp-forge-pattern+.rp-forge-pattern { border-top:0; }
.rp-forge-pattern b,.rp-forge-pattern small { display:block; }
.rp-forge-pattern b { color:#efdfb3; font:700 13px/1.25 Georgia,serif; }
.rp-forge-pattern small { color:#c5c1aa; font-size:10px; }
.rp-forge-pattern .short { color:#edb59c; }
.rp-forge-pattern .rp-recipe { grid-column:1/-1; }
.rp-forge-pattern .rp-recipe small { display:inline; }
.rp-forge-pattern.highlighted { outline:1px solid #b4a070; outline-offset:-1px; background:#3d4134; }
