/*
 * Wyrden design tokens: Material 3 Expressive. Every Wyrden page (public
 * site, dashboard, admin panel, docs, status, appeals) uses these and
 * nothing else for colour, type, shape, elevation and motion, so the pages
 * look like one product.
 *
 * Colour roles are generated with Material Color Utilities (spec 2021) from
 * the brand: Wyrden blue #006399 is the primary (tone 40), its container
 * #cde5ff and navy #001d32 are tones 90 and 10, and the lime #c3f35f is the
 * tertiary container. Every text role meets WCAG AA on its container in both
 * themes (most pairs are 7:1 or better).
 *
 * Typefaces: Gabarito is the brand face (display and headline styles),
 * Roboto Flex the plain face (title, body, label). Both are served by
 * Wyrden itself; each stylesheet that loads this file declares its own
 * @font-face, since the site and the dashboard serve fonts from different
 * paths. Pages load nothing from other origins.
 *
 * The old token names at the end of :root are aliases of the Material
 * roles, so every rule written against them follows the theme.
 */

:root {
  color-scheme: light dark;

  /* ---- Colour: light scheme ---- */
  --md-sys-color-primary: #006399;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #cde5ff;
  --md-sys-color-on-primary-container: #004a75;
  --md-sys-color-inverse-primary: #95ccff;
  --md-sys-color-primary-fixed: #cde5ff;
  --md-sys-color-primary-fixed-dim: #95ccff;
  --md-sys-color-on-primary-fixed: #001d32;
  --md-sys-color-on-primary-fixed-variant: #004a75;
  --md-sys-color-secondary: #46617a;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #cde5ff;
  --md-sys-color-on-secondary-container: #2e4961;
  --md-sys-color-secondary-fixed: #cde5ff;
  --md-sys-color-secondary-fixed-dim: #aec9e6;
  --md-sys-color-on-secondary-fixed: #001d32;
  --md-sys-color-on-secondary-fixed-variant: #2e4961;
  --md-sys-color-tertiary: #4b6700;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #c3f35f;
  --md-sys-color-on-tertiary-container: #374e00;
  --md-sys-color-tertiary-fixed: #c3f35f;
  --md-sys-color-tertiary-fixed-dim: #a8d645;
  --md-sys-color-on-tertiary-fixed: #141f00;
  --md-sys-color-on-tertiary-fixed-variant: #374e00;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #ffdad6;
  --md-sys-color-on-error-container: #93000a;
  --md-sys-color-surface: #f7f9ff;
  --md-sys-color-on-surface: #181c20;
  --md-sys-color-surface-variant: #dce3ee;
  --md-sys-color-on-surface-variant: #404850;
  --md-sys-color-surface-dim: #d8dadf;
  --md-sys-color-surface-bright: #f7f9ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f1f4f9;
  --md-sys-color-surface-container: #eceef3;
  --md-sys-color-surface-container-high: #e6e8ee;
  --md-sys-color-surface-container-highest: #e0e2e8;
  --md-sys-color-inverse-surface: #2d3135;
  --md-sys-color-inverse-on-surface: #eef1f6;
  --md-sys-color-outline: #707881;
  --md-sys-color-outline-variant: #c0c7d1;
  --md-sys-color-shadow: #000000;
  --md-sys-color-scrim: #000000;
  --md-sys-color-surface-tint: #006399;

  /* Status colours: Material custom colours with container roles, kept on
     their own hues (green, amber, blue, violet) so they stay recognisable.
     "Simulated" is violet: never to be mistaken for real hardware. */
  --wy-ok: #006b58;
  --wy-on-ok: #ffffff;
  --wy-ok-container: #97f4d9;
  --wy-on-ok-container: #002019;
  --wy-warn: #885200;
  --wy-on-warn: #ffffff;
  --wy-warn-container: #ffdcbb;
  --wy-on-warn-container: #2b1700;
  --wy-info: #146394;
  --wy-on-info: #ffffff;
  --wy-info-container: #cce5ff;
  --wy-on-info-container: #001d31;
  --wy-sim: #7a40b8;
  --wy-on-sim: #ffffff;
  --wy-sim-container: #efdbff;
  --wy-on-sim-container: #2b0052;

  /* The header and footer stay navy in both themes: the logo is the version
     for dark backgrounds. Navy is the primary palette's tone 10. */
  --wy-brand-bar: #001d32;
  --wy-on-brand-bar: #e8f2ff;
  --wy-on-brand-bar-variant: #a9c9e8;
  --wy-brand-lime: #c3f35f;

  /* Charts and session replay keep the values checked with the dataviz
     validator. */
  --chart-line: #006399;
  --replay-head: #4d5868;
  --replay-left: #257de0;
  --replay-right: #f47230;

  /* ---- Typefaces ---- */
  --md-ref-typeface-brand: "Gabarito", "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --md-ref-typeface-plain: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --md-ref-typeface-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --md-ref-typeface-weight-regular: 400;
  --md-ref-typeface-weight-medium: 500;
  --md-ref-typeface-weight-bold: 700;

  /* ---- Type scale (Material 3), as `font` shorthands. The emphasized
     styles of M3 Expressive are heavier; use them for the one thing on a
     screen that matters most. Letter-spacing goes with each style: use
     --md-sys-typescale-<style>-tracking. ---- */
  --md-sys-typescale-display-large: 400 3.5625rem/4rem var(--md-ref-typeface-brand);
  --md-sys-typescale-display-large-tracking: -0.015625rem;
  --md-sys-typescale-display-medium: 400 2.8125rem/3.25rem var(--md-ref-typeface-brand);
  --md-sys-typescale-display-medium-tracking: 0;
  --md-sys-typescale-display-small: 400 2.25rem/2.75rem var(--md-ref-typeface-brand);
  --md-sys-typescale-display-small-tracking: 0;
  --md-sys-typescale-headline-large: 400 2rem/2.5rem var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-large-tracking: 0;
  --md-sys-typescale-headline-medium: 400 1.75rem/2.25rem var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-medium-tracking: 0;
  --md-sys-typescale-headline-small: 400 1.5rem/2rem var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-small-tracking: 0;
  --md-sys-typescale-title-large: 400 1.375rem/1.75rem var(--md-ref-typeface-plain);
  --md-sys-typescale-title-large-tracking: 0;
  --md-sys-typescale-title-medium: 500 1rem/1.5rem var(--md-ref-typeface-plain);
  --md-sys-typescale-title-medium-tracking: 0.009375rem;
  --md-sys-typescale-title-small: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  --md-sys-typescale-title-small-tracking: 0.00625rem;
  --md-sys-typescale-body-large: 400 1rem/1.5rem var(--md-ref-typeface-plain);
  --md-sys-typescale-body-large-tracking: 0.03125rem;
  --md-sys-typescale-body-medium: 400 0.875rem/1.25rem var(--md-ref-typeface-plain);
  --md-sys-typescale-body-medium-tracking: 0.015625rem;
  --md-sys-typescale-body-small: 400 0.75rem/1rem var(--md-ref-typeface-plain);
  --md-sys-typescale-body-small-tracking: 0.025rem;
  --md-sys-typescale-label-large: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  --md-sys-typescale-label-large-tracking: 0.00625rem;
  --md-sys-typescale-label-medium: 500 0.75rem/1rem var(--md-ref-typeface-plain);
  --md-sys-typescale-label-medium-tracking: 0.03125rem;
  --md-sys-typescale-label-small: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
  --md-sys-typescale-label-small-tracking: 0.03125rem;
  /* Emphasized */
  --md-sys-typescale-emphasized-display-large: 650 3.5625rem/4rem var(--md-ref-typeface-brand);
  --md-sys-typescale-emphasized-display-medium: 650 2.8125rem/3.25rem var(--md-ref-typeface-brand);
  --md-sys-typescale-emphasized-display-small: 650 2.25rem/2.75rem var(--md-ref-typeface-brand);
  --md-sys-typescale-emphasized-headline-large: 650 2rem/2.5rem var(--md-ref-typeface-brand);
  --md-sys-typescale-emphasized-headline-medium: 650 1.75rem/2.25rem var(--md-ref-typeface-brand);
  --md-sys-typescale-emphasized-headline-small: 650 1.5rem/2rem var(--md-ref-typeface-brand);
  --md-sys-typescale-emphasized-title-large: 600 1.375rem/1.75rem var(--md-ref-typeface-plain);
  --md-sys-typescale-emphasized-title-medium: 700 1rem/1.5rem var(--md-ref-typeface-plain);
  --md-sys-typescale-emphasized-title-small: 700 0.875rem/1.25rem var(--md-ref-typeface-plain);
  --md-sys-typescale-emphasized-body-large: 500 1rem/1.5rem var(--md-ref-typeface-plain);
  --md-sys-typescale-emphasized-body-medium: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  --md-sys-typescale-emphasized-label-large: 700 0.875rem/1.25rem var(--md-ref-typeface-plain);
  --md-sys-typescale-emphasized-label-medium: 700 0.75rem/1rem var(--md-ref-typeface-plain);

  /* ---- Shape (M3 Expressive corner scale) ---- */
  --md-sys-shape-corner-none: 0;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-large-increased: 20px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-extra-large-increased: 32px;
  --md-sys-shape-corner-extra-extra-large: 48px;
  /* For corners that never animate. A corner that changes with state must
     morph between real lengths (half the element's height for "round"),
     because a spatial spring overshoots by about 9% of the distance. */
  --md-sys-shape-corner-full: 9999px;

  /* ---- Elevation (M3 levels 0 to 5) ---- */
  --md-sys-elevation-level0: none;
  --md-sys-elevation-level1: 0 1px 2px 0 rgb(0 0 0 / 0.3), 0 1px 3px 1px rgb(0 0 0 / 0.15);
  --md-sys-elevation-level2: 0 1px 2px 0 rgb(0 0 0 / 0.3), 0 2px 6px 2px rgb(0 0 0 / 0.15);
  --md-sys-elevation-level3: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 4px 8px 3px rgb(0 0 0 / 0.15);
  --md-sys-elevation-level4: 0 2px 3px 0 rgb(0 0 0 / 0.3), 0 6px 10px 4px rgb(0 0 0 / 0.15);
  --md-sys-elevation-level5: 0 4px 4px 0 rgb(0 0 0 / 0.3), 0 8px 12px 6px rgb(0 0 0 / 0.15);

  /* ---- State layers ---- */
  --md-sys-state-hover-state-layer-opacity: 0.08;
  --md-sys-state-focus-state-layer-opacity: 0.1;
  --md-sys-state-pressed-state-layer-opacity: 0.1;
  --md-sys-state-dragged-state-layer-opacity: 0.16;
  --md-sys-state-disabled-container-opacity: 0.12;
  --md-sys-state-disabled-content-opacity: 0.38;

  /* ---- Motion: the M3 Expressive motion scheme. Springs (stiffness and
     damping from the spec) are sampled into linear() easings; use each with
     its own duration. Spatial springs move things and may overshoot a
     little; effects springs fade colour and opacity and never overshoot. ---- */
  --md-sys-motion-spring-fast-spatial-duration: 404ms;
  --md-sys-motion-spring-fast-spatial: linear(0, 0.038, 0.13, 0.261, 0.4, 0.54, 0.67, 0.785, 0.881, 0.961, 1.017, 1.056, 1.08, 1.091, 1.093, 1.088, 1.078, 1.066, 1.053, 1.04, 1.028, 1.017, 1.009, 1.002, 0.997, 0.994, 0.992, 0.991, 0.991, 0.992, 0.993, 0.994, 0.995, 0.997, 0.998, 0.999, 0.999, 1, 1, 1.001, 1);
  --md-sys-motion-spring-default-spatial-duration: 484ms;
  --md-sys-motion-spring-default-spatial: linear(0, 0.025, 0.087, 0.175, 0.271, 0.37, 0.467, 0.558, 0.64, 0.716, 0.779, 0.832, 0.876, 0.912, 0.941, 0.964, 0.981, 0.993, 1.002, 1.008, 1.012, 1.014, 1.014, 1.014, 1.014, 1.012, 1.011, 1.01, 1.008, 1.007, 1.006, 1.004, 1.003, 1.003, 1.002, 1.001, 1.001, 1.001, 1, 1, 1);
  --md-sys-motion-spring-slow-spatial-duration: 651ms;
  --md-sys-motion-spring-slow-spatial: linear(0, 0.025, 0.084, 0.167, 0.259, 0.358, 0.452, 0.544, 0.627, 0.7, 0.765, 0.818, 0.865, 0.902, 0.933, 0.957, 0.975, 0.989, 0.999, 1.006, 1.01, 1.013, 1.014, 1.015, 1.014, 1.013, 1.012, 1.011, 1.009, 1.008, 1.006, 1.005, 1.004, 1.003, 1.002, 1.002, 1.001, 1.001, 1.001, 1, 1);
  --md-sys-motion-spring-fast-effects-duration: 187ms;
  --md-sys-motion-spring-fast-effects: linear(0, 0.036, 0.125, 0.223, 0.325, 0.434, 0.523, 0.602, 0.677, 0.734, 0.783, 0.827, 0.86, 0.887, 0.911, 0.928, 0.942, 0.955, 0.964, 0.971, 0.977, 0.982, 0.986, 0.989, 0.991, 0.993, 0.994, 0.996, 0.997, 0.997, 0.998, 0.998, 0.999, 0.999, 0.999, 0.999, 1, 1, 1, 1, 1);
  --md-sys-motion-spring-default-effects-duration: 272ms;
  --md-sys-motion-spring-default-effects: linear(0, 0.035, 0.107, 0.204, 0.3, 0.4, 0.487, 0.571, 0.644, 0.703, 0.757, 0.799, 0.837, 0.867, 0.893, 0.914, 0.93, 0.944, 0.955, 0.964, 0.971, 0.977, 0.982, 0.985, 0.988, 0.991, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 0.999, 0.999, 0.999, 0.999, 1, 1, 1);
  --md-sys-motion-spring-slow-effects-duration: 368ms;
  --md-sys-motion-spring-slow-effects: linear(0, 0.029, 0.1, 0.187, 0.286, 0.378, 0.465, 0.548, 0.618, 0.682, 0.735, 0.78, 0.82, 0.851, 0.879, 0.901, 0.919, 0.935, 0.947, 0.957, 0.965, 0.972, 0.978, 0.982, 0.986, 0.988, 0.991, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.998, 0.999, 0.999, 0.999, 0.999, 1, 1);
  /* Shape morphs: critically damped springs (they never overshoot). A
     clip-path morph interpolates point by point, so overshooting past the
     target shape makes the outline jagged; rotation and scale keep the
     spatial springs. Morph between shapes of the same symmetry where you can
     (8-fold: clover-8, sunny, very-sunny, flower; 4-fold: cookie-4,
     clover-4, squircle, square, diamond; 6-fold: cookie-6, puffy, gem;
     12-fold: cookie-12, burst); any shape morphs cleanly to and from circle. */
  --md-sys-motion-morph-duration: 566ms;
  --md-sys-motion-morph: linear(0.0, 0.026, 0.09, 0.171, 0.259, 0.348, 0.435, 0.514, 0.584, 0.649, 0.704, 0.751, 0.793, 0.828, 0.857, 0.881, 0.903, 0.92, 0.934, 0.946, 0.956, 0.964, 0.971, 0.976, 0.98, 0.984, 0.987, 0.99, 0.992, 0.993, 0.994, 0.996, 0.996, 0.997, 0.998, 0.998, 0.998, 0.999, 0.999, 0.999, 1);
  --md-sys-motion-morph-fast-duration: 391ms;
  --md-sys-motion-morph-fast: linear(0.0, 0.031, 0.098, 0.188, 0.28, 0.376, 0.462, 0.544, 0.614, 0.678, 0.73, 0.778, 0.815, 0.849, 0.876, 0.899, 0.917, 0.933, 0.945, 0.956, 0.964, 0.971, 0.977, 0.981, 0.985, 0.988, 0.99, 0.992, 0.994, 0.995, 0.996, 0.997, 0.997, 0.998, 0.998, 0.999, 0.999, 0.999, 0.999, 0.999, 1);
  --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);

  /* ---- Layout ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --content-width: 75rem;
  --prose-width: 44rem;

  /* ---- Shape library (M3 Expressive): circle, square, squircle, pill,
     cookie-4/6/7/9/12, clover-4/8, sunny, very-sunny, soft-burst, burst,
     flower, puffy, pentagon, triangle, gem, diamond. Each is a clip-path
     polygon of the same 72 points, sampled at the same angles from the top,
     so any shape morphs into any other with a transition or animation on
     clip-path, point to point. See .md-shape below. ---- */
  --md-shape-circle: polygon(50.00% 0.00%, 54.36% 0.19%, 58.68% 0.76%, 62.94% 1.70%, 67.10% 3.02%, 71.13% 4.68%, 75.00% 6.70%, 78.68% 9.04%, 82.14% 11.70%, 85.36% 14.64%, 88.30% 17.86%, 90.96% 21.32%, 93.30% 25.00%, 95.32% 28.87%, 96.98% 32.90%, 98.30% 37.06%, 99.24% 41.32%, 99.81% 45.64%, 100.00% 50.00%, 99.81% 54.36%, 99.24% 58.68%, 98.30% 62.94%, 96.98% 67.10%, 95.32% 71.13%, 93.30% 75.00%, 90.96% 78.68%, 88.30% 82.14%, 85.36% 85.36%, 82.14% 88.30%, 78.68% 90.96%, 75.00% 93.30%, 71.13% 95.32%, 67.10% 96.98%, 62.94% 98.30%, 58.68% 99.24%, 54.36% 99.81%, 50.00% 100.00%, 45.64% 99.81%, 41.32% 99.24%, 37.06% 98.30%, 32.90% 96.98%, 28.87% 95.32%, 25.00% 93.30%, 21.32% 90.96%, 17.86% 88.30%, 14.64% 85.36%, 11.70% 82.14%, 9.04% 78.68%, 6.70% 75.00%, 4.68% 71.13%, 3.02% 67.10%, 1.70% 62.94%, 0.76% 58.68%, 0.19% 54.36%, 0.00% 50.00%, 0.19% 45.64%, 0.76% 41.32%, 1.70% 37.06%, 3.02% 32.90%, 4.68% 28.87%, 6.70% 25.00%, 9.04% 21.32%, 11.70% 17.86%, 14.64% 14.64%, 17.86% 11.70%, 21.32% 9.04%, 25.00% 6.70%, 28.87% 4.68%, 32.90% 3.02%, 37.06% 1.70%, 41.32% 0.76%, 45.64% 0.19%);
  --md-shape-square: polygon(50.00% 0.00%, 54.37% 0.00%, 58.82% 0.00%, 63.40% 0.00%, 68.20% 0.00%, 73.32% 0.00%, 78.86% 0.01%, 84.97% 0.06%, 91.55% 0.48%, 97.19% 2.81%, 99.52% 8.45%, 99.94% 15.03%, 99.99% 21.14%, 100.00% 26.68%, 100.00% 31.80%, 100.00% 36.60%, 100.00% 41.18%, 100.00% 45.63%, 100.00% 50.00%, 100.00% 54.37%, 100.00% 58.82%, 100.00% 63.40%, 100.00% 68.20%, 100.00% 73.32%, 99.99% 78.86%, 99.94% 84.97%, 99.52% 91.55%, 97.19% 97.19%, 91.55% 99.52%, 84.97% 99.94%, 78.86% 99.99%, 73.32% 100.00%, 68.20% 100.00%, 63.40% 100.00%, 58.82% 100.00%, 54.37% 100.00%, 50.00% 100.00%, 45.63% 100.00%, 41.18% 100.00%, 36.60% 100.00%, 31.80% 100.00%, 26.68% 100.00%, 21.14% 99.99%, 15.03% 99.94%, 8.45% 99.52%, 2.81% 97.19%, 0.48% 91.55%, 0.06% 84.97%, 0.01% 78.86%, 0.00% 73.32%, 0.00% 68.20%, 0.00% 63.40%, 0.00% 58.82%, 0.00% 54.37%, 0.00% 50.00%, 0.00% 45.63%, 0.00% 41.18%, 0.00% 36.60%, 0.00% 31.80%, 0.00% 26.68%, 0.01% 21.14%, 0.06% 15.03%, 0.48% 8.45%, 2.81% 2.81%, 8.45% 0.48%, 15.03% 0.06%, 21.14% 0.01%, 26.68% 0.00%, 31.80% 0.00%, 36.60% 0.00%, 41.18% 0.00%, 45.63% 0.00%);
  --md-shape-squircle: polygon(50.00% 0.00%, 54.37% 0.00%, 58.81% 0.01%, 63.38% 0.06%, 68.12% 0.22%, 73.05% 0.57%, 78.12% 1.30%, 83.17% 2.62%, 87.94% 4.79%, 92.04% 7.96%, 95.21% 12.06%, 97.38% 16.83%, 98.70% 21.88%, 99.43% 26.95%, 99.78% 31.88%, 99.94% 36.62%, 99.99% 41.19%, 100.00% 45.63%, 100.00% 50.00%, 100.00% 54.37%, 99.99% 58.81%, 99.94% 63.38%, 99.78% 68.12%, 99.43% 73.05%, 98.70% 78.12%, 97.38% 83.17%, 95.21% 87.94%, 92.04% 92.04%, 87.94% 95.21%, 83.17% 97.38%, 78.12% 98.70%, 73.05% 99.43%, 68.12% 99.78%, 63.38% 99.94%, 58.81% 99.99%, 54.37% 100.00%, 50.00% 100.00%, 45.63% 100.00%, 41.19% 99.99%, 36.62% 99.94%, 31.88% 99.78%, 26.95% 99.43%, 21.88% 98.70%, 16.83% 97.38%, 12.06% 95.21%, 7.96% 92.04%, 4.79% 87.94%, 2.62% 83.17%, 1.30% 78.12%, 0.57% 73.05%, 0.22% 68.12%, 0.06% 63.38%, 0.01% 58.81%, 0.00% 54.37%, 0.00% 50.00%, 0.00% 45.63%, 0.01% 41.19%, 0.06% 36.62%, 0.22% 31.88%, 0.57% 26.95%, 1.30% 21.88%, 2.62% 16.83%, 4.79% 12.06%, 7.96% 7.96%, 12.06% 4.79%, 16.83% 2.62%, 21.88% 1.30%, 26.95% 0.57%, 31.88% 0.22%, 36.62% 0.06%, 41.19% 0.01%, 45.63% 0.00%);
  --md-shape-pill: polygon(50.00% 18.75%, 52.73% 18.75%, 55.51% 18.75%, 58.37% 18.75%, 61.37% 18.75%, 64.57% 18.75%, 68.04% 18.75%, 71.78% 18.90%, 75.59% 19.51%, 79.38% 20.62%, 83.09% 22.23%, 86.62% 24.36%, 89.88% 26.98%, 92.80% 30.04%, 95.30% 33.51%, 97.31% 37.32%, 98.79% 41.40%, 99.70% 45.65%, 100.00% 50.00%, 99.70% 54.35%, 98.79% 58.60%, 97.31% 62.68%, 95.30% 66.49%, 92.80% 69.96%, 89.88% 73.02%, 86.62% 75.64%, 83.09% 77.77%, 79.38% 79.38%, 75.59% 80.49%, 71.78% 81.10%, 68.04% 81.25%, 64.57% 81.25%, 61.37% 81.25%, 58.37% 81.25%, 55.51% 81.25%, 52.73% 81.25%, 50.00% 81.25%, 47.27% 81.25%, 44.49% 81.25%, 41.63% 81.25%, 38.63% 81.25%, 35.43% 81.25%, 31.96% 81.25%, 28.22% 81.10%, 24.41% 80.49%, 20.62% 79.38%, 16.91% 77.77%, 13.38% 75.64%, 10.12% 73.02%, 7.20% 69.96%, 4.70% 66.49%, 2.69% 62.68%, 1.21% 58.60%, 0.30% 54.35%, 0.00% 50.00%, 0.30% 45.65%, 1.21% 41.40%, 2.69% 37.32%, 4.70% 33.51%, 7.20% 30.04%, 10.12% 26.98%, 13.38% 24.36%, 16.91% 22.23%, 20.62% 20.62%, 24.41% 19.51%, 28.22% 18.90%, 31.96% 18.75%, 35.43% 18.75%, 38.63% 18.75%, 41.63% 18.75%, 44.49% 18.75%, 47.27% 18.75%);
  --md-shape-cookie-4: polygon(50.00% 1.82%, 54.23% 1.65%, 58.61% 1.18%, 63.24% 0.59%, 68.16% 0.10%, 73.32% 0.00%, 78.56% 0.54%, 83.67% 1.92%, 88.39% 4.24%, 92.49% 7.51%, 95.76% 11.61%, 98.08% 16.33%, 99.46% 21.44%, 100.00% 26.68%, 99.90% 31.84%, 99.41% 36.76%, 98.82% 41.39%, 98.35% 45.77%, 98.18% 50.00%, 98.35% 54.23%, 98.82% 58.61%, 99.41% 63.24%, 99.90% 68.16%, 100.00% 73.32%, 99.46% 78.56%, 98.08% 83.67%, 95.76% 88.39%, 92.49% 92.49%, 88.39% 95.76%, 83.67% 98.08%, 78.56% 99.46%, 73.32% 100.00%, 68.16% 99.90%, 63.24% 99.41%, 58.61% 98.82%, 54.23% 98.35%, 50.00% 98.18%, 45.77% 98.35%, 41.39% 98.82%, 36.76% 99.41%, 31.84% 99.90%, 26.68% 100.00%, 21.44% 99.46%, 16.33% 98.08%, 11.61% 95.76%, 7.51% 92.49%, 4.24% 88.39%, 1.92% 83.67%, 0.54% 78.56%, 0.00% 73.32%, 0.10% 68.16%, 0.59% 63.24%, 1.18% 58.61%, 1.65% 54.23%, 1.82% 50.00%, 1.65% 45.77%, 1.18% 41.39%, 0.59% 36.76%, 0.10% 31.84%, 0.00% 26.68%, 0.54% 21.44%, 1.92% 16.33%, 4.24% 11.61%, 7.51% 7.51%, 11.61% 4.24%, 16.33% 1.92%, 21.44% 0.54%, 26.68% 0.00%, 31.84% 0.10%, 36.76% 0.59%, 41.39% 1.18%, 45.77% 1.65%);
  --md-shape-cookie-6: polygon(50.00% 7.41%, 53.76% 7.08%, 57.72% 6.23%, 61.98% 5.28%, 66.47% 4.76%, 70.92% 5.13%, 75.00% 6.70%, 78.39% 9.45%, 80.95% 13.12%, 82.74% 17.26%, 84.05% 21.43%, 85.30% 25.29%, 86.89% 28.70%, 89.05% 31.79%, 91.76% 34.80%, 94.72% 38.02%, 97.42% 41.64%, 99.32% 45.69%, 100.00% 50.00%, 99.32% 54.31%, 97.42% 58.36%, 94.72% 61.98%, 91.76% 65.20%, 89.05% 68.21%, 86.89% 71.30%, 85.30% 74.71%, 84.05% 78.57%, 82.74% 82.74%, 80.95% 86.88%, 78.39% 90.55%, 75.00% 93.30%, 70.92% 94.87%, 66.47% 95.24%, 61.98% 94.72%, 57.72% 93.77%, 53.76% 92.92%, 50.00% 92.59%, 46.24% 92.92%, 42.28% 93.77%, 38.02% 94.72%, 33.53% 95.24%, 29.08% 94.87%, 25.00% 93.30%, 21.61% 90.55%, 19.05% 86.88%, 17.26% 82.74%, 15.95% 78.57%, 14.70% 74.71%, 13.11% 71.30%, 10.95% 68.21%, 8.24% 65.20%, 5.28% 61.98%, 2.58% 58.36%, 0.68% 54.31%, 0.00% 50.00%, 0.68% 45.69%, 2.58% 41.64%, 5.28% 38.02%, 8.24% 34.80%, 10.95% 31.79%, 13.11% 28.70%, 14.70% 25.29%, 15.95% 21.43%, 17.26% 17.26%, 19.05% 13.12%, 21.61% 9.45%, 25.00% 6.70%, 29.08% 5.13%, 33.53% 4.76%, 38.02% 5.28%, 42.28% 6.23%, 46.24% 7.08%);
  --md-shape-cookie-7: polygon(50.00% 3.49%, 53.88% 5.66%, 57.51% 7.42%, 61.17% 8.33%, 65.14% 8.40%, 69.53% 8.12%, 74.13% 8.21%, 78.49% 9.31%, 82.11% 11.74%, 84.63% 15.37%, 86.09% 19.71%, 86.89% 24.17%, 87.66% 28.25%, 89.00% 31.81%, 91.20% 35.01%, 94.05% 38.20%, 96.98% 41.72%, 99.18% 45.70%, 100.00% 50.00%, 99.18% 54.30%, 96.98% 58.28%, 94.05% 61.80%, 91.20% 64.99%, 89.00% 68.19%, 87.66% 71.75%, 86.89% 75.83%, 86.09% 80.29%, 84.63% 84.63%, 82.11% 88.26%, 78.49% 90.69%, 74.13% 91.79%, 69.53% 91.88%, 65.14% 91.60%, 61.17% 91.67%, 57.51% 92.58%, 53.88% 94.34%, 50.00% 96.51%, 45.77% 98.33%, 41.35% 99.03%, 37.09% 98.18%, 33.33% 95.81%, 30.21% 92.43%, 27.62% 88.77%, 25.14% 85.51%, 22.31% 83.00%, 18.86% 81.14%, 14.83% 79.51%, 10.69% 77.52%, 7.10% 74.77%, 4.70% 71.13%, 3.78% 66.82%, 4.20% 62.27%, 5.37% 57.87%, 6.51% 53.80%, 6.98% 50.00%, 6.51% 46.20%, 5.37% 42.13%, 4.20% 37.73%, 3.78% 33.18%, 4.70% 28.87%, 7.10% 25.23%, 10.69% 22.48%, 14.83% 20.49%, 18.86% 18.86%, 22.31% 17.00%, 25.14% 14.49%, 27.62% 11.23%, 30.21% 7.57%, 33.33% 4.19%, 37.09% 1.82%, 41.35% 0.97%, 45.77% 1.67%);
  --md-shape-cookie-9: polygon(50.00% 3.27%, 54.27% 1.14%, 58.68% 0.76%, 62.69% 2.63%, 65.98% 6.09%, 68.77% 9.75%, 71.73% 12.36%, 75.48% 13.62%, 80.04% 14.20%, 84.68% 15.32%, 88.30% 17.86%, 90.17% 21.87%, 90.47% 26.64%, 90.25% 31.23%, 90.84% 35.14%, 92.90% 38.50%, 96.02% 41.89%, 98.86% 45.73%, 100.00% 50.00%, 98.86% 54.27%, 96.02% 58.11%, 92.90% 61.50%, 90.84% 64.86%, 90.25% 68.77%, 90.47% 73.36%, 90.17% 78.13%, 88.30% 82.14%, 84.68% 84.68%, 80.04% 85.80%, 75.48% 86.38%, 71.73% 87.64%, 68.77% 90.25%, 65.98% 93.91%, 62.69% 97.37%, 58.68% 99.24%, 54.27% 98.86%, 50.00% 96.73%, 46.13% 94.25%, 42.45% 92.80%, 38.50% 92.90%, 34.02% 93.91%, 29.27% 94.45%, 25.00% 93.30%, 21.87% 90.17%, 19.96% 85.80%, 18.59% 81.41%, 16.71% 77.93%, 13.62% 75.48%, 9.53% 73.36%, 5.55% 70.73%, 3.02% 67.10%, 2.63% 62.69%, 3.98% 58.11%, 5.75% 53.87%, 6.54% 50.00%, 5.75% 46.13%, 3.98% 41.89%, 2.63% 37.31%, 3.02% 32.90%, 5.55% 29.27%, 9.53% 26.64%, 13.62% 24.52%, 16.71% 22.07%, 18.59% 18.59%, 19.96% 14.20%, 21.87% 9.83%, 25.00% 6.70%, 29.27% 5.55%, 34.02% 6.09%, 38.50% 7.10%, 42.45% 7.20%, 46.13% 5.75%);
  --md-shape-cookie-12: polygon(50.00% 0.00%, 54.24% 1.49%, 58.00% 4.61%, 61.59% 6.74%, 65.76% 6.69%, 70.58% 5.87%, 75.00% 6.70%, 77.93% 10.11%, 79.63% 14.69%, 81.67% 18.33%, 85.31% 20.37%, 89.89% 22.07%, 93.30% 25.00%, 94.13% 29.42%, 93.31% 34.24%, 93.26% 38.41%, 95.39% 42.00%, 98.51% 45.76%, 100.00% 50.00%, 98.51% 54.24%, 95.39% 58.00%, 93.26% 61.59%, 93.31% 65.76%, 94.13% 70.58%, 93.30% 75.00%, 89.89% 77.93%, 85.31% 79.63%, 81.67% 81.67%, 79.63% 85.31%, 77.93% 89.89%, 75.00% 93.30%, 70.58% 94.13%, 65.76% 93.31%, 61.59% 93.26%, 58.00% 95.39%, 54.24% 98.51%, 50.00% 100.00%, 45.76% 98.51%, 42.00% 95.39%, 38.41% 93.26%, 34.24% 93.31%, 29.42% 94.13%, 25.00% 93.30%, 22.07% 89.89%, 20.37% 85.31%, 18.33% 81.67%, 14.69% 79.63%, 10.11% 77.93%, 6.70% 75.00%, 5.87% 70.58%, 6.69% 65.76%, 6.74% 61.59%, 4.61% 58.00%, 1.49% 54.24%, 0.00% 50.00%, 1.49% 45.76%, 4.61% 42.00%, 6.74% 38.41%, 6.69% 34.24%, 5.87% 29.42%, 6.70% 25.00%, 10.11% 22.07%, 14.69% 20.37%, 18.33% 18.33%, 20.37% 14.69%, 22.07% 10.11%, 25.00% 6.70%, 29.42% 5.87%, 34.24% 6.69%, 38.41% 6.74%, 42.00% 4.61%, 45.76% 1.49%);
  --md-shape-clover-4: polygon(50.00% 0.00%, 54.33% 0.54%, 58.43% 2.17%, 62.09% 4.88%, 64.95% 8.93%, 65.61% 16.52%, 66.97% 20.61%, 68.40% 23.73%, 69.93% 26.25%, 71.67% 28.33%, 73.75% 30.07%, 76.27% 31.60%, 79.39% 33.03%, 83.48% 34.39%, 91.07% 35.05%, 95.12% 37.91%, 97.83% 41.57%, 99.46% 45.67%, 100.00% 50.00%, 99.46% 54.33%, 97.83% 58.43%, 95.12% 62.09%, 91.07% 64.95%, 83.48% 65.61%, 79.39% 66.97%, 76.27% 68.40%, 73.75% 69.93%, 71.67% 71.67%, 69.93% 73.75%, 68.40% 76.27%, 66.97% 79.39%, 65.61% 83.48%, 64.95% 91.07%, 62.09% 95.12%, 58.43% 97.83%, 54.33% 99.46%, 50.00% 100.00%, 45.67% 99.46%, 41.57% 97.83%, 37.91% 95.12%, 35.05% 91.07%, 34.39% 83.48%, 33.03% 79.39%, 31.60% 76.27%, 30.07% 73.75%, 28.33% 71.67%, 26.25% 69.93%, 23.73% 68.40%, 20.61% 66.97%, 16.52% 65.61%, 8.93% 64.95%, 4.88% 62.09%, 2.17% 58.43%, 0.54% 54.33%, 0.00% 50.00%, 0.54% 45.67%, 2.17% 41.57%, 4.88% 37.91%, 8.93% 35.05%, 16.52% 34.39%, 20.61% 33.03%, 23.73% 31.60%, 26.25% 30.07%, 28.33% 28.33%, 30.07% 26.25%, 31.60% 23.73%, 33.03% 20.61%, 34.39% 16.52%, 35.05% 8.93%, 37.91% 4.88%, 41.57% 2.17%, 45.67% 0.54%);
  --md-shape-clover-8: polygon(50.00% 0.00%, 54.27% 1.21%, 57.90% 5.18%, 59.98% 12.76%, 62.47% 15.74%, 65.41% 16.96%, 69.28% 16.61%, 76.11% 12.72%, 81.48% 12.48%, 85.36% 14.64%, 87.52% 18.52%, 87.28% 23.89%, 83.39% 30.72%, 83.04% 34.59%, 84.26% 37.53%, 87.24% 40.02%, 94.82% 42.10%, 98.79% 45.73%, 100.00% 50.00%, 98.79% 54.27%, 94.82% 57.90%, 87.24% 59.98%, 84.26% 62.47%, 83.04% 65.41%, 83.39% 69.28%, 87.28% 76.11%, 87.52% 81.48%, 85.36% 85.36%, 81.48% 87.52%, 76.11% 87.28%, 69.28% 83.39%, 65.41% 83.04%, 62.47% 84.26%, 59.98% 87.24%, 57.90% 94.82%, 54.27% 98.79%, 50.00% 100.00%, 45.73% 98.79%, 42.10% 94.82%, 40.02% 87.24%, 37.53% 84.26%, 34.59% 83.04%, 30.72% 83.39%, 23.89% 87.28%, 18.52% 87.52%, 14.64% 85.36%, 12.48% 81.48%, 12.72% 76.11%, 16.61% 69.28%, 16.96% 65.41%, 15.74% 62.47%, 12.76% 59.98%, 5.18% 57.90%, 1.21% 54.27%, 0.00% 50.00%, 1.21% 45.73%, 5.18% 42.10%, 12.76% 40.02%, 15.74% 37.53%, 16.96% 34.59%, 16.61% 30.72%, 12.72% 23.89%, 12.48% 18.52%, 14.64% 14.64%, 18.52% 12.48%, 23.89% 12.72%, 30.72% 16.61%, 34.59% 16.96%, 37.53% 15.74%, 40.02% 12.76%, 42.10% 5.18%, 45.73% 1.21%);
  --md-shape-sunny: polygon(50.00% 0.00%, 54.21% 1.90%, 57.87% 5.34%, 61.24% 8.07%, 63.87% 11.89%, 67.14% 13.24%, 71.71% 12.41%, 76.01% 12.85%, 81.03% 13.02%, 85.36% 14.64%, 86.98% 18.97%, 87.15% 23.99%, 87.59% 28.29%, 86.76% 32.86%, 88.11% 36.13%, 91.93% 38.76%, 94.66% 42.13%, 98.10% 45.79%, 100.00% 50.00%, 98.10% 54.21%, 94.66% 57.87%, 91.93% 61.24%, 88.11% 63.87%, 86.76% 67.14%, 87.59% 71.71%, 87.15% 76.01%, 86.98% 81.03%, 85.36% 85.36%, 81.03% 86.98%, 76.01% 87.15%, 71.71% 87.59%, 67.14% 86.76%, 63.87% 88.11%, 61.24% 91.93%, 57.87% 94.66%, 54.21% 98.10%, 50.00% 100.00%, 45.79% 98.10%, 42.13% 94.66%, 38.76% 91.93%, 36.13% 88.11%, 32.86% 86.76%, 28.29% 87.59%, 23.99% 87.15%, 18.97% 86.98%, 14.64% 85.36%, 13.02% 81.03%, 12.85% 76.01%, 12.41% 71.71%, 13.24% 67.14%, 11.89% 63.87%, 8.07% 61.24%, 5.34% 57.87%, 1.90% 54.21%, 0.00% 50.00%, 1.90% 45.79%, 5.34% 42.13%, 8.07% 38.76%, 11.89% 36.13%, 13.24% 32.86%, 12.41% 28.29%, 12.85% 23.99%, 13.02% 18.97%, 14.64% 14.64%, 18.97% 13.02%, 23.99% 12.85%, 28.29% 12.41%, 32.86% 13.24%, 36.13% 11.89%, 38.76% 8.07%, 42.13% 5.34%, 45.79% 1.90%);
  --md-shape-very-sunny: polygon(50.00% 0.00%, 54.04% 3.87%, 57.27% 8.79%, 60.31% 11.50%, 61.77% 17.68%, 64.54% 18.82%, 69.93% 15.49%, 74.00% 15.72%, 79.76% 14.53%, 85.36% 14.64%, 85.47% 20.24%, 84.28% 26.00%, 84.51% 30.07%, 81.18% 35.46%, 82.32% 38.23%, 88.50% 39.69%, 91.21% 42.73%, 96.13% 45.96%, 100.00% 50.00%, 96.13% 54.04%, 91.21% 57.27%, 88.50% 60.31%, 82.32% 61.77%, 81.18% 64.54%, 84.51% 69.93%, 84.28% 74.00%, 85.47% 79.76%, 85.36% 85.36%, 79.76% 85.47%, 74.00% 84.28%, 69.93% 84.51%, 64.54% 81.18%, 61.77% 82.32%, 60.31% 88.50%, 57.27% 91.21%, 54.04% 96.13%, 50.00% 100.00%, 45.96% 96.13%, 42.73% 91.21%, 39.69% 88.50%, 38.23% 82.32%, 35.46% 81.18%, 30.07% 84.51%, 26.00% 84.28%, 20.24% 85.47%, 14.64% 85.36%, 14.53% 79.76%, 15.72% 74.00%, 15.49% 69.93%, 18.82% 64.54%, 17.68% 61.77%, 11.50% 60.31%, 8.79% 57.27%, 3.87% 54.04%, 0.00% 50.00%, 3.87% 45.96%, 8.79% 42.73%, 11.50% 39.69%, 17.68% 38.23%, 18.82% 35.46%, 15.49% 30.07%, 15.72% 26.00%, 14.53% 20.24%, 14.64% 14.64%, 20.24% 14.53%, 26.00% 15.72%, 30.07% 15.49%, 35.46% 18.82%, 38.23% 17.68%, 39.69% 11.50%, 42.73% 8.79%, 45.96% 3.87%);
  --md-shape-soft-burst: polygon(50.00% 9.09%, 53.74% 7.27%, 57.97% 4.78%, 62.74% 2.45%, 66.98% 3.35%, 69.69% 7.78%, 71.80% 12.23%, 73.52% 16.42%, 77.15% 17.64%, 82.14% 17.86%, 87.28% 18.72%, 90.88% 21.37%, 90.96% 26.35%, 90.17% 31.27%, 88.77% 35.89%, 90.26% 39.21%, 94.30% 42.19%, 97.83% 45.82%, 100.00% 50.00%, 97.83% 54.18%, 94.30% 57.81%, 90.26% 60.79%, 88.77% 64.11%, 90.17% 68.73%, 90.96% 73.65%, 90.88% 78.63%, 87.28% 81.28%, 82.14% 82.14%, 77.15% 82.36%, 73.52% 83.58%, 71.80% 87.77%, 69.69% 92.22%, 66.98% 96.65%, 62.74% 97.55%, 57.97% 95.22%, 53.74% 92.73%, 50.00% 90.91%, 46.26% 92.73%, 42.03% 95.22%, 37.26% 97.55%, 33.02% 96.65%, 30.31% 92.22%, 28.20% 87.77%, 26.48% 83.58%, 22.85% 82.36%, 17.86% 82.14%, 12.72% 81.28%, 9.12% 78.63%, 9.04% 73.65%, 9.83% 68.73%, 11.23% 64.11%, 9.74% 60.79%, 5.70% 57.81%, 2.17% 54.18%, 0.00% 50.00%, 2.17% 45.82%, 5.70% 42.19%, 9.74% 39.21%, 11.23% 35.89%, 9.83% 31.27%, 9.04% 26.35%, 9.12% 21.37%, 12.72% 18.72%, 17.86% 17.86%, 22.85% 17.64%, 26.48% 16.42%, 28.20% 12.23%, 30.31% 7.78%, 33.02% 3.35%, 37.26% 2.45%, 42.03% 4.78%, 46.26% 7.27%);
  --md-shape-burst: polygon(50.00% 0.00%, 53.86% 5.93%, 57.29% 8.67%, 59.37% 15.03%, 64.35% 10.56%, 68.70% 9.90%, 75.00% 6.70%, 75.38% 13.76%, 76.98% 17.85%, 75.60% 24.40%, 82.15% 23.02%, 86.24% 24.62%, 93.30% 25.00%, 90.10% 31.30%, 89.44% 35.65%, 84.97% 40.63%, 91.33% 42.71%, 94.07% 46.14%, 100.00% 50.00%, 94.07% 53.86%, 91.33% 57.29%, 84.97% 59.37%, 89.44% 64.35%, 90.10% 68.70%, 93.30% 75.00%, 86.24% 75.38%, 82.15% 76.98%, 75.60% 75.60%, 76.98% 82.15%, 75.38% 86.24%, 75.00% 93.30%, 68.70% 90.10%, 64.35% 89.44%, 59.37% 84.97%, 57.29% 91.33%, 53.86% 94.07%, 50.00% 100.00%, 46.14% 94.07%, 42.71% 91.33%, 40.63% 84.97%, 35.65% 89.44%, 31.30% 90.10%, 25.00% 93.30%, 24.62% 86.24%, 23.02% 82.15%, 24.40% 75.60%, 17.85% 76.98%, 13.76% 75.38%, 6.70% 75.00%, 9.90% 68.70%, 10.56% 64.35%, 15.03% 59.37%, 8.67% 57.29%, 5.93% 53.86%, 0.00% 50.00%, 5.93% 46.14%, 8.67% 42.71%, 15.03% 40.63%, 10.56% 35.65%, 9.90% 31.30%, 6.70% 25.00%, 13.76% 24.62%, 17.85% 23.02%, 24.40% 24.40%, 23.02% 17.85%, 24.62% 13.76%, 25.00% 6.70%, 31.30% 9.90%, 35.65% 10.56%, 40.63% 15.03%, 42.71% 8.67%, 46.14% 5.93%);
  --md-shape-flower: polygon(50.00% 0.00%, 54.28% 1.13%, 57.89% 5.23%, 59.21% 15.65%, 61.48% 18.46%, 64.18% 19.58%, 67.78% 19.20%, 76.07% 12.76%, 81.53% 12.42%, 85.36% 14.64%, 87.58% 18.47%, 87.24% 23.93%, 80.80% 32.22%, 80.42% 35.82%, 81.54% 38.52%, 84.35% 40.79%, 94.77% 42.11%, 98.87% 45.72%, 100.00% 50.00%, 98.87% 54.28%, 94.77% 57.89%, 84.35% 59.21%, 81.54% 61.48%, 80.42% 64.18%, 80.80% 67.78%, 87.24% 76.07%, 87.58% 81.53%, 85.36% 85.36%, 81.53% 87.58%, 76.07% 87.24%, 67.78% 80.80%, 64.18% 80.42%, 61.48% 81.54%, 59.21% 84.35%, 57.89% 94.77%, 54.28% 98.87%, 50.00% 100.00%, 45.72% 98.87%, 42.11% 94.77%, 40.79% 84.35%, 38.52% 81.54%, 35.82% 80.42%, 32.22% 80.80%, 23.93% 87.24%, 18.47% 87.58%, 14.64% 85.36%, 12.42% 81.53%, 12.76% 76.07%, 19.20% 67.78%, 19.58% 64.18%, 18.46% 61.48%, 15.65% 59.21%, 5.23% 57.89%, 1.13% 54.28%, 0.00% 50.00%, 1.13% 45.72%, 5.23% 42.11%, 15.65% 40.79%, 18.46% 38.52%, 19.58% 35.82%, 19.20% 32.22%, 12.76% 23.93%, 12.42% 18.47%, 14.64% 14.64%, 18.47% 12.42%, 23.93% 12.76%, 32.22% 19.20%, 35.82% 19.58%, 38.52% 18.46%, 40.79% 15.65%, 42.11% 5.23%, 45.72% 1.13%);
  --md-shape-puffy: polygon(50.00% 10.71%, 53.46% 10.49%, 57.09% 9.77%, 61.55% 6.88%, 66.56% 4.49%, 70.97% 5.02%, 75.00% 6.70%, 78.47% 9.35%, 81.13% 12.90%, 81.57% 18.43%, 81.30% 23.74%, 82.49% 27.25%, 84.02% 30.36%, 85.94% 33.24%, 88.39% 36.03%, 93.12% 38.45%, 97.70% 41.59%, 99.44% 45.67%, 100.00% 50.00%, 99.44% 54.33%, 97.70% 58.41%, 93.12% 61.55%, 88.39% 63.97%, 85.94% 66.76%, 84.02% 69.64%, 82.49% 72.75%, 81.30% 76.26%, 81.57% 81.57%, 81.13% 87.10%, 78.47% 90.65%, 75.00% 93.30%, 70.97% 94.98%, 66.56% 95.51%, 61.55% 93.12%, 57.09% 90.23%, 53.46% 89.51%, 50.00% 89.29%, 46.54% 89.51%, 42.91% 90.23%, 38.45% 93.12%, 33.44% 95.51%, 29.03% 94.98%, 25.00% 93.30%, 21.53% 90.65%, 18.87% 87.10%, 18.43% 81.57%, 18.70% 76.26%, 17.51% 72.75%, 15.98% 69.64%, 14.06% 66.76%, 11.61% 63.97%, 6.88% 61.55%, 2.30% 58.41%, 0.56% 54.33%, 0.00% 50.00%, 0.56% 45.67%, 2.30% 41.59%, 6.88% 38.45%, 11.61% 36.03%, 14.06% 33.24%, 15.98% 30.36%, 17.51% 27.25%, 18.70% 23.74%, 18.43% 18.43%, 18.87% 12.90%, 21.53% 9.35%, 25.00% 6.70%, 29.03% 5.02%, 33.44% 4.49%, 38.45% 6.88%, 42.91% 9.77%, 46.54% 10.49%);
  --md-shape-pentagon: polygon(50.00% 0.00%, 54.28% 1.08%, 58.15% 3.79%, 61.69% 6.36%, 65.01% 8.77%, 68.16% 11.06%, 71.20% 13.27%, 74.20% 15.45%, 77.18% 17.61%, 80.20% 19.80%, 83.30% 22.06%, 86.54% 24.42%, 89.98% 26.92%, 93.70% 29.62%, 96.85% 32.95%, 97.99% 37.14%, 97.04% 41.71%, 95.64% 46.01%, 94.35% 50.00%, 93.12% 53.77%, 91.94% 57.40%, 90.79% 60.93%, 89.66% 64.43%, 88.51% 67.96%, 87.34% 71.56%, 86.13% 75.30%, 84.85% 79.24%, 83.47% 83.47%, 81.78% 87.87%, 78.66% 90.93%, 74.35% 92.17%, 69.67% 92.18%, 65.35% 92.18%, 61.30% 92.18%, 57.44% 92.18%, 53.69% 92.17%, 50.00% 92.17%, 46.31% 92.17%, 42.56% 92.18%, 38.70% 92.18%, 34.65% 92.18%, 30.33% 92.18%, 25.65% 92.17%, 21.34% 90.93%, 18.22% 87.87%, 16.53% 83.47%, 15.15% 79.24%, 13.87% 75.30%, 12.66% 71.56%, 11.49% 67.96%, 10.34% 64.43%, 9.21% 60.93%, 8.06% 57.40%, 6.88% 53.77%, 5.42% 50.00%, 4.36% 46.01%, 2.96% 41.71%, 2.01% 37.14%, 3.15% 32.95%, 6.30% 29.62%, 10.02% 26.92%, 13.46% 24.42%, 16.70% 22.06%, 19.80% 19.80%, 22.82% 17.61%, 25.80% 15.45%, 28.80% 13.27%, 31.84% 11.06%, 34.99% 8.77%, 38.31% 6.36%, 41.85% 3.79%, 45.72% 1.08%);
  --md-shape-triangle: polygon(50.00% 0.00%, 54.30% 0.83%, 58.21% 3.43%, 61.27% 7.96%, 63.74% 12.24%, 65.88% 15.95%, 67.77% 19.22%, 69.48% 22.18%, 71.05% 24.91%, 72.53% 27.47%, 73.94% 29.91%, 75.31% 32.28%, 76.65% 34.62%, 78.00% 36.94%, 79.37% 39.31%, 80.77% 41.75%, 82.26% 44.31%, 83.83% 47.04%, 85.54% 50.00%, 87.42% 53.27%, 89.57% 56.98%, 92.04% 61.27%, 94.43% 66.17%, 94.73% 70.86%, 93.30% 75.00%, 90.43% 78.31%, 86.22% 80.39%, 80.78% 80.78%, 75.83% 80.78%, 71.55% 80.77%, 67.77% 80.78%, 64.35% 80.78%, 61.20% 80.78%, 58.25% 80.77%, 55.43% 80.78%, 52.69% 80.78%, 50.00% 80.77%, 47.31% 80.78%, 44.57% 80.78%, 41.75% 80.77%, 38.80% 80.78%, 35.65% 80.78%, 32.23% 80.78%, 28.45% 80.77%, 24.17% 80.78%, 19.22% 80.78%, 13.78% 80.39%, 9.57% 78.31%, 6.70% 75.00%, 5.27% 70.86%, 5.57% 66.17%, 7.96% 61.27%, 10.43% 56.98%, 12.58% 53.27%, 15.01% 50.00%, 16.17% 47.04%, 17.74% 44.31%, 19.23% 41.75%, 20.63% 39.31%, 22.00% 36.94%, 23.35% 34.62%, 24.69% 32.28%, 26.06% 29.91%, 27.47% 27.47%, 28.95% 24.91%, 30.52% 22.18%, 32.23% 19.22%, 34.12% 15.95%, 36.26% 12.24%, 38.73% 7.96%, 41.79% 3.43%, 45.70% 0.83%);
  --md-shape-gem: polygon(50.00% 5.68%, 53.88% 5.67%, 57.82% 5.67%, 61.88% 5.67%, 66.13% 5.67%, 70.67% 5.67%, 75.00% 6.70%, 78.05% 9.94%, 80.32% 13.87%, 82.45% 17.55%, 84.48% 21.07%, 86.45% 24.48%, 88.38% 27.84%, 90.33% 31.20%, 92.30% 34.61%, 94.33% 38.12%, 96.45% 41.81%, 98.72% 45.74%, 100.00% 50.00%, 98.72% 54.26%, 96.45% 58.19%, 94.33% 61.88%, 92.30% 65.39%, 90.33% 68.80%, 88.38% 72.16%, 86.45% 75.52%, 84.48% 78.93%, 82.45% 82.45%, 80.32% 86.13%, 78.05% 90.06%, 75.00% 93.30%, 70.67% 94.33%, 66.13% 94.33%, 61.88% 94.33%, 57.82% 94.33%, 53.88% 94.33%, 50.00% 94.32%, 46.12% 94.33%, 42.18% 94.33%, 38.12% 94.33%, 33.87% 94.33%, 29.33% 94.33%, 25.00% 93.30%, 21.95% 90.06%, 19.68% 86.13%, 17.55% 82.45%, 15.52% 78.93%, 13.55% 75.52%, 11.62% 72.16%, 9.67% 68.80%, 7.70% 65.39%, 5.67% 61.88%, 3.55% 58.19%, 1.28% 54.26%, 0.00% 50.00%, 1.28% 45.74%, 3.55% 41.81%, 5.67% 38.12%, 7.70% 34.61%, 9.67% 31.20%, 11.62% 27.84%, 13.55% 24.48%, 15.52% 21.07%, 17.55% 17.55%, 19.68% 13.87%, 21.95% 9.94%, 25.00% 6.70%, 29.33% 5.67%, 33.87% 5.67%, 38.12% 5.67%, 42.18% 5.67%, 46.12% 5.67%);
  --md-shape-diamond: polygon(50.00% 0.00%, 54.29% 1.00%, 58.10% 4.08%, 61.42% 7.40%, 64.41% 10.40%, 67.18% 13.16%, 69.77% 15.76%, 72.25% 18.23%, 74.65% 20.63%, 77.00% 23.00%, 79.37% 25.35%, 81.77% 27.75%, 84.24% 30.23%, 86.84% 32.82%, 89.60% 35.59%, 92.60% 38.58%, 95.92% 41.90%, 99.00% 45.71%, 100.00% 50.00%, 99.00% 54.29%, 95.92% 58.10%, 92.60% 61.42%, 89.60% 64.41%, 86.84% 67.18%, 84.24% 69.77%, 81.77% 72.25%, 79.37% 74.65%, 77.00% 77.00%, 74.65% 79.37%, 72.25% 81.77%, 69.77% 84.24%, 67.18% 86.84%, 64.41% 89.60%, 61.42% 92.60%, 58.10% 95.92%, 54.29% 99.00%, 50.00% 100.00%, 45.71% 99.00%, 41.90% 95.92%, 38.58% 92.60%, 35.59% 89.60%, 32.82% 86.84%, 30.23% 84.24%, 27.75% 81.77%, 25.35% 79.37%, 23.00% 77.00%, 20.63% 74.65%, 18.23% 72.25%, 15.76% 69.77%, 13.16% 67.18%, 10.40% 64.41%, 7.40% 61.42%, 4.08% 58.10%, 1.00% 54.29%, 0.00% 50.00%, 1.00% 45.71%, 4.08% 41.90%, 7.40% 38.58%, 10.40% 35.59%, 13.16% 32.82%, 15.76% 30.23%, 18.23% 27.75%, 20.63% 25.35%, 23.00% 23.00%, 25.35% 20.63%, 27.75% 18.23%, 30.23% 15.76%, 32.82% 13.16%, 35.59% 10.40%, 38.58% 7.40%, 41.90% 4.08%, 45.71% 1.00%);

  /* ---- Old names, kept as aliases of the Material roles ---- */
  --font-sans: var(--md-ref-typeface-plain);
  --font-brand: var(--md-ref-typeface-brand);
  --font-mono: var(--md-ref-typeface-mono);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --leading: 1.5;
  --leading-tight: 1.2;
  --radius-sm: var(--md-sys-shape-corner-small);
  --radius: var(--md-sys-shape-corner-medium);
  --radius-lg: var(--md-sys-shape-corner-large-increased);
  --bg: var(--md-sys-color-surface);
  --surface: var(--md-sys-color-surface-container-low);
  --surface-2: var(--md-sys-color-surface-container-high);
  --border: var(--md-sys-color-outline-variant);
  --border-strong: var(--md-sys-color-outline);
  --text: var(--md-sys-color-on-surface);
  --text-muted: var(--md-sys-color-on-surface-variant);
  --accent: var(--md-sys-color-primary);
  --accent-hover: color-mix(in srgb, var(--md-sys-color-primary) 88%, var(--md-sys-color-on-primary));
  --accent-soft: var(--md-sys-color-primary-container);
  --on-accent: var(--md-sys-color-on-primary);
  --link: var(--md-sys-color-primary);
  --focus: var(--md-sys-color-secondary);
  --ok: var(--wy-ok);
  --ok-soft: var(--wy-ok-container);
  --warn: var(--wy-warn);
  --warn-soft: var(--wy-warn-container);
  --danger: var(--md-sys-color-error);
  --danger-soft: var(--md-sys-color-error-container);
  --info: var(--wy-info);
  --info-soft: var(--wy-info-container);
  --neutral: var(--md-sys-color-on-surface-variant);
  --neutral-soft: var(--md-sys-color-surface-container-highest);
  --sim: var(--wy-sim);
  --sim-soft: var(--wy-sim-container);
  --shadow: var(--md-sys-elevation-level1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* ---- Colour: dark scheme ---- */
    --md-sys-color-primary: #95ccff;
    --md-sys-color-on-primary: #003352;
    --md-sys-color-primary-container: #004a75;
    --md-sys-color-on-primary-container: #cde5ff;
    --md-sys-color-inverse-primary: #006399;
    --md-sys-color-primary-fixed: #cde5ff;
    --md-sys-color-primary-fixed-dim: #95ccff;
    --md-sys-color-on-primary-fixed: #001d32;
    --md-sys-color-on-primary-fixed-variant: #004a75;
    --md-sys-color-secondary: #aec9e6;
    --md-sys-color-on-secondary: #163349;
    --md-sys-color-secondary-container: #2e4961;
    --md-sys-color-on-secondary-container: #cde5ff;
    --md-sys-color-secondary-fixed: #cde5ff;
    --md-sys-color-secondary-fixed-dim: #aec9e6;
    --md-sys-color-on-secondary-fixed: #001d32;
    --md-sys-color-on-secondary-fixed-variant: #2e4961;
    --md-sys-color-tertiary: #a8d645;
    --md-sys-color-on-tertiary: #253600;
    --md-sys-color-tertiary-container: #374e00;
    --md-sys-color-on-tertiary-container: #c3f35f;
    --md-sys-color-tertiary-fixed: #c3f35f;
    --md-sys-color-tertiary-fixed-dim: #a8d645;
    --md-sys-color-on-tertiary-fixed: #141f00;
    --md-sys-color-on-tertiary-fixed-variant: #374e00;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;
    --md-sys-color-surface: #101418;
    --md-sys-color-on-surface: #e0e2e8;
    --md-sys-color-surface-variant: #404850;
    --md-sys-color-on-surface-variant: #c0c7d1;
    --md-sys-color-surface-dim: #101418;
    --md-sys-color-surface-bright: #36393e;
    --md-sys-color-surface-container-lowest: #0b0f12;
    --md-sys-color-surface-container-low: #181c20;
    --md-sys-color-surface-container: #1c2024;
    --md-sys-color-surface-container-high: #272a2e;
    --md-sys-color-surface-container-highest: #313539;
    --md-sys-color-inverse-surface: #e0e2e8;
    --md-sys-color-inverse-on-surface: #2d3135;
    --md-sys-color-outline: #8a919b;
    --md-sys-color-outline-variant: #404850;
    --md-sys-color-shadow: #000000;
    --md-sys-color-scrim: #000000;
    --md-sys-color-surface-tint: #95ccff;

    --wy-ok: #7ad7bd;
    --wy-on-ok: #00382d;
    --wy-ok-container: #005142;
    --wy-on-ok-container: #97f4d9;
    --wy-warn: #ffb869;
    --wy-on-warn: #482900;
    --wy-warn-container: #673d00;
    --wy-on-warn-container: #ffdcbb;
    --wy-info: #92ccff;
    --wy-on-info: #003351;
    --wy-info-container: #004b73;
    --wy-on-info-container: #cce5ff;
    --wy-sim: #dcb8ff;
    --wy-on-sim: #480082;
    --wy-sim-container: #61239e;
    --wy-on-sim-container: #efdbff;

    --chart-line: #4fa8de;
    --replay-head: #c3ccd8;
    --replay-left: #338ced;
    --replay-right: #e76624;
  }
}

