/* Executed from PROMPT_SKILLS_XP_BOOST.md: compact Tibia-style progression panel. */
#skills-panel{--skills-gold:#c8a955;--skills-gold-bright:#f0d98d;--skills-green:#67cf72;--skills-stone:#242620;--skills-line:#4a4c43}
.sidebar-window-host>#skills-panel.sidebar-window{height:376px;min-height:268px}
#skills-panel>.skill-list{display:block!important;padding:3px 4px 5px;background:linear-gradient(90deg,#0d0f0d,#171916 12%,#171916 88%,#0d0f0d)}
#skills-panel .skills-character{display:block;margin:0 0 4px;padding:6px;border-color:#6e6447;background:linear-gradient(145deg,#343126,#1a1c17 68%,#10110f);box-shadow:inset 0 0 0 1px #0a0b09,0 2px 6px #0009}
#skills-panel .skills-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 5px;align-items:center}
#skills-panel .skills-identity>b{overflow:hidden;color:var(--skills-gold-bright);font:bold 11px Georgia,serif;text-overflow:ellipsis;white-space:nowrap;text-shadow:1px 1px #000}
#skills-panel .skills-identity>span{color:#dfc878;font:bold 9px Tahoma;text-align:right}
#skills-panel .skills-identity>small{grid-column:1/-1;color:#9f9d91;font-size:8px}
#skills-panel .level-progress{height:11px;margin:4px 0 3px;border-width:1px}
#skills-panel .level-progress strong{font-size:7px}
#skills-panel .experience-total{padding:2px 0;font-size:8px}
#skills-panel .experience-total b{font-size:9px}
#skills-panel .stamina-summary{gap:2px;padding-top:3px;border-color:#3c3e37}
#skills-panel .stamina-clock{font-size:8px}
#skills-panel .stamina-clock b{font-size:9px}
#skills-panel .stamina-progress{height:5px;margin:0}
#skills-panel .xp-rate-row{grid-template-columns:minmax(0,1fr);gap:3px;padding:3px 0 0;border-top:1px solid #3b3d35}
#skills-panel .xp-rate-copy{display:grid;grid-template-columns:1fr auto;gap:1px 4px;align-items:center;min-width:0}
#skills-panel .xp-rate-copy>span{color:#d9d8cf;font:bold 8px Tahoma;white-space:nowrap}
#skills-panel .xp-rate-copy>strong{color:var(--skills-green);font:bold 12px Tahoma;text-align:right;text-shadow:1px 1px #000}
#skills-panel .xp-rate-copy>small{grid-column:1/-1;overflow:hidden;color:#8f9287;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
#skills-panel .xp-rate-row.boost-active .xp-rate-copy>strong{color:#74dcef;text-shadow:0 0 4px #2b9db866}
#skills-panel .xp-boost-control{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:4px;align-items:center;align-self:stretch}
#skills-panel .xp-boost-control>time{display:block;min-height:12px;color:#e9d37c;font:bold 10px/12px Consolas,monospace;text-align:center;letter-spacing:.02em}
#skills-panel .xp-rate-row.boost-active .xp-boost-control>time{color:#77e6f4;text-shadow:0 0 4px #2db0c888}
#skills-panel .xp-boost-control>button{display:grid;grid-template-columns:1fr;gap:0;width:54px;min-width:54px;min-height:25px;padding:2px;border:1px solid #a27829;background:linear-gradient(#8a591c,#40270d);color:#ffe5a3;font:bold 7px Tahoma;box-shadow:inset 0 0 0 1px #e0ab4850,0 1px 2px #000;cursor:pointer}
#skills-panel .xp-boost-control>button small{padding:1px 0 0;border:0;border-top:1px solid #b68535;color:#fff0bd;font-size:7px}
#skills-panel .xp-boost-control>button:not(:disabled):hover,#skills-panel .xp-boost-control>button:not(:disabled):focus-visible{filter:brightness(1.22);outline:1px solid #e3c571}
#skills-panel .xp-boost-control>button:disabled{border-color:#4c514b;background:linear-gradient(#303732,#1b1e1b);color:#8e9990;box-shadow:inset 0 0 0 1px #ffffff08;cursor:not-allowed;filter:none}
#skills-panel .xp-rate-row.boost-active .xp-boost-control>button:disabled{border-color:#39757c;background:linear-gradient(#28515a,#152c31);color:#9be5ee}
#skills-panel .xp-boost-cycle{display:flex;justify-content:center;min-height:11px;padding-top:2px;color:#878a81;font-size:7px;line-height:9px;text-align:center;white-space:nowrap}
#skills-panel .skills-list-heading{display:flex;align-items:center;justify-content:space-between;margin:0 1px 2px;padding:2px 3px;border-top:1px solid #5c563f;border-bottom:1px solid #35372f;color:#c7ae69;font:bold 7px Tahoma;letter-spacing:.08em}
#skills-panel .skills-list-heading small{color:#73766e;font:normal 7px Tahoma;letter-spacing:0}
#skills-panel .skill-row{display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;grid-template-rows:15px 4px!important;gap:1px 4px!important;min-height:0;margin:0 0 1px!important;padding:2px 4px!important;border:1px solid #363831!important;border-top-color:#494b42!important;background:linear-gradient(180deg,#252720,#191b17)!important;box-shadow:inset 0 1px #ffffff06!important}
#skills-panel .skill-row:hover,#skills-panel .skill-row:focus{border-color:#686856!important;background:linear-gradient(180deg,#2d3028,#1d201b)!important}
#skills-panel .skill-row:first-of-type{border-left-color:#9a7e35!important;background:linear-gradient(90deg,#2c2a1e,#22241e 36%,#191b17)!important}
#skills-panel .skill-caption{grid-column:1!important;grid-row:1!important;align-self:center;border:0!important}
#skills-panel .skill-caption>span{font-size:8px!important;line-height:13px}
#skills-panel .skill-equation{grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:6px!important;align-items:center;padding:0!important}
#skills-panel .skill-equation.skill-total-only{grid-template-columns:1fr!important}
#skills-panel .skill-total-only .skill-value{display:block;justify-self:end;color:#e9e9e4;font:bold 10px Tahoma;text-align:right}
#skills-panel .skill-native{min-width:0!important;font-size:9px!important;text-align:right}
#skills-panel .skill-math{justify-content:flex-end;gap:0!important;font-size:8px!important}
#skills-panel .skill-math .skill-modifier{margin-right:4px}
#skills-panel .skill-math .skill-equals{margin-right:1px}
#skills-panel .skill-math .skill-value{font-size:10px!important}
#skills-panel .skill-row meter{grid-column:1/-1!important;grid-row:2!important;width:100%;height:4px!important;margin:0!important;border:0;background:#080a08}
#skills-panel .skill-row meter::-webkit-meter-bar{height:4px;border:0;background:#080a08}
#skills-panel .skill-row meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#6e5c24,#cfb54e)}
#skills-panel .skill-row:first-of-type meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#236f78,#5bc7d4)}
@container (max-width:175px){#skills-panel .xp-boost-control{grid-template-columns:minmax(0,1fr) 50px}#skills-panel .xp-boost-control>button{width:50px;min-width:50px}#skills-panel .skill-row{grid-template-columns:minmax(0,1fr) 68px!important}#skills-panel .xp-rate-copy>small{display:none}}
.stamina-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#9da298;font-size:7px}.stamina-meta strong{color:#c8c7bb;font:bold 7px Tahoma;white-space:nowrap}#skills-panel .stamina-summary,#skills-panel .xp-rate-copy{border-radius:2px;outline:none;transition:background .12s,box-shadow .12s}#skills-panel .stamina-summary:hover,#skills-panel .stamina-summary:focus-within,#skills-panel .xp-rate-copy:hover,#skills-panel .xp-rate-copy:focus{background:#ffffff0b;box-shadow:inset 2px 0 #c8a955;cursor:help}#skills-panel .xp-rate-copy>small{display:block!important;overflow:visible;line-height:10px;text-overflow:clip;white-space:normal}#skills-panel .combat-skills-table{overflow:hidden;margin:0 1px;border:1px solid #4a4c43;background:linear-gradient(90deg,#171916,#1d1f1a 50%,#171916);box-shadow:inset 0 1px #ffffff09}#skills-panel .combat-skills-table .skill-row{grid-template-columns:minmax(72px,1fr) 64px!important;grid-template-rows:17px 3px!important;gap:0 3px!important;min-height:20px;margin:0!important;padding:1px 4px 2px!important;border:0!important;border-bottom:1px solid #30322c!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}#skills-panel .combat-skills-table .skill-row:last-child{border-bottom:0!important}#skills-panel .combat-skills-table .skill-row:hover,#skills-panel .combat-skills-table .skill-row:focus{background:#ffffff08!important}#skills-panel .combat-skills-table .skill-row:first-child{border-left:0!important;background:linear-gradient(90deg,#29271b,#1d1f1a 42%,#171916)!important}#skills-panel .combat-skills-table .skill-caption{grid-column:1!important;grid-row:1!important;align-self:center;border:0!important}#skills-panel .combat-skills-table .skill-caption>span{overflow:visible;text-overflow:clip;white-space:nowrap;color:#e8e5d9;font-size:8px!important;line-height:15px}#skills-panel .combat-skills-table .skill-equation{grid-column:2!important;grid-row:1!important;grid-template-columns:18px minmax(0,1fr)!important;gap:3px!important;padding:0!important}#skills-panel .combat-skills-table .skill-math{display:grid!important;grid-template-columns:minmax(17px,auto) 5px 18px;align-items:center;justify-content:end;gap:1px!important}#skills-panel .combat-skills-table .skill-math .skill-modifier,#skills-panel .combat-skills-table .skill-math .skill-equals{margin:0;text-align:right}#skills-panel .combat-skills-table .skill-math .skill-value{min-width:0!important;text-align:right}#skills-panel .combat-skills-table .skill-total-only{grid-template-columns:1fr!important}#skills-panel .combat-skills-table .skill-row meter{grid-column:1/-1!important;grid-row:2!important;height:3px!important;margin:0!important}#skills-panel .combat-skills-table .skill-row>small{display:none}@container (max-width:175px){#skills-panel .combat-skills-table .skill-row{grid-template-columns:minmax(72px,1fr) 64px!important;padding-inline:4px!important}#skills-panel .combat-skills-table .skill-equation{grid-template-columns:18px minmax(0,1fr)!important;gap:3px!important}#skills-panel .combat-skills-table .skill-caption>span{font-size:8px!important}#skills-panel .xp-rate-copy>small{display:block!important}}
#skills-panel .combat-skills-table .skill-row{grid-template-columns:minmax(0,1fr) 49px!important;column-gap:2px!important}#skills-panel .combat-skills-table .skill-equation{display:flex!important;align-items:center;justify-content:flex-end;gap:2px!important;min-width:0}#skills-panel .combat-skills-table .skill-native{flex:0 0 auto;min-width:0!important}#skills-panel .combat-skills-table .skill-math{display:flex!important;align-items:center;justify-content:flex-end;gap:1px!important;min-width:0}#skills-panel .combat-skills-table .skill-math .skill-modifier,#skills-panel .combat-skills-table .skill-math .skill-equals,#skills-panel .combat-skills-table .skill-math .skill-value{flex:0 0 auto;min-width:0!important;margin:0!important}#skills-panel .combat-skills-table .skill-total-only{display:flex!important}@container (max-width:175px){#skills-panel .combat-skills-table .skill-row{grid-template-columns:minmax(0,1fr) 49px!important;column-gap:2px!important}#skills-panel .combat-skills-table .skill-equation{display:flex!important;gap:2px!important}}
#skills-panel .stamina-clock{border-radius:2px;outline:none;transition:background .12s,box-shadow .12s}#skills-panel .stamina-clock:hover,#skills-panel .stamina-clock:focus{background:#ffffff0b;box-shadow:inset 2px 0 #c8a955;cursor:help}
@media(max-height:700px){.sidebar-window-host>#skills-panel.sidebar-window{height:min(292px,43vh)}}

/* The desktop sidebar is a fixed HUD column. Only each window's content may
   scroll; the column itself must never move and hide entire windows. */
@media(min-width:1051px){
  .left-sidebar.sidebar-window-host{display:flex;min-height:0;overflow:hidden!important;flex-direction:column}
  .left-sidebar.sidebar-window-host>.minimap-panel{flex:0 0 auto}
  .left-sidebar.sidebar-window-host>.combat-stats-panel.sidebar-window{flex:0 1 auto;height:auto!important;min-height:0;max-height:42vh}
  .left-sidebar.sidebar-window-host>#skills-panel.sidebar-window{flex:1 1 240px;height:auto;min-height:180px;max-height:240px;overflow:hidden!important}
  .left-sidebar.sidebar-window-host>#skills-panel.sidebar-window>.skill-list{min-height:0;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:none}
  .left-sidebar.sidebar-window-host.minimap-disabled>.combat-stats-panel.sidebar-window{max-height:none}
  .left-sidebar.sidebar-window-host.minimap-disabled>#skills-panel.sidebar-window{flex:1 1 auto;max-height:none}
}
#skills-panel .combat-skills-table .skill-equation.skill-wide-native{justify-self:end;width:58px;max-width:none}
#skills-panel .combat-skills-table .skill-equation.skill-wide-modifier{justify-self:end;width:62px;max-width:none}#skills-panel .combat-skills-table .skill-equation.skill-wide-equation{justify-self:end;width:70px;max-width:none}
#skills-panel .combat-skills-table .skill-equation.skill-dynamic-equation{justify-self:end;width:var(--skill-equation-width);max-width:none}
