/* Important declarations in this layer override legacy per-level important rules. */
@layer ipma-icons {
/* IPMA action icons – shared by training, evaluation, login and administration. */
[data-icon="arrow-left"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%205-7%207%207%207M5%2012h14%22/%3E%3C/svg%3E"); }
[data-icon="arrow-right"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%205%207%207-7%207M5%2012h14%22/%3E%3C/svg%3E"); }
[data-icon="check"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%2012%204%204%208-9%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3C/svg%3E"); }
[data-icon="close"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%207%2010%2010M17%207%207%2017%22/%3E%3C/svg%3E"); }
[data-icon="reset"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010a9%209%200%201%201%202%208M3%204v6h6%22/%3E%3Cpath%20d%3D%22M12%207v5l3%202%22/%3E%3C/svg%3E"); }
[data-icon="restart"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010a9%209%200%201%201%202%208M3%204v6h6m2-2%205%204-5%204z%22/%3E%3C/svg%3E"); }
[data-icon="brain"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205a3%203%200%200%200-6-1%204%204%200%200%200-3%206%204%204%200%200%200%201%207%204%204%200%200%200%208%202m0-14a3%203%200%200%201%206-1%204%204%200%200%201%203%206%204%204%200%200%201-1%207%204%204%200%200%201-8%202V5M7%209l-2%201m3%204-4%203m13-8%202%201m-3%204%204%203%22/%3E%3C/svg%3E"); }
[data-icon="brain-reset"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204a3%203%200%200%200-6%200%204%204%200%200%200-3%206%204%204%200%200%200%201%207%204%204%200%200%200%207%202V4m2%200a3%203%200%200%201%205%201%204%204%200%200%201%203%205M7%209l-2%201m3%204-4%203M15%2015a4%204%200%201%201-1%204m0-7v4h4%22/%3E%3C/svg%3E"); }
[data-icon="shuffle"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h3c5%200%207%2012%2012%2012h3m-4-4%204%204-4%204M3%2018h3c2%200%203-2%204-4m4-4c1-2%202-4%204-4h3m-4-4%204%204-4%204%22/%3E%3C/svg%3E"); }
[data-icon="bookmark"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%204a1%201%200%200%201%201-1h10a1%201%200%200%201%201%201v17l-6-4-6%204z%22/%3E%3C/svg%3E"); }
[data-icon="bookmark-filter"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204a1%201%200%200%201%201-1h12v10M5%204v17l6-4%203%202m0-7h8l-3%204v4l-2%201v-5z%22/%3E%3C/svg%3E"); }
[data-icon="filter"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204h18l-7%208v7l-4%202v-9z%22/%3E%3C/svg%3E"); }
[data-icon="grid"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Cpath%20d%3D%22m14%2018%203%203%205-6%22/%3E%3C/svg%3E"); }
[data-icon="book"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205C8%202%204%203%202%204v15c3-1%207-1%2010%202m0-16c4-3%208-2%2010-1v15c-3-1-7-1-10%202V5M5%208h4m6%200h4M5%2012h4m6%200h4%22/%3E%3C/svg%3E"); }
[data-icon="chart"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203v18h18M7%2016v-4m5%204V7m5%209v-6%22/%3E%3C/svg%3E"); }
[data-icon="refresh"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010a9%209%200%200%201%2015-5l3%203m0-6v6h-6m6%206a9%209%200%200%201-15%205l-3-3m0%206v-6h6%22/%3E%3C/svg%3E"); }
[data-icon="users"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M2%2021v-3a6%206%200%200%201%2012%200v3m3-18a4%204%200%200%201%200%208m1%203a5%205%200%200%201%204%205v2%22/%3E%3C/svg%3E"); }
[data-icon="user"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2021v-3a8%208%200%200%201%2016%200v3%22/%3E%3C/svg%3E"); }
[data-icon="user-plus"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M2%2021v-3a6%206%200%200%201%2012%200v3m4-10h6m-3-3v6%22/%3E%3C/svg%3E"); }
[data-icon="user-off"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M2%2021v-3a6%206%200%200%201%2012%200v3m3-10%205%205m0-5-5%205%22/%3E%3C/svg%3E"); }
[data-icon="user-check"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M2%2021v-3a6%206%200%200%201%2012%200v3m2-8%202%202%204-5%22/%3E%3C/svg%3E"); }
[data-icon="logout"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H4v16h5m1-8h11m-5-5%205%205-5%205%22/%3E%3C/svg%3E"); }
[data-icon="login"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%204h5v16h-5M3%2012h11M9%207l5%205-5%205%22/%3E%3C/svg%3E"); }
[data-icon="edit"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m15%204%205%205M4%2016%2016%204a3.5%203.5%200%200%201%205%205L9%2021H3z%22/%3E%3C/svg%3E"); }
[data-icon="eraser"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m4%2013%209-9a2%202%200%200%201%203%200l5%205a2%202%200%200%201%200%203l-9%209H7l-4-5a2%202%200%200%201%201-3m4-4%209%209M12%2021h9%22/%3E%3C/svg%3E"); }
[data-icon="trash"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7m4-7v7%22/%3E%3C/svg%3E"); }
[data-icon="save"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203h13l4%204v14H3V3h1m3%200v6h10V3M7%2021v-8h10v8%22/%3E%3C/svg%3E"); }
[data-icon="archive"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%225%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M5%208v13h14V8m-9%204h4m-2%200v5m-3-2%203%203%203-3%22/%3E%3C/svg%3E"); }
[data-icon="sparkles"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%203%206%206%203-6%203-3%206-3-6-6-3%206-3zm7%200v4m-2-2h4M4%2017v4m-2-2h4%22/%3E%3C/svg%3E"); }
[data-icon="details"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%223%22/%3E%3Cpath%20d%3D%22M8%207v10m4-10h5m-5%205h5m-5%205h5%22/%3E%3C/svg%3E"); }
[data-icon="list-check"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%205%202%202%203-4m4%203h9M3%2012h5m4%200h9M3%2018h5m4%200h9%22/%3E%3C/svg%3E"); }
[data-icon="eye"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s4-7%2010-7%2010%207%2010%207-4%207-10%207S2%2012%202%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3C/svg%3E"); }
[data-icon="eye-off"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%203%2018%2018M9%205a13%2013%200%200%201%2013%207%2022%2022%200%200%201-4%205M6%206a21%2021%200%200%200-4%206s4%207%2010%207a13%2013%200%200%200%205-1m-7-8a3%203%200%200%200%204%204%22/%3E%3C/svg%3E"); }
[data-icon="key"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%225%22/%3E%3Cpath%20d%3D%22m12%2012%209%209m-3-3%203-3m-6%200%203-3%22/%3E%3C/svg%3E"); }
[data-icon="shield"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%204v6c0%206-9%2010-9%2010S3%2018%203%2012V6zm-4%2010%203%203%205-6%22/%3E%3C/svg%3E"); }
[data-icon="shield-reset"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%204v5M3%206l9-4M3%206v6c0%204%204%207%207%209m5-8a4%204%200%201%201-1%206m0-9v4h4%22/%3E%3C/svg%3E"); }
[data-icon="device-check"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%2214%22%20height%3D%2220%22%20rx%3D%223%22/%3E%3Cpath%20d%3D%22m8%2011%203%203%205-6M11%2018h2%22/%3E%3C/svg%3E"); }
[data-icon="device-reset"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11%2022H7a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h10a2%202%200%200%201%202%202v6m-4%205a4%204%200%201%201-1%204m0-7v4h4%22/%3E%3C/svg%3E"); }
[data-icon="gauge"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2019a10%2010%200%201%201%2016%200M12%2012l5-5M3%2012h2m14%200h2M12%202v2%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22/%3E%3C/svg%3E"); }
[data-icon="settings"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%203-1%203-3%201-2%204%202%202v3l4%203%203-1%203%201%204-3v-3l2-2-2-4-3-1-1-3z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2211%22%20r%3D%223%22/%3E%3C/svg%3E"); }
[data-icon="training"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m2%208%2010-5%2010%205-10%205zm4%203v7c4%203%208%203%2012%200v-7m4-3v9%22/%3E%3C/svg%3E"); }
/* Semantic palettes: same action, same colour on every page. */
[data-icon-color="blue"]   { --icon-ink: #1d4ed8; --icon-bg: #eff6ff; --icon-line: #bfdbfe; --icon-hover: #dbeafe; }
[data-icon-color="green"]  { --icon-ink: #047857; --icon-bg: #ecfdf5; --icon-line: #a7f3d0; --icon-hover: #d1fae5; }
[data-icon-color="violet"] { --icon-ink: #6d28d9; --icon-bg: #f5f3ff; --icon-line: #ddd6fe; --icon-hover: #ede9fe; }
[data-icon-color="gold"]   { --icon-ink: #a16207; --icon-bg: #fffbeb; --icon-line: #fde68a; --icon-hover: #fef3c7; }
[data-icon-color="orange"] { --icon-ink: #c2410c; --icon-bg: #fff7ed; --icon-line: #fed7aa; --icon-hover: #ffedd5; }
[data-icon-color="teal"]   { --icon-ink: #0f766e; --icon-bg: #f0fdfa; --icon-line: #99f6e4; --icon-hover: #ccfbf1; }
[data-icon-color="slate"]  { --icon-ink: #475569; --icon-bg: #f8fafc; --icon-line: #cbd5e1; --icon-hover: #e2e8f0; }
[data-icon-color="red"]    { --icon-ink: #be123c; --icon-bg: #fff1f2; --icon-line: #fecdd3; --icon-hover: #ffe4e6; }

/* Override the older per-level button sizes without changing their visibility. */
:root body .icon-action,
:root body #shuffleQuestionsBtn.icon-action {
  position: relative !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  border: 1px solid var(--icon-line) !important;
  border-radius: 13px !important;
  background: var(--icon-bg) !important;
  color: var(--icon-ink) !important;
  box-shadow: 0 2px 5px rgb(15 23 42 / 4%) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
  vertical-align: middle;
  overflow: visible !important;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease !important;
  -webkit-tap-highlight-color: transparent;
}
:root body .icon-action::before {
  content: "" !important;
  display: block !important;
  flex: 0 0 23px !important;
  width: 23px !important;
  height: 23px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: currentColor !important;
  mask: var(--action-icon) center / contain no-repeat;
  -webkit-mask: var(--action-icon) center / contain no-repeat;
}
:root body .icon-action > :not(.task-generator-spinner) {
  /* Keep original text/spans in the DOM for the existing state updates. */
  font-size: 0 !important;
  line-height: 0 !important;
}
:root body .icon-action > .mobile-task-settings-toggle-icon { display: none !important; }
:root body .icon-action:hover,
:root body #shuffleQuestionsBtn.icon-action:hover {
  background: var(--icon-hover) !important;
  border-color: var(--icon-ink) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgb(15 23 42 / 9%) !important;
}
:root body .icon-action:focus-visible {
  outline: 3px solid var(--icon-ink) !important;
  outline-offset: 3px;
}
:root body .icon-action[data-icon-state="on"] {
  background: var(--icon-hover) !important;
  border-color: var(--icon-ink) !important;
  box-shadow: inset 0 0 0 1px var(--icon-ink) !important;
}
:root body .icon-action::after { content: none !important; }
:root body .icon-action[data-icon-state="on"]::after,
:root body .icon-action[data-icon-state="off"]::after,
:root body .icon-action[data-icon-count]:not([data-icon-count=""])::after {
  content: "✓" !important;
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border: 2px solid white;
  border-radius: 8px;
  background: var(--icon-ink);
  color: white;
  font: 700 10px/1 system-ui, sans-serif !important;
  box-sizing: border-box;
  pointer-events: none;
}
:root body .icon-action[data-icon-state="off"]::after {
  content: "−" !important;
  background: #e2e8f0;
  color: #475569;
}
:root body .icon-action[data-icon-count]:not([data-icon-count=""])::after {
  content: attr(data-icon-count) !important;
  min-width: 19px;
}
:root body .icon-action:disabled,
:root body .icon-action[aria-disabled="true"] {
  display: none !important;
}
:root body .icon-action:has(.btn-loading:not(.hidden))::before,
:root body .icon-action:has(.task-generator-spinner:not(.hidden))::before {
  mask: none;
  -webkit-mask: none;
  width: 20px !important;
  height: 20px !important;
  flex-basis: 20px !important;
  border: 2px solid currentColor;
  border-right-color: transparent;
  background: transparent !important;
  border-radius: 50%;
  box-sizing: border-box;
  animation: action-icon-spin 1s linear infinite;
}
:root body .icon-action > .task-generator-spinner { display: none !important; }
@keyframes action-icon-spin { to { transform: rotate(360deg); } }

/* Let the existing application decide which controls are available. */
:root body .icon-action.hidden,
:root body .hidden .icon-action { display: none !important; }

/* Training: selection, learning and navigation each have a stable place. */
:root body :is(.content-grid, .task-panel, #standardTaskWrapper, #standardAnswerCard),
:root body .task-panel .card {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
:root body .task-filter-actions-stacked { display: flex; flex-direction: column; gap: 12px; }
:root body .task-filter-primary-row,
:root body .task-filter-secondary-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  width: 100%;
  min-width: 0 !important;
  gap: 10px !important;
  overflow: visible !important;
  padding: 4px 0 !important;
}
:root body .task-filter-primary-row::before,
:root body .task-filter-secondary-row::before {
  flex: 0 0 100%;
  color: #64748b;
  font: 700 10px/1.4 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
:root body .task-filter-primary-row::before { content: "Aufgaben & Filter"; }
:root body .task-filter-secondary-row::before { content: "Lernen & Übersicht"; }
:root body .task-filter-primary-row > #competenceFilterBtn { order: 0 !important; }
:root body .task-filter-primary-row > #pendingOnlyFilterBtn { order: 1 !important; }
:root body .task-filter-primary-row > #bookmarkedOnlyFilterBtn { order: 2 !important; }
:root body .task-filter-primary-row > :is(.reset-row, #mcResetRow) {
  order: 3 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 10px !important;
  width: auto !important;
  margin: 0 0 0 4px !important;
  padding: 0 0 0 14px !important;
  border-left: 1px solid #dbe3ee;
}
:root body .task-filter-primary-row > :is(.reset-row, #mcResetRow).hidden { display: none !important; }
:root body .task-filter-secondary-row .task-metric-action-card {
  display: contents !important;
}
:root body #adaptiveToggleBtn { order: 0 !important; }
:root body #shuffleQuestionsBtn { order: 1 !important; }
:root body .task-filter-secondary-row .adaptive-nav-button-group {
  order: 2 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  margin: 0 0 0 4px !important;
  padding-left: 14px;
  border-left: 1px solid #dbe3ee;
}
:root body .task-filter-secondary-row #evaluationModeControl {
  order: 3 !important;
  flex: 0 1 auto;
  width: auto !important;
  margin: 0 !important;
}
:root body .task-filter-secondary-row #evaluationMode {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 30px 0 12px !important;
  border-radius: 13px;
  font: 600 12px/1.3 system-ui, sans-serif !important;
}
:root body .task-filter-secondary-row .auth-controls-inline {
  order: 4 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: auto !important;
  margin: 0 0 0 4px !important;
  padding-left: 14px;
  border-left: 1px solid #dbe3ee;
}
:root body .auth-admin-logout-group { display: contents !important; }
:root body .task-type-toggle {
  display: inline-flex;
  width: auto !important;
  min-width: 0 !important;
  gap: 8px;
  padding: 6px;
}
:root body .action-row,
:root body .right-actions,
:root body .assignment-subtask-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  flex-wrap: wrap;
}
:root body .right-actions {
  flex: 0 0 auto !important;
  width: auto !important;
  grid-template-columns: none !important;
}
:root body .level-d-mc-solution-placement {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}
:root body .action-row-inline-mc-solution {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 0 12px !important;
  border: 0 !important;
  border-left: 1px solid #dbe3ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
:root body .assignment-subtask-actions .assignment-answer-check { order: 0 !important; }
:root body .assignment-subtask-actions .assignment-check-progress { order: 1 !important; }
:root body .assignment-subtask-actions .assignment-solution-toggle { order: 2 !important; }
:root body .assignment-subtask-actions .assignment-answer-mark { order: 3 !important; }
:root body .assignment-subtask-actions .assignment-answer-reset { order: 4 !important; margin-right: 12px !important; }
:root body .assignment-subtask-actions .assignment-answer-prev { order: 5 !important; }
:root body .assignment-subtask-actions .assignment-answer-next { order: 6 !important; }
:root body .admin-inline-edit-btn.icon-action {
  /* Remains comfortable to click, while staying next to the edited text. */
  display: inline-flex;
  margin: 0 8px 4px 0 !important;
}
:root body .admin-inline-edit-btn[data-icon="edit"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220.5%20-0.5%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020l1-5L16%204q2-2%204%200t0%204L9%2019l-5%201ZM14%206l4%204%22/%3E%3C/svg%3E"); }
:root body .admin-inline-edit-btn.icon-action::before {
  position: absolute;
  inset: 0;
  width: 12px !important;
  height: 12px !important;
  margin: auto !important;
  pointer-events: none;
}
:root body .icon-action.evaluation-detail-toggle { margin: 6px 0 !important; }
:root body .editor-navigation { display: flex; flex-wrap: wrap; gap: 10px; }
:root body .auth-form .primary-btn.icon-action { justify-self: end; }
:root body #trustDeviceBtn2fa.icon-action { justify-self: start; }
:root body .password-wrap { display: flex; align-items: center; gap: 10px; }
:root body .password-wrap input { flex: 1 1 auto; min-width: 0; padding-right: 14px; }
:root body #togglePasswordBtn.icon-action {
  inset: auto !important;
  transform: none !important;
}
.action-icon-tooltip {
  position: fixed;
  z-index: 2147483647;
  max-width: min(320px, calc(100vw - 16px));
  padding: 9px 13px;
  border-radius: 10px;
  background: #172033;
  color: white;
  box-shadow: 0 6px 24px rgb(15 23 42 / 16%);
  font: 500 12px/1.5 system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}
.action-icon-tooltip[hidden] { display: none; }
@media (max-width: 480px) {
  :root body .task-filter-primary-row,
  :root body .task-filter-secondary-row { gap: 8px !important; }
  :root body .task-filter-primary-row > :is(.reset-row, #mcResetRow) {
    gap: 8px !important;
    margin-left: 0 !important;
    padding-left: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root body .icon-action { transition: none !important; }
  :root body .icon-action:hover { transform: none !important; }
}
@media (forced-colors: active) {
  :root body .icon-action { color: ButtonText !important; background: ButtonFace !important; border-color: ButtonText !important; }
  :root body .icon-action[data-icon-state="on"] { outline: 2px solid Highlight; }
}

[data-icon="text"] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H4v20h16V8zm0%200v6h6M8%2012h8M8%2016h8%22/%3E%3C/svg%3E"); }

}