/* ---- Base ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-body-large);
  letter-spacing: var(--md-sys-typescale-body-large-tracking);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-3);
  color: var(--md-sys-color-on-surface);
  text-wrap: balance;
}
h1 { font: var(--md-sys-typescale-emphasized-headline-large); }
h2 { font: var(--md-sys-typescale-emphasized-headline-small); }
h3 { font: var(--md-sys-typescale-emphasized-title-large); }
h4 { font: var(--md-sys-typescale-emphasized-title-medium); letter-spacing: var(--md-sys-typescale-title-medium-tracking); }

p { margin: 0 0 var(--s-4); }

a {
  color: var(--md-sys-color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

code,
kbd,
pre {
  font-family: var(--md-ref-typeface-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}
code {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  border-radius: var(--md-sys-shape-corner-extra-small);
  padding: 0.1em 0.4em;
}
pre {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-large);
  padding: var(--s-4) var(--s-5);
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

/* Every interactive element shows where the keyboard is: the M3 focus
   indicator, a 3px ring in the secondary colour, 2px outside the element. */
:focus-visible {
  outline: 3px solid var(--md-sys-color-secondary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -5rem;
  z-index: 100;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font: var(--md-sys-typescale-label-large);
  box-shadow: var(--md-sys-elevation-level3);
}
.skip-link:focus { top: var(--s-3); }

/* ---- Buttons (M3 Expressive common buttons) --------------------------------
   .btn alone is the outlined button; .btn-primary filled, .btn-tonal tonal,
   .btn-elevated elevated, .btn-quiet the text button, .btn-danger filled in
   the error colour. Sizes: .btn-sm (extra small), default (small, 40px),
   .btn-lg (medium, 56px), .btn-xl (large, 96px). Buttons are round; .btn-square
   gives the square shape. Pressing one morphs its corners on a fast spatial
   spring, as M3 Expressive buttons do. */

.btn {
  --btn-container: transparent;
  --btn-label: var(--md-sys-color-on-surface-variant);
  --btn-outline: var(--md-sys-color-outline-variant);
  --btn-height: 2.5rem;
  --btn-pad: 1rem;
  /* Round is half the height, as a real length: corners that animate
     must never go to or from 9999px, or a spring's overshoot drives them
     below zero and the button flashes square. */
  --btn-radius-full: calc(var(--btn-height) / 2);
  --btn-radius: var(--btn-radius-full);
  --btn-radius-pressed: var(--md-sys-shape-corner-small);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad);
  border: 1px solid var(--btn-outline);
  border-radius: var(--btn-radius);
  background: var(--btn-container);
  color: var(--btn-label);
  font: var(--md-sys-typescale-label-large);
  letter-spacing: var(--md-sys-typescale-label-large-tracking);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-radius var(--md-sys-motion-spring-fast-spatial-duration) var(--md-sys-motion-spring-fast-spatial),
    box-shadow var(--md-sys-motion-spring-default-effects-duration) var(--md-sys-motion-spring-default-effects),
    background-color var(--md-sys-motion-spring-default-effects-duration) var(--md-sys-motion-spring-default-effects);
}
/* The state layer. */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion-spring-fast-effects-duration) var(--md-sys-motion-spring-fast-effects);
}
/* A 48px touch target, whatever the button's size. */
.btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: max(100%, 3rem);
  transform: translateY(-50%);
}
.btn:hover::before { opacity: var(--md-sys-state-hover-state-layer-opacity); }
.btn:focus-visible::before { opacity: var(--md-sys-state-focus-state-layer-opacity); }
.btn:active::before { opacity: var(--md-sys-state-pressed-state-layer-opacity); }
.btn:active { border-radius: var(--btn-radius-pressed); }
.btn:focus-visible { outline-offset: 3px; }

