/* Shared frontend outline weight. Small icon canvases are explicit so chart
   series, maps, brand artwork and uploaded logos retain their own strokes.
   Apply to geometry too: legacy SVGs sometimes set width on individual paths.
   Keep fill, stroke color, size, hit areas and transforms owned by each control. */
:root {
  --portal-icon-stroke: 1.5;
}

svg:is([viewBox="0 0 24 24"], [viewBox="0 0 32 32"]) {
  --portal-icon-weight: var(--portal-icon-stroke);
}

svg[viewBox="0 0 20 20"] {
  --portal-icon-weight: calc(var(--portal-icon-stroke) * 5 / 6);
}

svg[viewBox="0 0 16 16"] {
  --portal-icon-weight: calc(var(--portal-icon-stroke) * 2 / 3);
}

/* One intentional cascade boundary overrides legacy per-component rules and
   SVG presentation attributes, including dynamically rendered dialogs. */
svg:is([viewBox="0 0 24 24"], [viewBox="0 0 20 20"], [viewBox="0 0 16 16"], [viewBox="0 0 32 32"]),
svg:is([viewBox="0 0 24 24"], [viewBox="0 0 20 20"], [viewBox="0 0 16 16"], [viewBox="0 0 32 32"]) :is(g, path, line, polyline, polygon, rect, circle, ellipse, use) {
  stroke-width: var(--portal-icon-weight) !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
