/* SEDNIVO Board palette: icons first; show names only as accessible tooltips. */
body.ta-palette-enabled #taToolsDialog{
 width:min(292px,calc(100vw - 16px))!important;
 max-width:calc(100vw - 16px)!important;
 max-height:min(73dvh,630px)!important;
 overflow:auto!important;padding:0!important;
 border-radius:18px!important;
 overscroll-behavior:contain;
}
body.ta-palette-enabled #taToolsDialog>.tools{display:none!important}
#taCompactPalette{padding:10px 10px 12px;background:#fff;min-width:0}
#taCompactPalette .ta-palette-header{
 display:flex;align-items:center;justify-content:space-between;
 gap:12px;font:700 14px Georgia,serif;color:#071f4f;
 padding:5px 5px 9px;border-bottom:1px solid #e5eaf2;
}
#taCompactPalette .ta-palette-header button{
 width:32px;height:32px;padding:0;border-radius:50%;
 border:1px solid #dae3ef;background:#fff;font-size:22px;color:#071f4f;
}
#taPaletteGrid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:5px;padding-top:10px;align-items:start;
}
#taPaletteGrid .ta-palette-divider{
 grid-column:1/-1;height:1px;background:#e6edf5;margin:3px 2px;
}
#taPaletteGrid .ta-palette-icon{
 display:grid;place-items:center;position:relative;
 width:100%;min-width:0;height:43px;padding:0;
 border:1px solid #dde5f1;border-radius:10px;
 background:#f9fbfd;color:#113263;font:600 20px Georgia,serif;
 user-select:none;touch-action:manipulation;
}
#taPaletteGrid .ta-palette-icon:hover,
#taPaletteGrid .ta-palette-icon:focus-visible{
 background:#071f4f;color:#f2d78d;border-color:#071f4f;
 outline:none;box-shadow:none;
}
#taPaletteGrid .ta-palette-icon[disabled]{
 opacity:.34;pointer-events:none;
}
#taPaletteHint{
 position:fixed;z-index:999999;visibility:hidden;opacity:0;
 pointer-events:none;display:block;min-width:110px;
 padding:9px 12px;border:1px solid #c5d5e9;border-radius:9px;
 background:#071f4f;color:#f7d77e;font:500 12px system-ui,sans-serif;
 text-align:center;box-shadow:0 9px 25px #0415364d;
 white-space:normal;transition:opacity .09s ease;
}
#taPaletteHint.show{visibility:visible;opacity:1}
#taPaletteSettings[hidden]{display:none!important}
#taPaletteSettings{
 display:grid;grid-template-columns:1fr 1fr;gap:9px;
 border-top:1px solid #e5eaf2;padding:12px 4px 4px;margin-top:11px;
 color:#183454;font:500 12px system-ui,sans-serif;
}
#taPaletteSettings label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
#taPaletteSettings label:has(input[type=checkbox]){flex-direction:row;align-items:center}
#taPaletteSettings input[type=range]{max-width:130px;width:100%}
#taPaletteSettings input[type=number]{padding:7px;min-width:0;width:100%;font:inherit}
#taPaletteSettings input[type=checkbox]{width:auto;min-width:auto}
#palColors{display:flex;align-items:center;gap:9px}
#palColors .ta-palette-color{height:30px;width:30px;border-radius:50%;border:2px solid #ccd8e5}
body.canvas-first .ta-palette-enabled{color:#071f4f}
@media(max-width:790px){
 body.ta-palette-enabled #taToolsDialog{
  left:auto!important;right:7px!important;
  margin:0!important;bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;
  width:min(292px,calc(100vw - 14px))!important;
  max-width:calc(100vw - 14px)!important;
  max-height:min(72dvh,610px)!important;
 }
 #taPaletteGrid{gap:5px}
 #taPaletteGrid .ta-palette-icon{height:46px;font-size:20px}
}