.btn-primary {
  --btn-container: var(--md-sys-color-primary);
  --btn-label: var(--md-sys-color-on-primary);
  --btn-outline: transparent;
}
.btn-primary:hover { box-shadow: var(--md-sys-elevation-level1); }
.btn-tonal {
  --btn-container: var(--md-sys-color-secondary-container);
  --btn-label: var(--md-sys-color-on-secondary-container);
  --btn-outline: transparent;
}
.btn-tonal:hover { box-shadow: var(--md-sys-elevation-level1); }
.btn-elevated {
  --btn-container: var(--md-sys-color-surface-container-low);
  --btn-label: var(--md-sys-color-primary);
  --btn-outline: transparent;
  box-shadow: var(--md-sys-elevation-level1);
}
.btn-elevated:hover { box-shadow: var(--md-sys-elevation-level2); }
.btn-danger {
  --btn-container: var(--md-sys-color-error);
  --btn-label: var(--md-sys-color-on-error);
  --btn-outline: transparent;
}
.btn-quiet {
  --btn-label: var(--md-sys-color-primary);
  --btn-outline: transparent;
  --btn-pad: 0.75rem;
}

.btn-sm {
  --btn-height: 2rem;
  --btn-pad: 0.75rem;
  --btn-radius-pressed: var(--md-sys-shape-corner-small);
}
.btn-lg {
  --btn-height: 3.5rem;
  --btn-pad: 1.5rem;
  --btn-radius-pressed: var(--md-sys-shape-corner-medium);
  font: var(--md-sys-typescale-title-medium);
  letter-spacing: var(--md-sys-typescale-title-medium-tracking);
}
.btn-xl {
  --btn-height: 6rem;
  --btn-pad: 3rem;
  --btn-radius-pressed: var(--md-sys-shape-corner-large);
  gap: var(--s-3);
  font: var(--md-sys-typescale-headline-small);
}
.btn-square { --btn-radius: var(--md-sys-shape-corner-medium); }
.btn-lg.btn-square { --btn-radius: var(--md-sys-shape-corner-large); }
.btn-xl.btn-square { --btn-radius: var(--md-sys-shape-corner-extra-large); }

