/* Cosmo Chart 0.11.20 – concise left rail. Core layout remains in style.css.
   No dummy controls. Visibility/lock/clear are direct toolbar actions. */
#cosmo-tool-rail{display:flex!important;flex-direction:column!important;min-height:0!important}
#cosmo-tool-rail .cosmo-tool-main{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:var(--mono-border,#40444d) transparent;gap:3px!important;justify-content:flex-start!important}
#cosmo-tool-rail .cosmo-rail-entry{--rail-row-height:clamp(33px,calc(var(--cosmo-rail-width)*.58),47px);height:var(--rail-row-height)!important;min-height:var(--rail-row-height)!important;max-height:var(--rail-row-height)!important;flex:0 0 var(--rail-row-height)!important}
#cosmo-tool-rail .cosmo-rail-key .tool-mark{display:flex;place-items:center;align-items:center;justify-content:center;max-height:24px!important;width:100%;overflow:visible}
#cosmo-tool-rail .cosmo-group-icon{display:block;width:23px;height:23px;flex:none}
#cosmo-tool-rail .cosmo-rail-footer{flex:0 0 auto!important;margin-top:auto!important;position:relative!important;border-top:1px solid var(--mono-border,#40444d);padding-top:7px!important;gap:6px!important;display:flex!important;flex-direction:column!important;width:100%;align-items:stretch}
#cosmo-tool-rail .cosmo-footer-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
#cosmo-tool-rail .cosmo-footer-history button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:39px!important;min-width:0;padding:5px 2px;border:1px solid var(--mono-border,#465060);border-radius:8px;background:var(--mono-panel,#20252c);color:var(--mono-text,#e7e8eb);font:600 10px system-ui,sans-serif;cursor:pointer}
#cosmo-tool-rail .cosmo-footer-history button:hover{background:var(--mono-raise,#343e4a)}
#cosmo-tool-rail .cosmo-footer-history button:focus-visible{outline:2px solid var(--mono-focus,#68a9ff);outline-offset:1px}
#cosmo-tool-rail .cosmo-footer-history button svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
#cosmo-object-toolbar[data-cosmo-position="true"]{transition:none!important;transform:none!important;right:auto!important;bottom:auto!important}
/* Small mode keeps keyboard/title accessibility and expands "Actions" on demand. */
@media(max-height:640px){
 #cosmo-tool-rail .cosmo-rail-entry{--rail-row-height:33px}
 #cosmo-tool-rail .cosmo-rail-footer{gap:3px!important;padding-top:4px!important}
 #cosmo-tool-rail .cosmo-footer-history button{min-height:27px!important}
 #cosmo-tool-rail .cosmo-footer-history button span{display:none}
}

/* 0.11.22: direct accessible eye / lock / trash row. No magnet or flyout. */
#cosmo-tool-rail .cosmo-footer-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%}
#cosmo-tool-rail .cosmo-footer-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:34px;padding:5px 2px;border:1px solid var(--mono-border,#465060);border-radius:8px;background:var(--mono-panel,#20252c);color:var(--mono-text,#e7e8eb);cursor:pointer}
#cosmo-tool-rail .cosmo-footer-actions button:hover{background:var(--mono-raise,#343e4a)}
#cosmo-tool-rail .cosmo-footer-actions button:focus-visible{outline:2px solid var(--mono-focus,#68a9ff);outline-offset:2px}
#cosmo-tool-rail .cosmo-footer-actions .ico{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
#cosmo-tool-rail .cosmo-footer-actions button[aria-pressed="true"]{border-color:#60a5fa;color:#8fc9ff;background:#234065}
#cosmo-tool-rail .cosmo-footer-actions .cosmo-footer-danger{color:var(--mono-danger,#f16a6a)}
#cosmo-tool-rail .cosmo-footer-actions .cosmo-footer-action-label,#cosmo-tool-rail .cosmo-footer-actions #bottom-trash span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#cosmo-tool-rail[data-size="small"] .cosmo-footer-actions{grid-template-columns:1fr}
@media(max-height:640px){#cosmo-tool-rail .cosmo-footer-actions button{min-height:30px}}
