.rh-index{display:grid;gap:7px}
.rh-volumes{display:flex;gap:3px}
.rh-volume{flex:1;min-height:27px;padding:2px 4px;font:bold 13px Georgia,serif;color:#d4c7a1;background:linear-gradient(#4b4c40,#363a30);border:1px solid #655f48;box-shadow:inset 0 1px #727057}
.rh-volume[aria-pressed=true]{color:#ffdda0;background:linear-gradient(#676145,#4c4a33);border-color:#b7985f;box-shadow:inset 0 -2px #b59a64}
.rh-volume:hover,.rh-quarry:hover,.rh-contract:hover{filter:brightness(1.12)}
.rh-volume-title{display:flex;align-items:center;justify-content:space-between;gap:6px}
.rp-body .rh-volume-title h3{margin:1px 0;color:#eed193;font-size:18px}
.rh-volume-title small,.rh-contract,.rh-req{font:10px 'Courier New',monospace}
.rh-volume-title small{color:#bcb9a3}
.rh-entries{display:grid;gap:4px}
.rh-quarry{display:flex;align-items:center;gap:9px;width:100%;padding:5px 8px;text-align:left;border:1px solid #5d5d49;border-left:2px solid #8d8a5b;background:linear-gradient(105deg,#42473a,#353a2f)}
.rh-quarry.rh-locked{border-left-color:#67634e}
.rh-token{display:grid;place-items:center;width:35px;height:34px;flex:none;border:1px solid var(--quarry);background:linear-gradient(140deg,#393b30,#282d26);box-shadow:inset 0 0 0 1px #151c1770}
.rh-copy{flex:1;display:grid;gap:1px}
.rh-copy strong{font:600 14px Georgia,serif;color:#eddfb9}
.rh-copy small,.rh-drop small{font:10px/1.2 'Trebuchet MS',sans-serif;color:#bbbba4}
.rh-locked .rh-copy strong{color:#c8c4af}
.rh-req{display:flex;align-items:center;gap:3px;color:#dac996}
.rh-contract{display:flex;align-items:center;gap:7px;padding:6px 8px;border:1px solid #867853;background:#494633;color:#dbcfaa;text-align:left}
.rh-contract span{flex:1;display:grid;gap:1px}
.rh-drops{display:flex;gap:5px;flex-wrap:wrap;margin:4px 0 8px}
.rh-drop{display:flex;align-items:center;gap:5px;font-size:11px;background:#30342c;padding:4px 6px;border:1px solid #515641}
.rh-drop span{display:grid}
.rh-paper{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #68654d;margin-top:12px;padding-top:9px}
.rp-body .rh-paper h3{margin:0 0 3px}
.rh-paper p,.rp-body .rh-lockline{margin:0;font-size:11px;color:#c6c4ab}
.rh-paper button{flex:none}
.rh-tell{margin-top:6px;border-left:2px solid #d3a165;background:#514334;padding:5px 7px;display:grid;gap:2px}
.rh-tell strong{color:#f4d8a2}
.rh-tell span{font-size:11px;color:#e6d7bf}
.rh-tell>div{display:flex;gap:4px;margin-top:3px}
.rh-tell button{font-size:10px;min-height:24px;padding:2px 6px}
.rh-exchange{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 0;color:#cac7ab;font-size:11px}
.rh-exchange small,.rh-tell small{font:11px 'Courier New',monospace;color:#e4ce9a}
.rh-trials{display:flex;align-items:center;gap:3px}
.rh-trials>span{font:11px Georgia,serif;color:#c4baa0;margin-right:3px}
.rh-trial{display:flex;align-items:center;justify-content:center;gap:4px;font:600 11px Georgia,serif;min-height:24px}
.rh-quarry.rh-caldera{border-left-color:#df9550;background:linear-gradient(105deg,#584032,#39332b)}
.rh-caldera .rh-copy small{color:#d9a06f}
.rh-first{display:flex;align-items:center;gap:9px;padding:4px 8px;margin:7px 0;background:#3a4032;border:1px solid #6a694d}
.rh-first span{display:grid;gap:2px}.rh-first small{font:11px 'Trebuchet MS',sans-serif;color:#cdbf9d}.rh-first strong{font:600 15px Georgia,serif;color:#f0daa1}
.rh-fire-award{border-color:#ab7647;background:linear-gradient(100deg,#62422e,#423428)}
.rh-shell{display:flex;align-items:center;gap:5px;margin-top:5px;color:#ffcd91;font-size:11px}
.rh-fieldbook{display:flex;flex-direction:column;gap:5px}
.rh-fieldbook button{flex:none;text-align:left;color:#e8d4a4}
.rh-cape-goal,.rh-next,.rh-loadout{width:100%;display:flex;align-items:center;gap:7px;padding:5px;border:1px solid #665b44;background:#3b3d32}
.rh-cape-goal{border:1px solid #946d45;box-shadow:inset 2px 0 #c38b51;background:linear-gradient(105deg,#57402d,#3d3529)}
.rh-cape-goal>span,.rh-next>span,.rh-loadout>span{display:grid;gap:1px;flex:1;min-width:0}
.rh-fieldbook small,.rh-fieldbook em{font:10px/1.16 'Trebuchet MS',sans-serif;color:#cfc3a8}
.rh-cape-goal b{font:700 16px/1.15 Georgia,serif;color:#ffd098}.rh-next b,.rh-loadout b{font:600 12px Georgia,serif}
.rh-pips{display:flex;gap:2px;margin-top:3px}.rh-pips i{height:4px;flex:1;background:#342a22;border:1px solid #76583b}.rh-pips i.cleared{background:#da9d57;border-color:#ac7642}
.rh-next i,.rh-loadout i{font:16px Georgia,serif;color:#b49b6c}
.rh-fieldbook h3{margin:2px 0 0;font:600 12px Georgia,serif;color:#d1bc8d}
.rh-school-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.rh-school-links button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 1px;border:1px solid #67614d;background:#414236;font:10px 'Trebuchet MS',sans-serif}
.rh-cape-goal:hover,.rh-next:hover,.rh-loadout:hover,.rh-school-links button:hover{filter:brightness(1.12)}

/* Attack options: four ways to fight with the weapon in hand. */
.rh-stances{display:grid;grid-template-columns:1fr 1fr;gap:3px}
.rh-stances button{display:grid;gap:1px;text-align:left;padding:4px 6px;border:1px solid #67614d;background:#414236;min-width:0}
.rh-stances button b{font:600 12px Georgia,serif;color:#e9dcb6}
.rh-stances button small{font-size:9.5px;line-height:1.2;color:#bdb9a0}
.rh-stances button[aria-pressed="true"]{border-color:#d0aa62;background:#5a4d35;box-shadow:inset 0 0 0 1px #8b7446}
.rh-stances button[aria-pressed="true"] b{color:#ffe2a0}
.rh-stances button:hover{filter:brightness(1.12)}
.rh-stances-compact{grid-template-columns:repeat(4,1fr);margin-top:6px}
.rh-stances-compact button{text-align:center;padding:3px 2px}
.rh-stance-note{margin:3px 0 0;font-size:10.5px;color:#cac7ab}

.rh-runes{display:flex;align-items:center;gap:4px;margin-top:5px;font-size:11px;color:#cfc4ee}
.rh-runes.rh-dry{color:#e09a84}
.rh-grave{border-color:#8b7446;background:#4a4332}

.rh-runes button{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid #5f5a48;border-left:2px solid var(--school);background:#35382f;font-size:11px;color:#efe4c4}
.rh-runes button b{font:600 11px Georgia,serif}
.rh-runes button:hover{filter:brightness(1.15)}
.rh-runes span{font-size:10.5px}

/* The fight panel is a low strip docked under the action, never a box on top of it. */
.rp-dialog-layer.rp-encounter{padding:6px}
.rp-encounter .rp-window{width:min(480px,100%)}
.rp-encounter .rp-window-top{padding:4px 9px;gap:7px;min-height:0}
.rp-encounter .rp-window-top svg{width:22px;height:22px}
.rp-encounter .rp-window-top h2{font-size:14px;line-height:1.15}
.rp-encounter .rp-window-top .rp-kicker{font-size:8.5px;line-height:1.1}
.rp-encounter .rp-body{padding:6px 9px 7px}
.rh-bars{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rh-bars .rp-track{font-size:10.5px;margin-bottom:2px}
.rp-encounter .rh-tell{margin-top:5px;padding:4px 7px;grid-template-columns:1fr auto;align-items:center;column-gap:8px}
.rp-encounter .rh-tell strong{font-size:12px}
.rp-encounter .rh-tell span{grid-column:1/3;font-size:10.5px;line-height:1.25}
.rp-encounter .rh-tell>div{grid-column:2;grid-row:1;margin-top:0;gap:3px}
.rp-encounter .rh-tell button{min-height:21px;padding:1px 9px}
.rp-encounter .rh-exchange{margin:5px 0 0}
.rp-encounter .rh-stances-compact{margin-top:5px}
.rp-encounter .rh-stances-compact button{padding:2px}
.rh-belt{display:flex;align-items:center;gap:6px;margin-top:6px}
.rh-foods{display:flex;gap:3px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin}
.rh-food{position:relative;flex:none;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:3px;height:28px;padding:1px 6px 1px 3px;border:1px solid #66604a;background:#3d4034;font:inherit}
.rh-food small{font:700 10px/1 'Courier New',monospace;color:#ffdd78}
.rh-food em{position:absolute;right:3px;top:1px;font:normal 8px/1 'Trebuchet MS',sans-serif;color:#a9c98a}
.rh-food small{align-self:end;padding-bottom:2px}
.rh-food:hover:not(:disabled){border-color:#b49b66;background:#4b4c3b}
.rh-food:disabled{opacity:.45}
.rh-nofood{font-size:10.5px;color:#a8a48c}
.rh-belt .rp-button{flex:none;min-height:26px;padding:2px 12px}
/* The stage's own corner controls step aside while a fight panel is up. */
.stage:has(.rp-encounter:not([hidden])) .walk-tip,.stage:has(.rp-encounter:not([hidden])) .camera-controls,.stage:has(.rp-encounter:not([hidden])) .brief-notice{visibility:hidden}

.rh-drop.rh-found small { color:#b7cf89; }
