/* Cosmo Chart 0.11.25 — coherent drawing rail footer.
   Loaded after all historic rail CSS. Upper drawing-tool rail untouched. */
#cosmo-tool-rail .cosmo-rail-footer {
  flex:0 0 auto!important; margin-top:auto!important;
  padding:8px 3px 4px!important; gap:6px!important;
  border-top:1px solid var(--mono-border,#3a4452);
  background:transparent!important;
  display:flex!important; flex-direction:column!important;
}
#cosmo-tool-rail .cosmo-footer-history,
#cosmo-tool-rail .cosmo-footer-actions {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px!important; width:100%!important;
}
/* Use the full rail width for history labels on tall screens. */
#cosmo-tool-rail .cosmo-footer-history {
  grid-template-columns:1fr!important;
  gap:3px!important;
}
#cosmo-tool-rail .cosmo-footer-history > button,
#cosmo-tool-rail .cosmo-footer-actions > button {
  box-sizing:border-box!important; display:flex!important; flex-direction:column!important;
  align-items:center!important; justify-content:center!important;
  min-width:0!important; width:100%!important;
  height:47px!important; min-height:47px!important; max-height:47px!important;
  padding:4px 1px!important; gap:3px!important;
  border:1px solid transparent!important; border-radius:9px!important;
  background:transparent!important; color:var(--mono-text,#e5e9ee)!important;
  cursor:pointer!important; transition:background-color .13s,border-color .13s!important;
  font:500 9px/11px system-ui,sans-serif!important; letter-spacing:-.1px;
}
#cosmo-tool-rail .cosmo-footer-history > button {
  flex-direction:row!important;height:33px!important;min-height:33px!important;
  max-height:33px!important;gap:6px!important;
  font:500 10px/12px system-ui,sans-serif!important;
}
#cosmo-tool-rail .cosmo-footer-history > button:hover,
#cosmo-tool-rail .cosmo-footer-actions > button:hover {
  background:var(--mono-raise,#29384a)!important;
  border-color:var(--mono-border,#3a4452)!important;
}
#cosmo-tool-rail .cosmo-footer-history > button:focus-visible,
#cosmo-tool-rail .cosmo-footer-actions > button:focus-visible {
  outline:2px solid var(--mono-focus,#65a9f4)!important;outline-offset:-2px!important;
}
#cosmo-tool-rail .cosmo-footer-history > button svg,
#cosmo-tool-rail .cosmo-footer-actions > button svg.ico {
  width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;
  flex:none!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.75!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
#cosmo-tool-rail .cosmo-footer-history > button span,
#cosmo-tool-rail .cosmo-footer-actions > button .cosmo-footer-action-label,
#cosmo-tool-rail .cosmo-footer-actions > #bottom-trash span {
  display:block!important; position:static!important; visibility:visible!important;
  width:auto!important; height:auto!important; margin:0!important; padding:0!important;
  overflow:visible!important; clip:auto!important; white-space:nowrap!important;
  font:inherit!important; color:var(--mono-muted,#9fb2c7)!important;
}
#cosmo-tool-rail .cosmo-footer-actions > button .cosmo-footer-action-label {
  font-size:8px!important;letter-spacing:-.25px!important;
}
#cosmo-tool-rail .cosmo-footer-actions > #bottom-trash {
  grid-column:1 / -1!important; flex-direction:row!important;
  height:35px!important; min-height:35px!important; max-height:35px!important;
  gap:6px!important; color:var(--mono-danger,#ef868d)!important;
}
#cosmo-tool-rail .cosmo-footer-actions > #bottom-trash span {color:inherit!important}
#cosmo-tool-rail .cosmo-footer-actions > button[aria-pressed="true"] {
  background:color-mix(in srgb,var(--mono-focus,#65a9f4) 14%,transparent)!important;
  border-color:color-mix(in srgb,var(--mono-focus,#65a9f4) 38%,transparent)!important;
  color:#8fc9ff!important;
}
#cosmo-tool-rail .cosmo-footer-actions > button[aria-pressed="true"] span{color:inherit!important}
#cosmo-tool-rail[data-size="small"] .cosmo-footer-actions {grid-template-columns:repeat(2,minmax(0,1fr))!important}
#cosmo-tool-rail[data-size="small"] #bottom-trash {grid-column:1 / -1!important}
@media(max-height:700px){
  #cosmo-tool-rail .cosmo-footer-history{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  #cosmo-tool-rail .cosmo-rail-footer{gap:3px!important;padding:4px 2px 2px!important}
  #cosmo-tool-rail .cosmo-footer-history > button,
  #cosmo-tool-rail .cosmo-footer-actions > button{height:34px!important;min-height:34px!important;max-height:34px!important;gap:0!important}
  #cosmo-tool-rail .cosmo-footer-history > button span,
  #cosmo-tool-rail .cosmo-footer-actions > button .cosmo-footer-action-label{display:none!important}
  #cosmo-tool-rail .cosmo-footer-actions > #bottom-trash{height:29px!important;min-height:29px!important;max-height:29px!important}
}
@media(prefers-reduced-motion:reduce){
 #cosmo-tool-rail .cosmo-rail-footer button{transition:none!important}
}
