{# HyperWeave Status Indicator Component.
   Renders as square (brutalist) or circle (default) based on profile.
   Expects: status_x, status_y, status_shape ('square' or 'circle'),
            status_size (outer dimension, default 8) #}
{% set shape = status_shape | default('circle') %}
{% set sz = status_size | default(8) %}
{% set inner = status_inner_size | default(4) %}
{% set offset = status_inner_offset | default(2) %}
{% set center = status_center | default(4) %}
{% set inner_radius = status_inner_radius | default(2) %}
<g data-hw-zone="status" transform="translate({{ status_x }},{{ status_y }})">
{% if shape == 'square' %}
  <rect fill="none" stroke="var(--hw-state-ring, var(--dna-signal))"
        stroke-width="1.2" width="{{ sz }}" height="{{ sz }}"/>
  <rect class="hw-logic-bit" x="{{ offset }}" y="{{ offset }}"
        width="{{ inner }}" height="{{ inner }}"
        fill="var(--hw-state-core, var(--dna-signal))"/>
{% else %}
  <circle fill="none" stroke="var(--hw-state-ring, var(--dna-signal))"
          stroke-width="1.2" cx="{{ center }}" cy="{{ center }}" r="{{ center }}"/>
  <circle class="hw-logic-bit"
          cx="{{ center }}" cy="{{ center }}" r="{{ inner_radius }}"
          fill="var(--hw-state-core, var(--dna-signal))"/>
{% endif %}
</g>
