/* P10.27.09 — parchment compact HUD adapted to the live Shatterhaven controls.
   The game keeps its existing popup markup and action handlers. */
:root{
  --rrm-reference-paper:#faf1d7;
  --rrm-reference-paper-light:#fff9e5;
  --rrm-reference-paper-dark:#eadcba;
  --rrm-reference-ink:#234c41;
  --rrm-reference-ink-soft:#557366;
  --rrm-reference-line:#8fa79a;
  --rrm-reference-gold:#c9a45e;
}

html body.game-active.rrmModernUiP485{
  --bd-bg:var(--rrm-reference-paper)!important;
  --bd-bg-secondary:#f4e9cc!important;
  --bd-panel:var(--rrm-reference-paper-light)!important;
  --bd-panel-alt:#f2e6c9!important;
  --bd-surface:#f2e6c9!important;
  --bd-surface-hover:#fff9e5!important;
  --bd-border:var(--rrm-reference-line)!important;
  --bd-border-soft:var(--rrm-reference-line)!important;
  --bd-text:var(--rrm-reference-ink)!important;
  --bd-text-muted:var(--rrm-reference-ink-soft)!important;
  --bd-title:var(--rrm-reference-ink)!important;
  --bd-selection:#2d614e!important;
  --bd-selection-text:#fff9e5!important;
  --bd-accent:var(--rrm-reference-gold)!important;
  --bd-success:#43885b!important;
  --bd-font-ui:Arial,Helvetica,sans-serif!important;
  --bd-font-title:Georgia,"Times New Roman",serif!important;
  --rrm-ui-bg:rgba(250,241,215,.96)!important;
  --rrm-ui-bg-strong:rgba(255,249,229,.98)!important;
  --rrm-ui-surface:#f2e6c9!important;
  --rrm-ui-line:#8fa79a!important;
  --rrm-ui-text:#234c41!important;
  --rrm-ui-muted:#557366!important;
  --rrm-modern-bg:#faf1d7!important;
  --rrm-modern-panel:#fff9e5!important;
  --rrm-modern-panel-2:#f2e6c9!important;
  --rrm-modern-card:#f2e6c9!important;
  --rrm-modern-card-2:#eee2be!important;
  --rrm-modern-line:#8fa79a!important;
  --rrm-modern-line-soft:#8fa79a!important;
  --rrm-modern-text:#234c41!important;
  --rrm-modern-muted:#557366!important;
  --ui-surface-0:var(--rrm-reference-paper)!important;
  --ui-surface-1:var(--rrm-reference-paper-light)!important;
  --ui-surface-2:#f2e6c9!important;
  --ui-on-surface-1:var(--rrm-reference-ink)!important;
  --ui-on-surface-0:var(--rrm-reference-ink)!important;
  --ui-on-surface-2:var(--rrm-reference-ink)!important;
  --ui-text-muted:var(--rrm-reference-ink-soft)!important;
  --ui-border-subtle:var(--rrm-reference-line)!important;
  --ui-border:var(--rrm-reference-line)!important;
  --ui-icon-primary:var(--rrm-reference-ink)!important;
  --ui-icon-secondary:var(--rrm-reference-ink-soft)!important;
  --ui-focus-ring:var(--rrm-reference-gold)!important;
}

