:root{
  --d12-native-safe-bottom:env(safe-area-inset-bottom,0px);
  --d12-telegram-safe-bottom:var(--tg-safe-area-inset-bottom,0px);
  --d12-telegram-content-safe-bottom:var(--tg-content-safe-area-inset-bottom,0px);
  --d12-nav-safe-bottom:max(var(--d12-native-safe-bottom),var(--d12-telegram-safe-bottom),var(--d12-telegram-content-safe-bottom));
  --d12-nav-row-height:42px;
  --d12-nav-icon-size:17px;
  --d12-nav-safe-padding:4px;
  --d12-nav-reserved-height:144px;
}
body.d12-unified-navigation{box-sizing:border-box;padding-bottom:var(--d12-nav-reserved-height)!important}
body.d12-unified-navigation .d12-unified-nav{
  box-sizing:border-box!important;position:fixed!important;inset:auto 0 0!important;z-index:1001!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,minmax(var(--d12-nav-row-height),max-content))!important;grid-auto-flow:row!important;
  align-content:start!important;gap:2px!important;width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;max-width:none!important;margin:0!important;
  padding:3px max(4px,env(safe-area-inset-right,0px)) var(--d12-nav-safe-padding) max(4px,env(safe-area-inset-left,0px))!important;
  overflow:visible!important;overscroll-behavior:contain!important;border:0!important;border-top:2px solid #b88a38!important;
  border-radius:0!important;background:#f4ebd8!important;box-shadow:0 -1px 5px #50371925!important;direction:ltr!important;
}
body.d12-unified-navigation .d12-unified-nav-item{
  box-sizing:border-box!important;display:flex!important;grid-column:span 1!important;grid-row:auto!important;
  align-self:stretch!important;justify-self:stretch!important;min-width:0!important;min-height:var(--d12-nav-row-height)!important;
  width:auto!important;height:auto!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:0!important;margin:0!important;padding:1px!important;overflow:visible!important;border:1px solid #bd9446!important;
  border-radius:5px!important;background:linear-gradient(180deg,#fff0bd,#e4c06b)!important;color:#581b24!important;
  font:700 clamp(7px,2.2vw,9px)/1.04 Georgia,serif!important;text-align:center!important;text-decoration:none!important;
  text-shadow:none!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;
  writing-mode:horizontal-tb!important;text-orientation:mixed!important;box-shadow:none!important;opacity:1!important;
}
/* Homepage D12 measured selectors are more specific than the shared base rules. Match them explicitly so their old 58px/hidden 3x2 overrides cannot clip the shared 3x3 nav. */
body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,minmax(var(--d12-nav-row-height),max-content))!important;grid-auto-flow:row!important;
  align-content:start!important;gap:2px!important;width:100%!important;height:auto!important;max-height:none!important;
  padding:3px max(4px,env(safe-area-inset-right,0px)) var(--d12-nav-safe-padding) max(4px,env(safe-area-inset-left,0px))!important;
  overflow:visible!important
}
body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom .roman-nav-item,
body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom .roman-nav-item:nth-child(7),
body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom .roman-nav-item:nth-child(8){
  box-sizing:border-box!important;grid-column:span 1!important;grid-row:auto!important;min-height:var(--d12-nav-row-height)!important;
  height:auto!important;max-height:none!important;overflow:visible!important;gap:0!important;padding:1px!important;
  font-size:clamp(7px,2.2vw,9px)!important;line-height:1.04!important;writing-mode:horizontal-tb!important
}
body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom .nav-symbol.nav-icon,
body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom .roman-nav-art{
  box-sizing:border-box!important;width:var(--d12-nav-icon-size)!important;height:var(--d12-nav-icon-size)!important;
  min-width:var(--d12-nav-icon-size)!important;min-height:var(--d12-nav-icon-size)!important;max-width:var(--d12-nav-icon-size)!important;
  max-height:var(--d12-nav-icon-size)!important;flex:none!important;object-fit:contain!important
}
@media(min-width:800px){body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom{grid-template-columns:repeat(9,minmax(0,1fr))!important;grid-template-rows:minmax(var(--d12-nav-row-height),max-content)!important}}
body.d12-unified-navigation .d12-unified-nav-item.active,body.d12-unified-navigation .d12-unified-nav-item[aria-current=page]{background:#07583e!important;color:#fff!important;border-color:#b88a38!important}
body.d12-unified-navigation .d12-unified-nav-item[disabled]{opacity:.65!important;cursor:not-allowed!important}
body.d12-unified-navigation .d12-unified-nav .nav-symbol.nav-icon{box-sizing:border-box!important;display:flex!important;flex:none!important;width:var(--d12-nav-icon-size)!important;height:var(--d12-nav-icon-size)!important;min-width:var(--d12-nav-icon-size)!important;min-height:var(--d12-nav-icon-size)!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;background:none!important}
body.d12-unified-navigation .d12-unified-nav .roman-nav-art{display:block!important;width:var(--d12-nav-icon-size)!important;height:var(--d12-nav-icon-size)!important;max-width:var(--d12-nav-icon-size)!important;max-height:var(--d12-nav-icon-size)!important;margin:0!important;object-fit:contain!important;object-position:center!important}
body.d12-unified-navigation .d12-unified-label{display:block!important;max-width:100%!important;min-width:0!important;max-height:none!important;overflow:visible!important;font:inherit!important;line-height:1.04!important;text-align:center!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important}
body.d12-unified-navigation .d12-unified-soon{display:block!important;max-width:100%!important;font:600 7px/1 Georgia,serif!important;white-space:nowrap!important}
body.d12-unified-navigation .d12-unified-hammer{font:700 18px/1 Georgia,serif!important}
body.d12-unified-navigation .d12-secondary-imperial-header{display:block;width:100%;max-width:760px;height:auto;margin:0 auto 10px;overflow:hidden;border-bottom:2px solid #b88a38;background:#13213b;line-height:0}
body.d12-unified-navigation .d12-secondary-imperial-header img{display:block;width:100%;height:auto;max-width:none;object-fit:contain;object-position:center}
body.d12-unified-navigation .rcw-imperial-header{height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
body.d12-unified-navigation .d12-offers-imperial-banner{display:block;width:100%;height:auto;max-height:none;margin:0 0 12px;object-fit:contain;object-position:center}
@media(max-width:360px){body.d12-unified-navigation .d12-unified-nav-item{font-size:7.1px!important}}
@media(min-width:800px){body.d12-unified-navigation .d12-unified-nav{grid-template-columns:repeat(9,minmax(0,1fr))!important;grid-template-rows:minmax(var(--d12-nav-row-height),max-content)!important;gap:4px!important;padding-inline:6px!important}body.d12-unified-navigation .d12-unified-nav-item{font-size:10px!important}}
@media(max-width:430px){body.d12-reference-shell.roman-imperial-page .app{height:auto!important;max-height:none!important;min-height:calc(100dvh - var(--d12-nav-reserved-height,144px))!important}}
@media(prefers-reduced-motion:reduce){body.d12-unified-navigation .d12-unified-nav-item{scroll-behavior:auto!important;transition:none!important}}