.btn[disabled],
.btn[aria-disabled="true"] {
  --btn-container: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
  --btn-label: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
  --btn-outline: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-quiet[disabled],
.btn-quiet[aria-disabled="true"] { --btn-container: transparent; --btn-outline: transparent; }
.btn[disabled]::before,
.btn[aria-disabled="true"]::before { opacity: 0; }
.btn[disabled]:active,
.btn[aria-disabled="true"]:active { border-radius: var(--btn-radius); }

/* ---- Cards ------------------------------------------------------------------
   .card is the filled card on a surface container; .card-outlined and
   .card-elevated are the other two M3 cards. */

.card {
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  border: 0;
  border-radius: var(--md-sys-shape-corner-large-increased);
  padding: var(--s-5);
}
.card-outlined {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
}
.card-elevated {
  background: var(--md-sys-color-surface-container-low);
  box-shadow: var(--md-sys-elevation-level1);
}

/* ---- Text fields (M3 outlined text field, label above) ---- */

.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label,
.label {
  font: var(--md-sys-typescale-title-small);
  letter-spacing: var(--md-sys-typescale-title-small-tracking);
  color: var(--md-sys-color-on-surface);
}
.field .hint {
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-small);
  letter-spacing: var(--md-sys-typescale-body-small-tracking);
}
.field .error {
  color: var(--md-sys-color-error);
  font: var(--md-sys-typescale-body-small);
  letter-spacing: var(--md-sys-typescale-body-small-tracking);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3.5rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small);
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-typescale-body-large);
  letter-spacing: var(--md-sys-typescale-body-large-tracking);
  caret-color: var(--md-sys-color-primary);
  transition: border-color var(--md-sys-motion-spring-fast-effects-duration) var(--md-sys-motion-spring-fast-effects),
    box-shadow var(--md-sys-motion-spring-fast-effects-duration) var(--md-sys-motion-spring-fast-effects);
}
.select { background: var(--md-sys-color-surface); }
.select option { background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface); }
.textarea { min-height: 7.5rem; resize: vertical; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--md-sys-color-on-surface); }
/* The focused field: a 2px outline in the primary colour, drawn without
   moving the text. The field itself is the focus indicator. */
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
}
.input::placeholder,
.textarea::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: 1; }
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--md-sys-color-error); }
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px var(--md-sys-color-error); }
.input:disabled,
.select:disabled,
.textarea:disabled {
  border-color: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
  color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
}