html body.game-active.rrmModernUiP485 .hudTop.rrmReferenceHudP102696{
  position:fixed!important;
  top:clamp(6px,8.2vh,78px)!important;
  left:50%!important;right:auto!important;
  display:block!important;
  width:1600px!important;max-width:none!important;
  height:114px!important;min-height:114px!important;max-height:114px!important;
  margin:0!important;padding:10px 16px!important;gap:0!important;
  overflow:visible!important;white-space:normal!important;
  border:2px solid var(--rrm-reference-line)!important;
  border-radius:58px!important;
  color:var(--rrm-reference-ink)!important;
  background:linear-gradient(155deg,#fff9e6 0%,#f9efd4 51%,#eee2be 100%)!important;
  box-shadow:0 4px 0 rgba(30,65,54,.18),0 9px 16px rgba(7,29,22,.23)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  transform:translateX(-50%) scale(var(--rrm-reference-hud-scale-p102696,.52))!important;
  transform-origin:top center!important;
  z-index:var(--rrm-z-hud,20000)!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
html body.game-active.rrmModernUiP485 .hudTop.rrmReferenceHudP102696::before{
  content:"";position:absolute;inset:10px;border:2px dashed rgba(94,123,98,.38);
  border-radius:46px;pointer-events:none;z-index:0;
}
.rrmReferenceHudInnerP102696{
  position:relative;z-index:1;display:grid!important;
  grid-template-columns:90px 445px 364px 113px 310px 85px 80px 62px;
  grid-template-areas:"notice colony calendar clock camera save settings toggle";
  align-items:center;width:100%;height:100%;white-space:nowrap;
}
.rrmReferenceHudInnerP102696>*{min-width:0;order:0!important;}
.rrmReferenceNoticeP102696{grid-area:notice;height:90px;display:grid;place-items:center;position:relative;}
.rrmReferenceBellP102696{
  position:relative;width:70px;height:70px;display:grid;place-items:center;
  border:3px solid #90a89a;border-radius:50%;color:var(--rrm-reference-ink);
  background:linear-gradient(#fffae7,#f0e5c8);
  box-shadow:0 1px 0 #fff8,0 3px 5px #233d2966;
}
.rrmReferenceBellP102696::after{content:"";position:absolute;inset:7px;border:1.5px solid #c6c3a2;border-radius:50%;pointer-events:none;}
.rrmReferenceBellP102696 svg{width:37px;height:37px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.rrmReferenceNoticeCountP102696{position:absolute;top:calc(100% - 14px);left:50%;transform:translateX(-50%);z-index:2;display:grid;place-items:center;width:36px;height:34px;box-sizing:border-box;border:3px solid var(--rrm-reference-gold);border-radius:22px;color:#fff4dc;background:#214d41;box-shadow:0 3px 2px #17352744;font:800 18px/1 Arial,Helvetica,sans-serif;}
.rrmReferenceNoticeCountP102696[hidden]{display:none!important;}
.rrmReferenceColonyP102696{grid-area:colony;height:90px;min-width:0;padding:0 12px 0 16px;display:flex;flex-direction:column;justify-content:center;gap:5px;border-left:2px solid rgba(69,104,80,.52);}
.rrmReferenceBrandP102696{overflow:hidden;color:#2b5649;font-size:17px;line-height:1.1;font-weight:800;letter-spacing:.065em;text-overflow:ellipsis;}
.rrmReferenceColonyButtonP102696{
  min-width:0!important;width:100%;height:auto!important;min-height:0!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;
  overflow:hidden!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;color:#234c41!important;text-align:left!important;white-space:nowrap!important;
  font:700 32px/1.04 Georgia,"Times New Roman",serif!important;letter-spacing:-.025em!important;
}
.rrmReferenceColonyButtonP102696:hover{filter:none!important;background:transparent!important;}
.rrmReferenceColonyButtonP102696:focus-visible{outline:3px solid var(--rrm-reference-gold)!important;outline-offset:2px!important;border-radius:8px!important;}
.rrmReferenceMoraleTrackP102696{display:block;flex:0 0 84px;width:84px;height:21px;overflow:hidden;border:2px solid #3d695a;border-radius:18px;background:#6d786b;box-shadow:inset 0 2px 3px #0003;}
.rrmReferenceMoraleTrackP102696 span{display:block;width:0;height:100%;background:linear-gradient(90deg,#2e9456,#bae47c);transition:width .25s ease;}
.rrmReferenceMoraleTextP102696{flex:0 0 auto;font:800 16px/1 Arial,Helvetica,sans-serif;letter-spacing:0;}
.rrmReferenceMoraleTextP102696 b{font-weight:800;}
.rrmReferenceCalendarP102696{grid-area:calendar;width:100%!important;min-width:0!important;max-width:none!important;height:90px;padding:0 12px 0 16px!important;display:flex!important;align-items:center!important;gap:15px!important;overflow:hidden!important;border-left:2px solid rgba(69,104,80,.52)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.rrmReferenceClimateIconP102696{flex:0 0 49px;width:49px;height:49px;fill:none;stroke:#dfa63f;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.rrmReferenceCalendarCopyP102696{display:flex;min-width:0;flex-direction:column;justify-content:center;gap:7px;color:#234c41;}
.rrmReferenceCalendarCopyP102696 strong{font:700 34px/1 Georgia,"Times New Roman",serif;letter-spacing:-.025em;white-space:nowrap;}
.rrmReferenceCalendarCopyP102696 small{overflow:hidden;color:#31574b;font:750 15px/1.1 Arial,Helvetica,sans-serif;letter-spacing:-.017em;text-overflow:ellipsis;white-space:nowrap;}
.rrmReferenceCalendarCopyP102696 #seasonHudP641{display:inline!important;}
.rrmReferenceCalendarCopyP102696 #seasonHudP641::after{content:" · ";color:var(--rrm-reference-gold);}
.rrmReferenceCalendarCopyP102696 #weatherLabel,.rrmReferenceCalendarCopyP102696 #outsideTemp{display:inline!important;}
.rrmReferenceDotP102696{color:var(--rrm-reference-gold);}
.rrmReferenceClockP102696{grid-area:clock;height:65px;display:grid;place-items:center;border-left:2px solid rgba(69,104,80,.52);color:#234c41;font:700 31px/1 Georgia,"Times New Roman",serif;letter-spacing:-.035em;}
.rrmReferenceCameraP102696{grid-area:camera;height:65px;padding-left:9px;display:flex;align-items:center;justify-content:center;gap:7px;border-left:2px solid rgba(69,104,80,.52);}
.rrmReferenceCameraP102696 .iconOnly,.rrmReferenceSaveP102696,.rrmReferenceSettingsP102696{
  flex:0 0 56px!important;width:56px!important;min-width:56px!important;max-width:56px!important;
  height:57px!important;min-height:57px!important;max-height:57px!important;padding:0!important;
  display:grid!important;place-items:center!important;border:2px solid #88a99a!important;border-radius:15px!important;
  color:#234c41!important;background:linear-gradient(#fff8e4,#f1e5c8)!important;
  box-shadow:0 2px 2px rgba(23,62,41,.14)!important;font:800 26px/1 Arial,Helvetica,sans-serif!important;
}
.rrmReferenceCameraP102696 .iconOnly:hover,.rrmReferenceSaveP102696:hover,.rrmReferenceSettingsP102696:hover{filter:brightness(1.04);}
.rrmReferencePlaybackGroupP102696{flex:0 0 auto;height:61px;box-sizing:border-box;padding:0;display:flex;align-items:center;justify-content:center;gap:0;border:2px solid #739786;border-radius:20px;background:linear-gradient(#265b4d,#1d4c41);box-shadow:0 2px 0 #fff8,inset 0 1px 1px #fff4;}
.rrmReferencePlaybackGroupP102696 #pauseBtn,.rrmReferencePlaybackGroupP102696 #speedBtn{border:0!important;border-radius:13px!important;background:transparent!important;box-shadow:none!important;color:#fff8e2!important;}
.rrmReferencePlaybackGroupP102696 #pauseBtn{border-right:1px solid rgba(255,248,226,.38)!important;}
.rrmReferenceCameraP102696 #pauseBtn{flex-basis:46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;}
.rrmReferenceCameraP102696 #speedBtn{
  flex-basis:56px!important;width:56px!important;min-width:56px!important;max-width:56px!important;
  border-color:transparent!important;border-radius:15px!important;color:transparent!important;
  background:transparent!important;box-shadow:none!important;
  font-size:0!important;letter-spacing:0!important;gap:0!important;justify-content:center!important;text-align:center!important;
}
.rrmReferenceCameraP102696 #speedBtn::before{content:none!important;display:none!important;}
.rrmReferencePlaybackGroupP102696 #speedBtn.hasUiSpriteIcon{min-width:56px!important;padding:0!important;gap:0!important;justify-content:center!important;text-align:center!important;font-size:0!important;color:transparent!important;}
.rrmReferenceCameraP102696 #speedBtn.hasUiSpriteIcon .uiSpriteIcon{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:22px!important;max-height:22px!important;flex:0 0 22px!important;}
.rrmReferenceSaveP102696{grid-area:save;height:63px!important;flex-basis:68px!important;width:68px!important;min-width:68px!important;max-width:68px!important;margin-left:12px!important;border-left:2px solid rgba(69,104,80,.52)!important;}
.rrmReferenceSettingsP102696{grid-area:settings;height:61px!important;flex-basis:61px!important;width:61px!important;min-width:61px!important;max-width:61px!important;margin-left:11px!important;border:3px solid #cbb06e!important;border-radius:50%!important;background:#fff7df!important;box-shadow:inset 0 0 0 2px #94ae9d,0 4px 5px #13342135!important;}
.rrmReferenceTopToggleP102696{grid-area:toggle;height:65px;width:62px;display:grid;place-items:center;border:0;border-left:2px solid rgba(69,104,80,.52);background:transparent;color:#234c41;font:700 25px/1 Arial,Helvetica,sans-serif;}
.rrmReferenceTopToggleP102696 span{display:block;transform:rotate(0deg);}
.rrmReferenceHudLegacyP102696{display:none!important;}
.rrmReferenceHiddenP102696{display:none!important;}
html body.game-active.rrmModernUiP485 .hudTop.rrmReferenceHudP102696>.gameVersionLabel{display:none!important;}

html body.game-active.rrmModernUiP485 .hudTop.rrmReferenceHudP102696.rrmReferenceHudCollapsedP102696{width:175px!important;height:74px!important;min-height:74px!important;max-height:74px!important;padding:5px 12px!important;border-radius:38px!important;}
html body.game-active.rrmModernUiP485 .hudTop.rrmReferenceHudP102696.rrmReferenceHudCollapsedP102696::before{inset:6px;border-radius:30px;}
.rrmReferenceHudCollapsedP102696 .rrmReferenceHudInnerP102696{display:flex!important;justify-content:center;}
.rrmReferenceHudCollapsedP102696 .rrmReferenceHudInnerP102696>*:not(.rrmReferenceTopToggleP102696){display:none!important;}
.rrmReferenceHudCollapsedP102696 .rrmReferenceTopToggleP102696{height:100%;width:100%;border:0;}
.rrmReferenceHudCollapsedP102696 .rrmReferenceTopToggleP102696 span{transform:rotate(180deg);}

html body.game-active.rrmModernUiP485 .hudBottom[data-command-dock-ready="true"]{
  position:fixed!important;left:50%!important;right:auto!important;bottom:max(4px,env(safe-area-inset-bottom,0px))!important;
  width:min(760px,calc(100vw - 12px))!important;max-width:760px!important;margin:0!important;padding:0!important;
  display:flex!important;flex-direction:column-reverse!important;align-items:center!important;justify-content:flex-start!important;
  gap:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;backdrop-filter:none!important;transform:translateX(-50%)!important;z-index:var(--rrm-z-hud,20000)!important;
}
html body.game-active.rrmModernUiP485 .hudBottom[data-command-dock-ready="true"]>#bottomCommandDockToggle{
  position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 34px!important;width:230px!important;min-width:230px!important;max-width:230px!important;
  height:34px!important;min-height:34px!important;max-height:34px!important;margin:0!important;padding:0 10px!important;gap:7px!important;
  overflow:hidden!important;border:1px solid var(--rrm-reference-line)!important;border-radius:18px!important;
  color:var(--rrm-reference-ink)!important;background:linear-gradient(155deg,#fff9e6,#f1e4c0)!important;
  box-shadow:0 3px 0 rgba(30,65,54,.18),0 5px 10px rgba(7,29,22,.2)!important;font:900 10px/1 Arial,Helvetica,sans-serif!important;
  letter-spacing:.12em!important;white-space:nowrap!important;text-indent:0!important;
}
.hudBottom[data-command-dock-state="collapsed"]>.buttons{display:none!important;}
.hudBottom[data-command-dock-state="expanded"]>.buttons{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;width:max-content!important;max-width:100%!important;min-width:0!important;
  max-height:76px!important;margin:0 0 -5px!important;padding:8px!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;
  border:2px solid var(--rrm-reference-line)!important;border-radius:23px!important;
  background:linear-gradient(155deg,#fff9e6,#eee2be)!important;color:var(--rrm-reference-ink)!important;
  box-shadow:0 4px 0 rgba(30,65,54,.18),0 9px 16px rgba(7,29,22,.23)!important;
}
body.game-active.rrmModernUiP485 .hudBottom[data-command-dock-ready="true"]>#bottomCommandDockToggle::after{
  content:"COMANDOS DA COLÔNIA";display:block;flex:0 0 auto;font:900 10px/1 Arial,Helvetica,sans-serif;letter-spacing:.12em;
}
body.game-active.rrmModernUiP485 .hudBottom[data-command-dock-ready="true"]>#bottomCommandDockToggle>.uiSpriteIcon{
  display:block!important;flex:0 0 14px!important;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;
}
html body.game-active.rrmModernUiP485 .hudBottom .gameVersionLabel{display:none!important;}

/* Keep popup markup and actions intact; only apply the reference type and palette. */
html body.game-active.rrmModernUiP485 :is(.panel,.sidePanel,.buildMenu,.objectPopup,.mobileDrawer,.areaModePanel,.eventAlert,.rrmModernPanel,[role="dialog"],dialog){
  color:var(--rrm-reference-ink)!important;
  border-color:var(--rrm-reference-line)!important;
  background:linear-gradient(155deg,#fff9e6 0%,#f9efd4 51%,#eee2be 100%)!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
html body.game-active.rrmModernUiP485 :is(.panel,.sidePanel,.buildMenu,.objectPopup,.mobileDrawer,.areaModePanel,.eventAlert,.rrmModernPanel,[role="dialog"],dialog) :is(h1,h2,h3,h4,.objectPopupHeader,.sidePanelHeader,.panelHeader,.eventAlertTitle){
  color:#234c41!important;font-family:Georgia,"Times New Roman",serif!important;
}
html body.game-active.rrmModernUiP485 :is(.panel,.sidePanel,.buildMenu,.objectPopup,.mobileDrawer,.areaModePanel,.eventAlert,.rrmModernPanel,[role="dialog"],dialog) :is(button,input,select,textarea){
  color:var(--rrm-reference-ink);font-family:Arial,Helvetica,sans-serif;
}
html body.game-active.rrmModernUiP485 :is(.panel,.sidePanel,.buildMenu,.objectPopup,.mobileDrawer,.areaModePanel,.eventAlert,.rrmModernPanel,[role="dialog"],dialog) :is(p,small,.muted,.hint){color:var(--rrm-reference-ink-soft);}

@media(prefers-reduced-motion:reduce){.rrmReferenceMoraleTrackP102696 span{transition:none!important;}}

/* The approved rail is a single 1600 x 114 composition. Keep its internal
   geometry intact at every viewport size and defeat the game's generic
   minimum button sizes and skin rules only within this HUD. */
html body.game-active.rrmModernUiP485 #gameRoot .hudTop.rrmReferenceHudP102696{
  --rrm-reference-safe-left:env(safe-area-inset-left,0px);
  --rrm-reference-safe-right:env(safe-area-inset-right,0px);
  box-sizing:border-box!important;
  top:clamp(10px,8.22vh,78px)!important;
  left:calc(50% + (var(--rrm-reference-safe-left) - var(--rrm-reference-safe-right))/2)!important;
  width:1600px!important;min-width:1600px!important;max-width:1600px!important;
  height:114px!important;min-height:114px!important;max-height:114px!important;
  padding:10px 16px!important;border-radius:51px!important;
  transform:translateX(-50%) scale(var(--rrm-reference-hud-scale-p102696,.5))!important;
  transform-origin:top center!important;
}
@media(max-height:540px), (pointer:coarse) and (orientation:landscape){
  html body.game-active.rrmModernUiP485 #gameRoot .hudTop.rrmReferenceHudP102696{top:max(8px,env(safe-area-inset-top,0px))!important;}
}
html body.game-active.rrmModernUiP485 #gameRoot .hudTop.rrmReferenceHudP102696.rrmReferenceDesktopCompactP102708{
  top:max(10px,env(safe-area-inset-top,0px))!important;
}
#gameRoot .rrmReferenceHudP102696::before{inset:10px!important;border:2px dashed rgba(94,123,98,.38)!important;border-radius:42px!important;}
#gameRoot .rrmReferenceHudInnerP102696{
  display:grid!important;grid-template-columns:90px 445px 364px 113px 310px 85px 80px 62px!important;
  grid-template-areas:"notice colony calendar clock camera save settings toggle"!important;
  align-items:center!important;width:100%!important;height:100%!important;gap:0!important;
}
#gameRoot .rrmReferenceHudInnerP102696>*{min-width:0!important;order:0!important;}
#gameRoot .rrmReferenceHudP102696 :is(button,section,div,span,small,strong){text-shadow:none!important;}

#gameRoot .rrmReferenceNoticeP102696{height:90px!important;}
#gameRoot #referenceNoticeBtnP102696{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:70px!important;min-width:70px!important;max-width:70px!important;height:70px!important;min-height:70px!important;max-height:70px!important;
  padding:0!important;border:3px solid #90a89a!important;border-radius:50%!important;color:#234c41!important;
  background:linear-gradient(#fffae7,#f0e5c8)!important;box-shadow:0 1px 0 #fff8,0 3px 5px #233d2966!important;
}
#gameRoot #referenceNoticeBtnP102696 svg{display:block!important;width:37px!important;height:37px!important;fill:none!important;stroke:#234c41!important;}
#gameRoot #referenceNoticeCountP102696{top:55px!important;width:36px!important;height:34px!important;font:800 20px/1 Arial,Helvetica,sans-serif!important;}
#gameRoot #referenceNoticeCountP102696[hidden]{display:none!important;}

#gameRoot .rrmReferenceColonyP102696{
  height:90px!important;min-height:0!important;padding:0 7px 0 16px!important;gap:6px!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;border-left:2px solid rgba(69,104,80,.52)!important;
}
#gameRoot .rrmReferenceBrandP102696{display:block!important;color:#2b5649!important;font:800 17px/1.1 Arial,Helvetica,sans-serif!important;letter-spacing:.065em!important;}
#gameRoot #referenceColonyButtonP102696{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:15px!important;
  border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
  color:#234c41!important;font:700 32px/1.04 Georgia,"Times New Roman",serif!important;letter-spacing:-.025em!important;
}
#gameRoot #referenceColonyNameP102696{flex:0 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-family:inherit!important;font-weight:inherit!important;font-size:var(--rrm-reference-colony-name-size,32px)!important;line-height:1.04!important;letter-spacing:inherit!important;}
#gameRoot .rrmReferenceMoraleTrackP102696{display:block!important;box-sizing:border-box!important;flex:0 0 84px!important;width:84px!important;min-width:84px!important;height:21px!important;border:2px solid #3d695a!important;border-radius:18px!important;}
#gameRoot .rrmReferenceMoraleTextP102696{display:block!important;flex:0 0 auto!important;color:#234c41!important;font:800 16px/1 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;}

#gameRoot .rrmReferenceCalendarP102696{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  width:100%!important;min-width:0!important;max-width:none!important;height:90px!important;min-height:0!important;max-height:none!important;
  padding:0 12px 0 16px!important;gap:16px!important;overflow:hidden!important;
  border:0!important;border-left:2px solid rgba(69,104,80,.52)!important;border-radius:0!important;
  background:transparent!important;background-image:none!important;box-shadow:none!important;
}
#gameRoot .rrmReferenceClimateIconP102696{display:block!important;flex:0 0 49px!important;width:49px!important;height:49px!important;fill:none!important;stroke:#dfa63f!important;}
#gameRoot .rrmReferenceCalendarCopyP102696{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important;color:#234c41!important;}
#gameRoot .rrmReferenceCalendarCopyP102696 strong{display:block!important;color:#234c41!important;font:700 34px/1 Georgia,"Times New Roman",serif!important;letter-spacing:-.025em!important;white-space:nowrap!important;}
#gameRoot .rrmReferenceCalendarCopyP102696 small{display:block!important;overflow:hidden!important;color:#31574b!important;font:750 15px/1.05 Arial,Helvetica,sans-serif!important;letter-spacing:-.017em!important;white-space:nowrap!important;text-overflow:ellipsis!important;}
#gameRoot :is(#referenceSeasonP102704,#weatherLabel,#outsideTemp){display:inline!important;color:#31574b!important;font:inherit!important;text-shadow:none!important;}
#gameRoot #seasonHudP641{display:none!important;}
#gameRoot .rrmReferenceClockP102696{height:65px!important;color:#234c41!important;font:700 31px/1 Georgia,"Times New Roman",serif!important;}
#gameRoot .rrmReferenceClockP102696 #time{font:inherit!important;color:inherit!important;}

#gameRoot .rrmReferenceCameraP102696{height:65px!important;padding-left:9px!important;gap:13px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
#gameRoot .rrmReferenceCameraP102696>*{order:0!important;}
html body.game-active #gameRoot :is(#zoomOut,#zoomIn,#saveBtn,#settingsHudBtn){
  box-sizing:border-box!important;appearance:none!important;display:grid!important;place-items:center!important;
  width:56px!important;min-width:56px!important;max-width:56px!important;height:57px!important;min-height:57px!important;max-height:57px!important;
  flex:0 0 56px!important;margin:0!important;padding:0!important;border:2px solid #88a99a!important;border-radius:15px!important;
  color:#234c41!important;background:linear-gradient(#fff8e4,#f1e5c8)!important;box-shadow:0 2px 2px rgba(23,62,41,.14)!important;
}
html body.game-active #gameRoot #saveBtn{width:68px!important;min-width:68px!important;max-width:68px!important;height:63px!important;min-height:63px!important;max-height:63px!important;margin-left:12px!important;}
html body.game-active #gameRoot #settingsHudBtn{width:61px!important;min-width:61px!important;max-width:61px!important;height:61px!important;min-height:61px!important;max-height:61px!important;margin-left:11px!important;border:3px solid #cbb06e!important;border-radius:50%!important;background:#fff7df!important;box-shadow:inset 0 0 0 2px #94ae9d,0 4px 5px #13342135!important;}
#gameRoot :is(#zoomOut,#zoomIn,#saveBtn,#settingsHudBtn)>.uiSpriteIcon{display:none!important;}
#gameRoot .rrmReferenceIconP102704{display:block!important;width:32px!important;height:32px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none!important;}
#gameRoot #saveBtn .rrmReferenceIconP102704{width:37px!important;height:37px!important;}

#gameRoot .rrmReferencePlaybackGroupP102696{box-sizing:border-box!important;flex:0 0 143px!important;width:143px!important;height:57px!important;padding:0!important;border:2px solid #739786!important;border-radius:20px!important;background:linear-gradient(#265b4d,#1d4c41)!important;}
html body.game-active #gameRoot #referenceSpeedButtonP102704{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;
  width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;
  padding:0!important;border:0!important;border-radius:18px!important;color:#fff8e2!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
  font:800 28px/1 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;text-indent:0!important;
}
#gameRoot #referenceSpeedButtonP102704 .uiSpriteIcon{display:none!important;}
#gameRoot #referenceSpeedValueP102709{display:block!important;color:#fff8e2!important;font:inherit!important;letter-spacing:0!important;line-height:1!important;}

html body.game-active #gameRoot #referenceTopToggleP102696{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;width:62px!important;min-width:62px!important;max-width:62px!important;
  height:65px!important;min-height:65px!important;max-height:65px!important;padding:0!important;margin:0!important;
  border:0!important;border-left:2px solid rgba(69,104,80,.52)!important;border-radius:0!important;color:#234c41!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
#gameRoot #referenceTopToggleP102696 .rrmReferenceIconP102704{width:24px!important;height:24px!important;}
html body.game-active.rrmModernUiP485 #gameRoot .hudTop.rrmReferenceHudCollapsedP102696{width:175px!important;min-width:175px!important;max-width:175px!important;height:74px!important;min-height:74px!important;max-height:74px!important;padding:5px 12px!important;border-radius:38px!important;}
#gameRoot .rrmReferenceHudCollapsedP102696::before{inset:6px!important;border-radius:30px!important;}
#gameRoot .rrmReferenceHudCollapsedP102696 .rrmReferenceHudInnerP102696{display:flex!important;justify-content:center!important;}
#gameRoot .rrmReferenceHudCollapsedP102696 .rrmReferenceHudInnerP102696>*:not(#referenceTopToggleP102696){display:none!important;}
html body.game-active #gameRoot .rrmReferenceHudCollapsedP102696 #referenceTopToggleP102696{width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;border:0!important;}
#gameRoot .rrmReferenceHudCollapsedP102696 #referenceTopToggleP102696 svg{transform:rotate(180deg)!important;}

/* The compact handle keeps the same dimensions in both states; the command
   icons remain the actual icon collection chosen in Settings. */
html body.game-active.rrmModernUiP485 #referenceBottomHudP102704[data-command-dock-ready="true"]{
  bottom:max(0px,env(safe-area-inset-bottom,0px))!important;gap:0!important;
}
html body.game-active.rrmModernUiP485 #referenceBottomHudP102704 #bottomCommandDockToggle{
  box-sizing:border-box!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex:0 0 28px!important;width:190px!important;min-width:190px!important;max-width:190px!important;
  height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:0 12px!important;gap:5px!important;
  border:1px solid #8fa79a!important;border-radius:15px!important;color:#234c41!important;
  background:linear-gradient(155deg,#fff9e6,#f1e4c0)!important;box-shadow:0 3px 0 rgba(30,65,54,.18),0 5px 10px rgba(7,29,22,.2)!important;
}
#referenceBottomHudP102704 #bottomCommandDockToggle::after{content:none!important;display:none!important;}
#referenceBottomHudP102704 #bottomCommandDockToggle>.uiSpriteIcon{display:none!important;}
#referenceBottomHudP102704 #bottomCommandDockToggle>.rrmReferenceDockLabelP102704{display:block!important;flex:0 0 auto!important;color:#234c41!important;font:900 8px/1 Arial,Helvetica,sans-serif!important;letter-spacing:.1em!important;white-space:nowrap!important;}
#referenceBottomHudP102704 #bottomCommandDockToggle>.rrmReferenceDockArrowP102704{display:block!important;flex:0 0 12px!important;width:12px!important;height:12px!important;fill:none!important;stroke:#234c41!important;stroke-width:2.4!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
#referenceBottomHudP102704[data-command-dock-state="expanded"] #bottomCommandDockToggle>.rrmReferenceDockArrowP102704{transform:rotate(180deg)!important;}
html body.game-active #referenceBottomHudP102704[data-command-dock-state="expanded"]>#bottomCommandDockCommands{
  box-sizing:border-box!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:max-content!important;max-width:100%!important;min-width:0!important;max-height:none!important;margin:0!important;padding:6px!important;gap:6px!important;
  overflow-x:auto!important;overflow-y:hidden!important;border:2px solid #8fa79a!important;border-radius:18px!important;
  background:linear-gradient(155deg,#fff9e6,#eee2be)!important;box-shadow:0 4px 0 rgba(30,65,54,.18),0 9px 16px rgba(7,29,22,.23)!important;
}
html body.game-active #referenceBottomHudP102704[data-command-dock-state="collapsed"]>#bottomCommandDockCommands{display:none!important;}
html body.game-active #referenceBottomHudP102704 #bottomCommandDockCommands>button{
  box-sizing:border-box!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;
  height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:0!important;gap:0!important;
  align-items:center!important;justify-content:center!important;border:2px solid #99b0a0!important;border-radius:13px!important;
  background:linear-gradient(#fff8e7,#f1e2be)!important;box-shadow:0 3px 0 #7d9b8d,0 4px 5px #183c2959!important;font-size:0!important;
}
#referenceBottomHudP102704 #bottomCommandDockCommands>button>.uiSpriteIcon{display:block!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;margin:0!important;transform:none!important;}
html body.game-active #referenceBottomHudP102704[data-command-dock-state="expanded"] #bottomCommandDockCommands>:is(#markBtn,#buildBtn,#workBtn,#researchBtn,#visitorsBtn,#externalMapBtn,#bottomCommandDockDebugToggle):not([hidden]){
  display:grid!important;place-items:center!important;position:relative!important;transform:none!important;
  width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;max-height:46px!important;flex:0 0 46px!important;
}
html body.game-active #referenceBottomHudP102704 #bottomCommandDockCommands>button::before,
html body.game-active #referenceBottomHudP102704 #bottomCommandDockCommands>button::after{content:none!important;display:none!important;}
#referenceBottomHudP102704 #bottomCommandDockCommands>button>.uiSpriteIcon{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;}

/* Several existing mobile modal rules carry two ID-level exclusions. Match
   their priority for colors and fonts without changing the popup layout. */
html body.game-active.rrmModernUiP485 :is(.panel,.sidePanel,.buildMenu,.objectPopup,.mobileDrawer,.areaModePanel,.eventAlert,.rrmModernPanel,[role="dialog"],dialog):not(#rrmReferencePaletteGuard):not(#rrmReferencePaletteGuard):not(#rrmReferencePaletteGuard){
  color:#234c41!important;border-color:#8fa79a!important;background:linear-gradient(155deg,#fff9e6 0%,#f9efd4 51%,#eee2be 100%)!important;font-family:Arial,Helvetica,sans-serif!important;
}
html body.game-active.rrmModernUiP485 :is(.panel,.sidePanel,.buildMenu,.objectPopup,.mobileDrawer,.areaModePanel,.eventAlert,.rrmModernPanel,[role="dialog"],dialog):not(#rrmReferencePaletteGuard):not(#rrmReferencePaletteGuard):not(#rrmReferencePaletteGuard) :is(h1,h2,h3,h4,.objectPopupHeader,.sidePanelHeader,.panelHeader,.eventAlertTitle){
  color:#234c41!important;font-family:Georgia,"Times New Roman",serif!important;text-shadow:none!important;
}
