{# SVG icon set. base.html prints sprite() once per page; templates draw an
icon with i('name'), JavaScript with window.icon('name'). Stroke icons on
a 24x24 grid that take the text colour (currentColor). #}
{% macro i(name, cls='') -%}
{%- endmacro %}
{# device kind badge: nvr / camera / other (accepts driver values like "camera?") #}
{% macro kind(t) -%}
{%- set low = (t or '')|string|lower -%}
{%- if low.startswith('nvr') -%}{{ i('nvr', 'sm') }}{{ t|tlabel }}
{%- elif low.startswith('camera') -%}{{ i('camera', 'sm') }}{{ t|tlabel }}
{%- else -%}{{ t|tlabel }}{%- endif -%}
{%- endmacro %}
{% macro sprite() -%}
{%- endmacro %}