/* ---- Badges: status labels with a container colour ---- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 1.5rem;
  padding: 0 var(--s-3);
  border-radius: var(--md-sys-shape-corner-full);
  font: var(--md-sys-typescale-label-medium);
  letter-spacing: var(--md-sys-typescale-label-medium-tracking);
  white-space: nowrap;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
}
.badge-ok { background: var(--wy-ok-container); color: var(--wy-on-ok-container); }
.badge-warn { background: var(--wy-warn-container); color: var(--wy-on-warn-container); }
.badge-danger { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.badge-info { background: var(--wy-info-container); color: var(--wy-on-info-container); }
.badge-sim { background: var(--wy-sim-container); color: var(--wy-on-sim-container); }

/* ---- Notices: a container in the colour of what they say ---- */

.notice {
  border: 0;
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--wy-info-container);
  color: var(--wy-on-info-container);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-4);
}
.notice a { color: inherit; font-weight: 600; }
.notice > :last-child { margin-bottom: 0; }
.notice-warn { background: var(--wy-warn-container); color: var(--wy-on-warn-container); }
.notice-danger { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.notice-sim { background: var(--wy-sim-container); color: var(--wy-on-sim-container); }

/* ---- Tables ---- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--md-sys-shape-corner-large);
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font: var(--md-sys-typescale-body-medium);
  letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}
.table th,
.table td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  vertical-align: top;
}
.table th {
  font: var(--md-sys-typescale-title-small);
  letter-spacing: var(--md-sys-typescale-title-small-tracking);
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
}
.table tbody tr {
  transition: background-color var(--md-sys-motion-spring-fast-effects-duration) var(--md-sys-motion-spring-fast-effects);
}
.table tbody tr:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 4%, transparent);
}

/* ---- Shapes that change form (M3 Expressive) --------------------------------
   .md-shape takes its shape from --md-shape and morphs on a spring whenever
   that changes: set --md-shape on :hover, [aria-pressed="true"],
   [aria-selected="true"], [aria-current], :checked and so on.

     .feature-icon { --md-shape: var(--md-shape-cookie-9); }
     .card:hover .feature-icon { --md-shape: var(--md-shape-clover-8); rotate: 45deg; }

   clip-path also clips the focus ring, so never put a shape on a focusable
   element itself: shape a ::before, or a child behind the content.
   .md-shape-drift slowly morphs through four shapes (for decoration only).
   .md-loading-indicator is the M3 Expressive loading indicator; add
   .md-loading-indicator-contained for the contained version. Give it an
   accessible name where it stands alone (role="progressbar" and
   aria-label, or text beside it). */

.md-shape {
  --md-shape: var(--md-shape-circle);
  clip-path: var(--md-shape);
  transition:
    clip-path var(--md-sys-motion-morph-duration) var(--md-sys-motion-morph),
    rotate var(--md-sys-motion-spring-slow-spatial-duration) var(--md-sys-motion-spring-slow-spatial),
    scale var(--md-sys-motion-spring-default-spatial-duration) var(--md-sys-motion-spring-default-spatial),
    background-color var(--md-sys-motion-spring-default-effects-duration) var(--md-sys-motion-spring-default-effects);
}

.md-shape-drift {
  animation: md-shape-drift 28s infinite;
}
@keyframes md-shape-drift {
  0%, 18% { clip-path: var(--md-shape-clover-8); rotate: 0deg; animation-timing-function: var(--md-sys-motion-morph); }
  25%, 43% { clip-path: var(--md-shape-sunny); rotate: 45deg; animation-timing-function: var(--md-sys-motion-morph); }
  50%, 68% { clip-path: var(--md-shape-flower); rotate: 90deg; animation-timing-function: var(--md-sys-motion-morph); }
  75%, 93% { clip-path: var(--md-shape-very-sunny); rotate: 135deg; animation-timing-function: var(--md-sys-motion-morph); }
  100% { clip-path: var(--md-shape-clover-8); rotate: 180deg; }
}

.md-loading-indicator {
  position: relative;
  display: inline-block;
  flex: none;
  width: 3rem;
  height: 3rem;
  vertical-align: middle;
}
.md-loading-indicator::before {
  content: "";
  position: absolute;
  inset: 0.3125rem;
  background: var(--md-sys-color-primary);
  clip-path: var(--md-shape-soft-burst);
  animation: md-loading-morph 4.9s infinite, md-loading-spin 4.9s linear infinite;
}
.md-loading-indicator-contained {
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-primary-container);
}
.md-loading-indicator-contained::before {
  inset: 0.625rem;
  background: var(--md-sys-color-on-primary-container);
}
@keyframes md-loading-morph {
  0% { clip-path: var(--md-shape-soft-burst); animation-timing-function: var(--md-sys-motion-morph-fast); }
  14.286% { clip-path: var(--md-shape-cookie-9); animation-timing-function: var(--md-sys-motion-morph-fast); }
  28.571% { clip-path: var(--md-shape-pentagon); animation-timing-function: var(--md-sys-motion-morph-fast); }
  42.857% { clip-path: var(--md-shape-pill); animation-timing-function: var(--md-sys-motion-morph-fast); }
  57.143% { clip-path: var(--md-shape-sunny); animation-timing-function: var(--md-sys-motion-morph-fast); }
  71.429% { clip-path: var(--md-shape-cookie-4); animation-timing-function: var(--md-sys-motion-morph-fast); }
  85.714% { clip-path: var(--md-shape-circle); animation-timing-function: var(--md-sys-motion-morph-fast); }
  100% { clip-path: var(--md-shape-soft-burst); }
}
@keyframes md-loading-spin {
  to { rotate: 1turn; }
}

.muted { color: var(--md-sys-color-on-surface-variant); }
.mono { font-family: var(--md-ref-typeface-mono); font-size: 0.92em; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
