@layer reset, tokens, base, components, utilities;
/* #ref https://m3.material.io/components/lists/overview */
/* #insight Scoped semantic styles for accordion groups and expandable <details> items */

@layer components {
  @scope (.accordion) {
    :scope {
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    :scope.accordion-card {
      gap: var(--space-3, 12px);
    }

    :scope.accordion-card > details.accordion-item {
      background-color: var(--color-surface-container-low);
      border-radius: var(--corner-l, 16px);
      overflow: clip;
      --accordion-summary-padding: var(--space-4, 16px) var(--space-5, 20px);
      --accordion-body-padding: 0 var(--space-5, 20px) var(--space-5, 20px);
    }

    :scope.accordion-outlined {
      gap: var(--space-2, 8px);
    }

    :scope.accordion-outlined > details.accordion-item {
      background-color: var(--color-surface);
      border: 1px solid var(--color-outline-variant);
      border-radius: var(--corner-l, 16px);
      overflow: clip;
      --accordion-summary-padding: var(--space-3, 12px) var(--space-4, 16px);
      --accordion-body-padding: 0 var(--space-4, 16px) var(--space-4, 16px);
    }

    :scope.accordion-divided {
      gap: 0;
      background-color: var(--color-surface-container-low);
      border-radius: var(--corner-l, 16px);
      overflow: clip;
    }

    :scope.accordion-divided > details.accordion-item {
      --accordion-summary-padding: var(--space-4, 16px) var(--space-5, 20px);
      --accordion-body-padding: 0 var(--space-5, 20px) var(--space-5, 20px);
    }

    :scope.accordion-divided > details.accordion-item + details.accordion-item {
      border-top: 1px solid var(--color-outline-variant);
    }

    :scope.accordion-bare {
      gap: var(--space-2, 8px);
    }

    :scope.accordion-bare > details.accordion-item {
      --accordion-summary-padding: 0;
      --accordion-body-padding: 0;
      --accordion-hover-layer: none;
      --accordion-pressed-layer: none;
    }
  }

  @scope (.accordion-item, details.accordion-item) {
    :scope {
      display: block;
      width: 100%;
    }

    @media (hover: hover) and (pointer: fine) {
      :scope:has(> .accordion-summary:hover) {
        background-image: var(
          --accordion-hover-layer,
          linear-gradient(color-mix(in srgb, var(--color-on-surface) 8%, transparent) 0 0)
        );
      }
    }

    :scope:has(> .accordion-summary:active) {
      background-image: var(
        --accordion-pressed-layer,
        linear-gradient(color-mix(in srgb, var(--color-on-surface) 12%, transparent) 0 0)
      );
    }

    :scope > .accordion-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3, 12px);
      min-height: 48px;
      padding: var(--accordion-summary-padding, 0);
      list-style: none;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      color: var(--color-on-surface);
    }

    :scope > .accordion-summary::-webkit-details-marker {
      display: none;
    }

    :scope > .accordion-summary::marker {
      content: "";
      display: none;
    }

    :scope > .accordion-summary > .accordion-summary-content {
      flex: 1 1 auto;
      min-width: 0;
      font-family: var(--font-family-plain);
      font-size: var(--type-title-m-size, 1rem);
      line-height: var(--type-title-m-line-height, 1.5rem);
      font-weight: 500;
      color: var(--color-on-surface);
      text-wrap: pretty;
    }

    :scope > .accordion-summary > .accordion-indicator {
      flex-shrink: 0;
      color: var(--color-on-surface-variant);
      rotate: 0deg;
      transition: rotate var(--motion-duration-medium, 300ms) var(--motion-spring-spatial-fast, cubic-bezier(0.22, 1.25, 0.36, 1));
    }

    :scope[open] > .accordion-summary > .accordion-indicator {
      color: var(--color-on-surface);
    }

    :scope.accordion-indicator-plus[open] > .accordion-summary > .accordion-indicator {
      rotate: 45deg;
    }

    :scope.accordion-indicator-chevron[open] > .accordion-summary > .accordion-indicator {
      rotate: 180deg;
    }

    /* Safari 18.4+/26: grid-template-rows 0fr <-> 1fr (.accordion-content) */
    @supports not (interpolate-size: allow-keywords) {
      :scope > .accordion-content {
        display: grid;
        grid-template-rows: 0fr;
        overflow: clip;
        transition: grid-template-rows 250ms var(--motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));
      }

      :scope[open] > .accordion-content {
        grid-template-rows: 1fr;
        transition-duration: var(--motion-duration-medium, 300ms);
      }

      @starting-style {
        :scope[open] > .accordion-content {
          grid-template-rows: 0fr;
        }
      }

      :scope > .accordion-content > .accordion-content-inner {
        min-height: 0;
        overflow: hidden;
        padding: 0;
      }
    }

    :scope > .accordion-content > .accordion-content-inner > .accordion-body {
      display: flow-root;
      padding: var(--accordion-body-padding, 0);
      opacity: 0;
      translate: 0 -4px;
      transition: opacity 150ms var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)) 0ms,
                  translate 200ms var(--motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)) 0ms;
    }

    :where(:scope > .accordion-content > .accordion-content-inner > .accordion-body > *) {
      --accordion-summary-padding: initial;
      --accordion-body-padding: initial;
      --accordion-hover-layer: initial;
      --accordion-pressed-layer: initial;
    }

    :scope[open] > .accordion-content > .accordion-content-inner > .accordion-body {
      opacity: 1;
      translate: 0 0;
      transition: opacity var(--motion-duration-short, 200ms) var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)) 40ms,
                  translate var(--motion-duration-medium, 300ms) var(--motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)) 0ms;
    }

    @starting-style {
      :scope[open] > .accordion-content > .accordion-content-inner > .accordion-body {
        opacity: 0;
        translate: 0 -4px;
      }
    }

    :scope:not([open]) > .accordion-content {
      pointer-events: none;
    }

    @media (prefers-reduced-motion: reduce) {
      :scope > .accordion-content,
      :scope > .accordion-content > .accordion-content-inner > .accordion-body,
      :scope > .accordion-summary > .accordion-indicator {
        transition: none;
      }
    }
  }

  /* Native ::details-content rules live directly in @layer components outside @scope */
  /* Chrome 131+: native ::details-content + interpolate-size intrinsic height transition */
  @supports (interpolate-size: allow-keywords) {
    details.accordion-item {
      interpolate-size: allow-keywords;
    }

    details.accordion-item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 250ms var(--motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)),
                  content-visibility 250ms allow-discrete,
                  display 250ms allow-discrete;
    }

    details.accordion-item[open]::details-content {
      block-size: auto;
      transition-duration: var(--motion-duration-medium, 300ms);
    }
  }

  /* Safari 18.4+/26: content-visibility allow-discrete for ::details-content */
  @supports not (interpolate-size: allow-keywords) {
    details.accordion-item::details-content {
      transition: content-visibility 250ms allow-discrete;
    }

    details.accordion-item[open]::details-content {
      transition-duration: var(--motion-duration-medium, 300ms);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    details.accordion-item::details-content {
      transition: none;
    }
  }
}

/* #insight Scoped semantic styles for breadcrumbs navigation */

@layer components {
  @scope (.breadcrumbs) {
    :scope {
      display: flex;
      align-items: center;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .breadcrumbs-item {
      display: flex;
      align-items: center;
      height: 32px;
      border-radius: var(--radius-xs, 4px);
    }

    .breadcrumbs-item::after {
      content: "/";
      margin: 0 0.5em;
      color: var(--color-outline-variant);
    }

    .breadcrumbs-item:last-child::after {
      display: none;
    }

    .breadcrumbs-item-current {
      display: flex;
      align-items: center;
      height: 32px;
      color: var(--color-on-surface);
      font-weight: var(--font-weight-medium, 500);
    }
  }
}

/* #ref https://m3.material.io/components/buttons/overview */
/* #ref https://m3.material.io/components/icon-buttons/overview */
/* #insight Scoped semantic CSS avoids 15-20 utility classes per element, cutting DOM token weight by ~75% for AI agents while providing stable semantic selectors */

@layer components {
  @scope (.button) {
    :scope {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      gap: var(--space-2);
      height: 40px;
      padding: 0 var(--space-4);
      border-radius: var(--radius-full, 9999px);
      border: none;
      font-family: var(--font-family-plain);
      font-size: 0.875rem;
      font-weight: var(--font-weight-medium);
      line-height: 1.25rem;
      position: relative;
      overflow: hidden;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
      user-select: none;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      transition: scale var(--motion-duration-short, 200ms) var(--motion-spring-spatial-fast, cubic-bezier(0.22, 1.25, 0.36, 1));
    }

    &:not([popovertarget]):not([commandfor]):not([data-adaptive-popover-trigger]):not([data-menu-popover-trigger]):not([style*="anchor-name"]):is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"]) {
      scale: 0.96;
      transition: scale var(--motion-duration-press, 75ms) var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
    }

    &:is([popovertarget], [commandfor], [data-adaptive-popover-trigger], [data-menu-popover-trigger], [style*="anchor-name"]):is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"]) > :is(.label, .icon, .material-symbols-rounded, .material-symbols-outlined) {
      scale: 0.95;
      transition: scale var(--motion-duration-press, 75ms) var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
    }

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background-color: currentColor;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--motion-duration-short, 200ms) var(--motion-spring-effects, linear);
      z-index: 0;
    }

    @media (hover: hover) and (pointer: fine) {
      &:hover:not(:disabled):not([aria-disabled="true"])::before {
        opacity: 0.08;
      }
    }

    &:is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"])::before {
      opacity: 0.12;
      transition-duration: 40ms;
    }

    &:disabled, &[aria-disabled="true"] {
      opacity: 0.38;
      cursor: default;
      pointer-events: none;
    }

    & > :is(.label, .icon, .material-symbols-rounded, .material-symbols-outlined) {
      position: relative;
      z-index: 1;
      transition: scale var(--motion-duration-short, 200ms) var(--motion-spring-spatial-fast, cubic-bezier(0.22, 1.25, 0.36, 1));
    }

    & > .label {
      display: inline-block;
      text-box: trim-both cap alphabetic;
    }

    /* Standard Variants */
    &.button-primary,
    &.button-filled {
      background-color: var(--color-primary);
      color: var(--color-on-primary);
    }
    &.button-primary-container {
      background-color: var(--color-primary-container);
      color: var(--color-on-primary-container);
    }
    &.button-secondary {
      background-color: var(--color-secondary);
      color: var(--color-on-secondary);
    }
    &.button-secondary-container,
    &.button-tonal {
      background-color: var(--color-secondary-container);
      color: var(--color-on-secondary-container);
    }
    &.button-tertiary {
      background-color: var(--color-tertiary);
      color: var(--color-on-tertiary);
    }
    &.button-tertiary-container {
      background-color: var(--color-tertiary-container);
      color: var(--color-on-tertiary-container);
    }
    &.button-outlined {
      background-color: transparent;
      border: 1px solid var(--color-outline);
      color: var(--color-primary);

      &.button-error,
      &.color-error {
        background-color: transparent !important;
        border-color: var(--color-error);
        color: var(--color-error) !important;
      }

      @media (hover: hover) and (pointer: fine) {
        &.button-error:hover,
        &.color-error:hover {
          background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
        }
      }

      &.button-error:is(:active, [data-pressed]),
      &.color-error:is(:active, [data-pressed]) {
        background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
      }
    }
    &.button-outlined-error {
      background-color: transparent !important;
      border: 1px solid var(--color-error);
      color: var(--color-error) !important;
    }
    @media (hover: hover) and (pointer: fine) {
      &.button-outlined-error:hover {
        background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
      }
    }
    &.button-outlined-error:is(:active, [data-pressed]) {
      background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
    }
    &.button-text {
      background-color: transparent;
      color: var(--color-primary);
      padding: 0 var(--space-3);

      &.color-error,
      &.button-error {
        background-color: transparent !important;
        color: var(--color-error) !important;
      }

      @media (hover: hover) and (pointer: fine) {
        &.color-error:hover,
        &.button-error:hover {
          background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
        }
      }

      &.color-error:is(:active, [data-pressed]),
      &.button-error:is(:active, [data-pressed]) {
        background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
      }
    }
    &.button-text-error {
      background-color: transparent !important;
      color: var(--color-error) !important;
      padding: 0 var(--space-3);
    }
    @media (hover: hover) and (pointer: fine) {
      &.button-text-error:hover {
        background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
      }
    }
    &.button-text-error:is(:active, [data-pressed]) {
      background-color: color-mix(in srgb, var(--color-error) 12%, transparent) !important;
    }
    &.button-ghost {
      background-color: transparent;
      color: var(--color-on-surface);
      padding: 0 var(--space-3);
    }
    @media (hover: hover) and (pointer: fine) {
      &.button-ghost:hover {
        background-color: var(--color-surface-container-high);
      }
    }
    &.button-ghost:is(:active, [data-pressed]) {
      background-color: var(--color-surface-container-high);
    }
    &.button-error {
      background-color: var(--color-error);
      color: var(--color-on-error);
    }
    &.button-error-container {
      background-color: var(--color-error-container);
      color: var(--color-on-error-container);
    }

    /* Adaptive Width: full-width on mobile (<600px), natural fit-content on desktop (>=600px) */
    &.w-full-mobile,
    &.button-full-mobile {
      width: 100%;

      @media (min-width: 600px) {
        width: fit-content;
      }
    }
  }

  @scope (.icon-button) {
    :scope {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      padding: var(--space-2);
      border-radius: var(--radius-full, 9999px);
      border: none;
      color: var(--color-on-surface-variant);
      background-color: transparent;
      position: relative;
      overflow: visible;
      text-decoration: none;
      cursor: pointer;
      user-select: none;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    @media (hover: hover) and (pointer: fine) {
      &:hover:not(:disabled):not([aria-disabled="true"]) {
        background-color: var(--color-surface-container-high);
      }
    }

    &:is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"]) {
      background-color: var(--color-surface-container-high);
    }

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background-color: currentColor;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--motion-duration-short, 200ms) var(--motion-spring-effects, linear);
      z-index: 0;
    }

    &::after {
      content: "";
      position: absolute;
      inset: min(0px, calc((100% - 48px) / 2));
    }

    @media (hover: hover) and (pointer: fine) {
      &:hover:not(:disabled):not([aria-disabled="true"])::before {
        opacity: 0.08;
      }
    }

    &:is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"])::before {
      opacity: 0.12;
      transition-duration: 40ms;
    }

    &:disabled, &[aria-disabled="true"] {
      opacity: 0.38;
      cursor: default;
      pointer-events: none;
    }

    & > .icon-button-icon {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: scale var(--motion-duration-short, 200ms) var(--motion-spring-spatial-fast, cubic-bezier(0.22, 1.25, 0.36, 1));
    }

    &:is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"]) > .icon-button-icon {
      scale: 0.88;
      transition: scale var(--motion-duration-press, 75ms) var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
    }

    &[aria-pressed="true"] {
      color: var(--color-primary);
    }

    &[aria-pressed="true"] > .icon-button-icon {
      font-variation-settings: 'FILL' 1 !important;
    }

    &[aria-pressed="false"] > .icon-button-icon {
      font-variation-settings: 'FILL' 0 !important;
    }
  }

  @scope (.fab) {
    :scope {
      position: relative;
      overflow: visible;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      user-select: none;
      white-space: nowrap;
      text-decoration: none;
      border: none;
      outline: none;
      cursor: pointer;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      box-shadow: var(--shadow-3);
      transition: scale var(--motion-duration-short, 200ms) var(--motion-spring-spatial-fast, cubic-bezier(0.22, 1.25, 0.36, 1));
    }

    &:focus,
    &:focus-visible {
      outline: none;
    }

    &:is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"]) {
      scale: 0.95;
      transition: scale var(--motion-duration-press, 75ms) var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
    }

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background-color: currentColor;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--motion-duration-short, 200ms) var(--motion-spring-effects, linear);
      z-index: 0;
    }

    @media (hover: hover) and (pointer: fine) {
      &:hover:not(:disabled):not([aria-disabled="true"])::before {
        opacity: 0.08;
      }
    }

    &:is(:active, [data-pressed]):not(:disabled):not([aria-disabled="true"])::before {
      opacity: 0.12;
      transition-duration: 40ms;
    }

    &::after {
      content: "";
      position: absolute;
      inset: min(0px, calc((100% - 48px) / 2));
    }

    &.fab-lowered {
      box-shadow: var(--shadow-1);
    }

    &.fab-small {
      width: 40px;
      height: 40px;
      min-height: 40px;
      border-radius: var(--radius-lg, 16px);
    }

    &.fab-standard {
      width: 56px;
      height: 56px;
      min-height: 56px;
      border-radius: 24px;
    }

    &.fab-large {
      width: 96px;
      height: 96px;
      min-height: 96px;
      border-radius: var(--radius-xl, 28px);
    }

    &.fab-extended {
      width: fit-content;
    }

    &.fab-extended.fab-small {
      padding: 0 var(--space-4, 16px);
      gap: var(--space-2, 8px);
    }

    &.fab-extended.fab-standard {
      padding: 0 var(--space-5, 20px);
      gap: var(--space-3, 12px);
    }

    &.fab-extended.fab-large {
      padding: 0 var(--space-7, 28px);
      gap: var(--space-4, 16px);
    }

    &.fab-primary-container {
      background-color: var(--color-primary-container);
      color: var(--color-on-primary-container);
    }

    &.fab-secondary-container {
      background-color: var(--color-secondary-container);
      color: var(--color-on-secondary-container);
    }

    &.fab-tertiary-container {
      background-color: var(--color-tertiary-container);
      color: var(--color-on-tertiary-container);
    }

    &.fab-primary {
      background-color: var(--color-primary);
      color: var(--color-on-primary);
    }

    &.fab-secondary {
      background-color: var(--color-secondary);
      color: var(--color-on-secondary);
    }

    &.fab-tertiary {
      background-color: var(--color-tertiary);
      color: var(--color-on-tertiary);
    }

    &.fab-surface {
      background-color: var(--color-surface-container-high);
      color: var(--color-on-surface);
      border: 1px solid var(--color-outline-variant);
    }

    .fab-icon {
      position: relative;
      z-index: 1;
      font-size: 1.5rem;
      line-height: 1;
    }

    &.fab-small .fab-icon {
      font-size: 1.25rem;
    }

    &.fab-large .fab-icon {
      font-size: 2.25rem;
    }

    .fab-label {
      position: relative;
      z-index: 1;
      display: inline-block;
      font-family: var(--font-family-plain);
      font-size: var(--type-title-m-size, 1rem);
      font-weight: var(--font-weight-medium, 500);
      line-height: var(--type-title-m-line-height, 1.5rem);
      text-box: trim-both cap alphabetic;
    }

    &.fab-small .fab-label {
      font-size: var(--type-label-l-size, 0.875rem);
      line-height: var(--type-label-l-line-height, 1.25rem);
    }

    &.fab-large .fab-label {
      font-size: var(--type-title-l-size, 1.375rem);
      line-height: var(--type-title-l-line-height, 1.75rem);
    }

    &:disabled,
    &[aria-disabled="true"] {
      opacity: 0.38;
      cursor: default;
      pointer-events: none;
    }
  }
}

/* #ref https://m3.material.io/components/cards/overview */
/* #insight Scoped semantic styles for Material 3 Expressive & Naisu Card */

@layer components {
  @scope (.card) {
    :where(:scope) {
      --card-padding: var(--space-6, 24px);
      --card-gap: var(--space-4, 16px);
      display: flex;
      flex-direction: column;
      gap: var(--card-gap);
      border-radius: var(--corner-xl, var(--radius-xl, 28px));
      padding: var(--card-padding);
      color: var(--color-on-surface);
      background-color: var(--color-surface-container-low);
      min-width: 0;
    }

    :where(&.corner-s) {
      border-radius: var(--corner-s, var(--radius-sm, 8px));
      --card-padding: var(--space-3, 12px);
      --card-gap: var(--space-2, 8px);
    }

    :where(&.corner-m) {
      border-radius: var(--corner-m, var(--radius-md, 12px));
      --card-padding: var(--space-3, 12px);
      --card-gap: var(--space-3, 12px);
    }

    :where(&.corner-l) {
      border-radius: var(--corner-l, var(--radius-lg, 16px));
      --card-padding: var(--space-4, 16px);
      --card-gap: var(--space-3, 12px);
    }

    :where(&.corner-xl) {
      border-radius: var(--corner-xl, var(--radius-xl, 28px));
      --card-padding: var(--space-6, 24px);
      --card-gap: var(--space-4, 16px);
    }

    :where(&.card-low) {
      background-color: var(--color-surface-container-low);
    }

    :where(&.card-filled) {
      background-color: var(--color-surface-container);
    }

    :where(&.card-danger) {
      background-color: color-mix(in srgb, var(--color-error) 8%, var(--color-surface-container-low));
    }

    :where(&.card-elevated) {
      background-color: var(--color-surface-container-low);
      box-shadow: var(--shadow-1);
    }

    :where(&.card-outlined) {
      background-color: var(--color-surface);
      border: 1px solid var(--color-outline-variant);
    }

    :where(h2:not([class])), :where(.card-title) {
      font-family: var(--font-family-plain);
      font-size: 1.375rem;
      line-height: 1.75rem;
      font-weight: var(--font-weight-medium, 500);
      letter-spacing: 0;
      margin: 0;
      color: var(--color-on-surface);
    }

    :where(h3:not([class])), :where(.card-section-title) {
      font-family: var(--font-family-plain);
      font-size: 1rem;
      line-height: 1.5rem;
      font-weight: var(--font-weight-semibold, 600);
      letter-spacing: 0;
      margin: 0;
      color: var(--color-on-surface);
    }

    &.card-danger :where(.card-title) {
      color: var(--color-error);
    }

    .card-title-icon {
      font-size: 1.25rem;
      line-height: 1;
      flex-shrink: 0;
    }

    :where(.card-subtitle) {
      font-family: var(--font-family-plain);
      font-size: 0.875rem;
      line-height: 1.25rem;
      color: var(--color-on-surface-variant);
      margin: 0;
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3, 12px);
      min-width: 0;
    }

    .card-header:has(.card-subtitle) {
      align-items: flex-start;
    }

    .card-header-main {
      display: flex;
      flex-direction: column;
      gap: var(--space-1, 4px);
      min-width: 0;
      flex: 1;
    }

    .card-title-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: var(--space-2, 8px);
      min-width: 0;
    }

    .card-legend-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: var(--space-3, 12px);
      width: 100%;
      min-width: 0;
    }

    .card-header-trailing {
      display: flex;
      align-items: center;
      gap: var(--space-2, 8px);
      flex-shrink: 0;
    }

    .card-fieldset {
      border: none;
      padding: 0;
      margin: 0;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: inherit;
    }

    .card-fieldset > legend {
      padding: 0;
      margin: 0 0 var(--card-gap, var(--space-4, 16px)) 0;
      float: none;
      width: 100%;
    }

    .card-fieldset > legend:has(+ .card-subtitle) {
      margin-bottom: var(--space-1, 4px);
    }

    .card-section {
      --card-gap: var(--space-3, 12px);
      display: flex;
      flex-direction: column;
      gap: var(--card-gap);
      min-width: 0;
    }

    .card-body {
      display: flex;
      flex-direction: column;
      gap: var(--card-gap);
    }

    .card-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: var(--space-2, 8px);
    }

    :where(hr) {
      border: none;
      border-top: 1px solid color-mix(in srgb, var(--color-outline-variant) 40%, transparent);
      margin: var(--space-1, 4px) 0;
      width: 100%;
    }

    hr.danger-zone-divider {
      border-top-color: color-mix(in srgb, var(--color-error) 25%, transparent);
    }

    :where(p, form, fieldset) {
      margin: 0;
    }

    .card-resize-handle {
      margin-top: var(--space-4);
      padding-top: var(--space-1);
      width: 100%;
      display: flex;
      justify-content: center;
      border: none;
      background: transparent;
      touch-action: none;
      user-select: none;
      cursor: ns-resize;
    }

    .card-resize-pill {
      width: 2rem;
      height: 0.25rem;
      border-radius: var(--radius-full);
      background: var(--color-outline-variant);
      cursor: inherit;
    }
  }
}

/* #ref https://m3.material.io/components/divider/overview */
/* #insight Scoped semantic styles for horizontal and vertical dividers */

@layer components {
  @scope (.divider, hr.divider) {
    :scope {
      border: none;
      height: 1px;
      background-color: var(--color-outline-variant);
      width: 100%;
      margin: var(--space-2, 8px) 0;
    }

    &.divider-vertical {
      width: 1px;
      height: 100%;
      min-height: 1rem;
      margin: 0 var(--space-2, 8px);
      display: inline-block;
    }
  }
}

/* #insight Scoped semantic styles for cookie consent popover */

@layer components {
  @scope ([data-cookie-consent], section#cookie-consent-dialog, .cookie-consent-dialog) {
    :scope:not(:popover-open),
    :scope[hidden] {
      display: none !important;
    }

    :scope {
      position: fixed;
      margin: 0;
      top: auto;
      right: auto;
      left: 50%;
      bottom: calc(var(--stage-bottom-offset, 0px) + max(1rem, calc(env(safe-area-inset-bottom) + 1rem)));
      transform: translateX(-50%);
      width: min(40rem, calc(100vw - 2rem));
      max-width: calc(100vw - 2rem);
      padding: var(--space-6);
      border-radius: var(--radius-xl);
      background-color: var(--color-surface-container-high);
      color: var(--color-on-surface);
      box-shadow: var(--shadow-4);
      z-index: 100;
      border: 1px solid var(--color-outline-variant);
    }

    button[aria-pressed="true"] {
      background-color: var(--color-secondary-container);
      color: var(--color-on-secondary-container);
      border-color: var(--color-secondary);
    }

    @media (pointer: coarse), (width < 840px) {
      button {
        min-height: 48px;
      }
    }
  }
}

/* Material 3 Expressive Shapes Token Catalog */
:root {
    --shape-circle: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.994 .5C.994 .563 .981 .627 .957 .687C.907 .806 .812 .901 .693 .951C.573 1 .439 1 .32 .951C.2 .901 .105 .806 .056 .687C.006 .567 .006 .433 .056 .313C.105 .194 .2 .099 .32 .049C.439 0 .573 0 .693 .049C.812 .099 .907 .194 .957 .313C.981 .373 .994 .437 .994 .5Z%27/></svg>");
    --shape-square: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.912 .912C.858 .966 .783 1 .7 1L.3 1C.134 1 0 .866 0 .7L0 .3C0 .134 .134 0 .3 0L.7 0C.866 0 1 .134 1 .3L1 .7C1 .783 .966 .858 .912 .912Z%27/></svg>");
    --shape-slanted: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.876 .914C.868 .921 .859 .927 .85 .933C.805 .962 .741 .962 .614 .961L.202 .96L.185 .96C.081 .957 0 .867 .007 .763L.009 .746L.05 .341C.063 .215 .069 .151 .103 .109C.116 .092 .132 .078 .15 .067C.195 .038 .259 .038 .386 .039L.798 .04L.815 .04C.919 .043 1 .133 .993 .237L.991 .254L.95 .659C.937 .785 .931 .849 .897 .891C.891 .899 .883 .907 .876 .914Z%27/></svg>");
    --shape-arch: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.146 .146C.237 .056 .362 0 .5 0C.776 0 1 .224 1 .5L1 .859C1 .937 .937 1 .859 1L.141 1C.063 1 0 .937 0 .859L0 .5C0 .362 .056 .237 .146 .146Z%27/></svg>");
    --shape-semicircle: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.969 .782C.951 .801 .925 .813 .896 .813L.104 .813C.047 .813 0 .766 0 .708L0 .688C0 .411 .224 .188 .5 .188C.776 .188 1 .411 1 .688L1 .708C1 .737 .988 .763 .969 .782Z%27/></svg>");
    --shape-oval: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.908 .092C.942 .126 .966 .17 .977 .223C1 .328 .971 .459 .898 .585C.824 .712 .712 .824 .585 .898C.459 .971 .328 1 .223 .977C.117 .955 .045 .883 .023 .777C0 .672 .029 .541 .102 .415C.176 .288 .288 .176 .415 .102C.541 .029 .672 0 .777 .023C.83 .034 .874 .058 .908 .092Z%27/></svg>");
    --shape-pill: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.873 .127C.94 .194 .985 .284 .995 .384L1 .428C.999 .544 .953 .655 .871 .737L.737 .871C.655 .953 .544 .999 .428 1L.384 .995C.184 .975 .025 .816 .005 .616L0 .572C.001 .456 .047 .345 .129 .263L.263 .129C.345 .047 .456 .001 .572 0L.616 .005C.716 .015 .806 .06 .873 .127Z%27/></svg>");
    --shape-triangle: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .078C.544 .078 .588 .099 .613 .143L.95 .727C1 .814 .938 .922 .838 .922L.163 .922C.063 .922 0 .814 .05 .727L.388 .143C.412 .099 .456 .078 .5 .078Z%27/></svg>");
    --shape-arrow: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.499 .837C.479 .837 .458 .839 .438 .843L.278 .879C.122 .913 0 .745 .081 .607L.173 .452C.318 .207 .391 .084 .499 .084C.607 .083 .68 .206 .826 .451L.916 .603C1 .744 .874 .917 .714 .88L.56 .844C.54 .839 .52 .837 .499 .837Z%27/></svg>");
    --shape-fan: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.957 .955C.939 .974 .915 .988 .889 .995C.871 1 .843 1 .788 1L.151 1C.068 1 0 .932 0 .849L0 .15C0 .067 .069 0 .152 .002L.215 .003C.642 .013 .986 .357 .997 .784L.997 .785C.999 .84 1 .868 .995 .886C.989 .913 .976 .936 .957 .955Z%27/></svg>");
    --shape-diamond: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 1C.473 1 .445 .993 .421 .978C.398 .963 .372 .929 .319 .861L.118 .6C.074 .543 .074 .464 .118 .407L.319 .146C.372 .078 .398 .044 .421 .03C.47 0 .53 0 .579 .03C.602 .044 .628 .078 .681 .146L.882 .407C.926 .464 .926 .543 .882 .6L.681 .861C.628 .929 .602 .963 .579 .978C.555 .993 .527 1 .5 1Z%27/></svg>");
    --shape-clamshell: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.187 .816C.164 .802 .144 .782 .13 .757L.024 .567C0 .526 0 .474 .023 .432L.129 .243C.156 .194 .209 .163 .266 .163L.733 .163C.79 .163 .843 .194 .87 .243L.976 .433C1 .474 1 .526 .977 .568L.871 .757C.844 .806 .791 .837 .734 .837L.267 .837C.238 .837 .211 .83 .187 .816Z%27/></svg>");
    --shape-pentagon: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .043C.534 .043 .568 .053 .596 .073L.918 .301C.976 .341 1 .415 .978 .481L.856 .845C.834 .912 .771 .957 .701 .957L.299 .957C.229 .957 .166 .912 .144 .845L.022 .481C0 .415 .024 .341 .082 .301L.404 .073C.432 .053 .466 .043 .5 .043Z%27/></svg>");
    --shape-gem: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.499 1C.491 1 .483 1 .475 .999C.436 .995 .398 .977 .322 .942L.137 .858C.053 .819 .004 .73 .018 .638L.059 .354C.068 .293 .102 .238 .152 .202L.378 .04C.414 .014 .457 0 .501 0C.546 0 .589 .014 .625 .04L.85 .203C.9 .239 .934 .294 .942 .356L.983 .64C.996 .732 .947 .821 .863 .859L.678 .943C.601 .978 .563 .995 .524 .999C.516 1 .508 1 .499 1Z%27/></svg>");
    --shape-very-sunny: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .993C.473 .993 .445 .98 .429 .953L.393 .893C.375 .862 .338 .847 .302 .856L.235 .873C.174 .888 .119 .833 .134 .772L.151 .705C.16 .669 .145 .632 .113 .614L.054 .578C0 .546 0 .468 .054 .436L.113 .4C.145 .381 .16 .344 .151 .309L.134 .241C.119 .181 .174 .126 .235 .141L.302 .158C.337 .167 .374 .151 .393 .12L.429 .06C.461 .007 .539 .007 .571 .06L.607 .12C.625 .151 .662 .167 .698 .158L.765 .141C.826 .126 .881 .181 .866 .241L.849 .309C.84 .344 .855 .381 .887 .4L.946 .436C1 .468 1 .546 .946 .578L.887 .613C.855 .632 .84 .669 .849 .705L.866 .772C.881 .833 .826 .888 .765 .873L.698 .856C.663 .847 .626 .862 .607 .893L.571 .953C.555 .98 .527 .993 .5 .993Z%27/></svg>");
    --shape-sunny: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.997 .5C.997 .518 .991 .536 .978 .55L.902 .639C.892 .652 .885 .667 .884 .684L.875 .8C.872 .838 .842 .869 .803 .872L.687 .881C.671 .882 .655 .889 .643 .899L.554 .975C.524 1 .482 1 .453 .975L.364 .899C.351 .889 .336 .882 .319 .881L.203 .872C.165 .869 .134 .838 .131 .8L.122 .684C.121 .667 .114 .652 .104 .639L.028 .55C.003 .521 .003 .479 .028 .45L.104 .36C.114 .348 .121 .333 .122 .316L.131 .2C.134 .162 .165 .131 .203 .128L.319 .119C.336 .118 .351 .111 .364 .101L.453 .025C.482 0 .524 0 .554 .025L.643 .101C.655 .111 .671 .118 .687 .119L.803 .128C.842 .131 .872 .162 .875 .2L.884 .316C.885 .333 .892 .348 .902 .36L.978 .45C.991 .464 .997 .482 .997 .5Z%27/></svg>");
    --shape-cookie-4-sided: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.871 .871C.81 .932 .716 .959 .622 .919L.581 .901C.529 .879 .471 .879 .419 .901L.379 .919C.191 1 0 .81 .082 .622L.099 .581C.121 .529 .121 .471 .099 .419L.082 .379C0 .191 .19 0 .378 .081L.419 .099C.471 .121 .529 .121 .581 .099L.621 .081C.809 0 1 .19 .919 .378L.901 .419C.879 .471 .879 .529 .901 .581L.919 .621C.959 .715 .932 .81 .871 .871Z%27/></svg>");
    --shape-cookie-6-sided: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.717 .873C.7 .883 .684 .894 .67 .908L.668 .909C.574 1 .426 1 .332 .909C.304 .882 .269 .862 .232 .851L.23 .851C.104 .814 .03 .686 .062 .559C.071 .521 .071 .481 .062 .443L.061 .441C.03 .314 .104 .186 .23 .15C.267 .139 .302 .119 .33 .092L.332 .091C.426 0 .574 0 .668 .091C.696 .118 .731 .138 .768 .149L.77 .149C.896 .186 .97 .314 .938 .441C.929 .479 .929 .519 .938 .557L.939 .559C.97 .686 .896 .814 .77 .85C.751 .856 .733 .863 .717 .873Z%27/></svg>");
    --shape-cookie-7-sided: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .022C.549 .022 .598 .04 .635 .078C.665 .108 .705 .127 .748 .132C.853 .144 .928 .238 .916 .343C.911 .386 .921 .429 .944 .465C1 .555 .973 .672 .884 .728C.848 .751 .82 .786 .806 .827C.771 .926 .662 .978 .563 .944C.522 .929 .478 .929 .437 .944C.338 .978 .229 .926 .194 .827C.18 .786 .152 .751 .116 .728C.027 .672 0 .555 .056 .465C.079 .429 .089 .386 .084 .343C.072 .238 .147 .144 .252 .132C.295 .127 .335 .108 .365 .078C.402 .04 .451 .022 .5 .022Z%27/></svg>");
    --shape-cookie-9-sided: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .014C.536 .014 .573 .027 .602 .053C.631 .08 .67 .094 .71 .093C.788 .09 .855 .146 .866 .224C.871 .263 .892 .299 .923 .323C.985 .371 1 .458 .958 .524C.937 .557 .93 .598 .938 .637C.955 .713 .911 .789 .837 .813C.799 .825 .767 .852 .749 .887C.712 .956 .63 .986 .557 .956C.521 .941 .479 .941 .443 .956C.37 .986 .288 .956 .251 .887C.233 .852 .201 .825 .163 .813C.089 .789 .045 .713 .062 .637C.07 .598 .063 .557 .042 .524C0 .458 .015 .371 .077 .323C.108 .299 .129 .263 .134 .224C.145 .146 .212 .09 .29 .093C.33 .094 .369 .08 .398 .053C.427 .027 .464 .014 .5 .014Z%27/></svg>");
    --shape-cookie-12-sided: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .005C.526 .005 .551 .015 .57 .036C.595 .063 .633 .074 .669 .063C.722 .046 .778 .078 .79 .133C.798 .169 .826 .197 .862 .205C.917 .217 .949 .273 .932 .326C.921 .361 .931 .4 .959 .425C1 .462 1 .527 .959 .565C.931 .59 .921 .628 .932 .664C.949 .717 .917 .773 .862 .785C.826 .793 .798 .821 .79 .857C.778 .912 .722 .944 .669 .927C.633 .916 .595 .926 .57 .954C.532 .995 .468 .995 .43 .954C.405 .926 .366 .916 .331 .927C.278 .944 .222 .912 .21 .857C.202 .821 .174 .793 .138 .785C.083 .773 .051 .717 .068 .664C.079 .628 .069 .59 .041 .565C0 .527 0 .462 .041 .425C.069 .4 .079 .361 .068 .326C.051 .273 .083 .217 .138 .205C.174 .197 .202 .169 .21 .133C.222 .078 .278 .046 .331 .063C.366 .074 .405 .063 .43 .036C.449 .015 .474 .005 .5 .005Z%27/></svg>");
    --shape-clover-4-leaf: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .098L.514 .087C.628 0 .788 .01 .889 .111C.99 .212 1 .372 .913 .486L.902 .5L.913 .514C1 .628 .99 .788 .889 .889C.788 .99 .628 1 .514 .913L.5 .902L.486 .913C.372 1 .212 .99 .111 .889C.01 .788 0 .628 .087 .514L.098 .5L.087 .486C0 .372 .01 .212 .111 .111C.212 .01 .372 0 .486 .087L.5 .098Z%27/></svg>");
    --shape-clover-8-leaf: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .071L.522 .06C.632 .001 .768 .061 .799 .182L.803 .197L.827 .204C.946 .241 1 .379 .936 .487L.929 .5L.94 .522C.999 .632 .939 .768 .818 .799L.803 .803L.796 .827C.759 .946 .621 1 .513 .936L.5 .929L.478 .94C.368 .999 .232 .939 .201 .818L.197 .803L.173 .796C.054 .759 0 .621 .064 .513L.071 .5L.06 .478C.001 .368 .061 .232 .182 .201L.197 .197L.204 .173C.241 .054 .379 0 .487 .064L.5 .071Z%27/></svg>");
    --shape-burst: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .001C.502 .001 .504 .002 .505 .004L.589 .153C.591 .156 .594 .157 .597 .155L.743 .067C.747 .065 .753 .068 .752 .073L.75 .244C.75 .247 .753 .25 .756 .25L.927 .247C.932 .247 .934 .252 .932 .256L.845 .403C.843 .406 .844 .41 .847 .411L.996 .494C1 .497 1 .502 .996 .505L.847 .588C.844 .59 .843 .594 .845 .597L.932 .743C.934 .747 .932 .752 .927 .752L.756 .75C.753 .75 .75 .753 .75 .756L.752 .926C.753 .931 .747 .934 .743 .932L.596 .844C.594 .843 .59 .844 .588 .847L.505 .995C.503 .999 .497 .999 .495 .995L.411 .846C.409 .843 .406 .842 .403 .844L.257 .932C.253 .934 .247 .931 .247 .926L.25 .755C.25 .752 .247 .749 .244 .749L.073 .752C.068 .752 .066 .747 .068 .743L.155 .596C.157 .593 .156 .589 .153 .588L.004 .505C0 .502 0 .497 .004 .494L.153 .411C.156 .409 .157 .405 .155 .402L.068 .256C.066 .252 .068 .247 .073 .247L.244 .249C.247 .249 .25 .246 .25 .243L.248 .073C.247 .068 .253 .065 .257 .067L.404 .155C.406 .156 .41 .155 .412 .152L.495 .004C.496 .002 .498 .001 .5 .001Z%27/></svg>");
    --shape-soft-burst: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.187 .272C.194 .263 .197 .251 .196 .238L.189 .148C.187 .11 .225 .082 .261 .096L.345 .13C.368 .14 .395 .131 .408 .11L.456 .033C.476 0 .523 0 .544 .033L.591 .11C.605 .131 .632 .14 .655 .13L.739 .096C.774 .081 .813 .109 .81 .148L.803 .238C.802 .263 .818 .286 .843 .292L.93 .313C.968 .322 .983 .368 .958 .397L.899 .466C.883 .486 .883 .514 .9 .533L.958 .602C.983 .631 .968 .677 .931 .686L.843 .708C.818 .714 .802 .737 .804 .762L.811 .852C.813 .89 .775 .918 .739 .904L.655 .87C.632 .86 .605 .869 .592 .89L.544 .967C.524 1 .477 1 .456 .967L.409 .89C.395 .869 .368 .86 .345 .87L.261 .904C.226 .919 .187 .891 .19 .852L.197 .762C.198 .737 .182 .714 .157 .708L.07 .687C.032 .678 .017 .632 .042 .603L.101 .534C.117 .514 .117 .486 .1 .467L.042 .398C.017 .369 .032 .323 .069 .314L.157 .292C.169 .289 .18 .282 .187 .272Z%27/></svg>");
    --shape-boom: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.454 .287C.457 .287 .459 .285 .46 .281L.493 .011C.494 .003 .506 .003 .507 .011L.541 .282C.542 .288 .551 .29 .554 .284L.695 .051C.699 .044 .71 .049 .707 .056L.628 .318C.626 .324 .634 .329 .639 .325L.863 .169C.869 .165 .877 .173 .872 .18L.693 .386C.689 .391 .693 .399 .7 .397L.968 .346C.976 .344 .979 .355 .972 .359L.725 .475C.719 .478 .72 .487 .726 .488L.992 .55C1 .552 .999 .563 .991 .563L.718 .569C.711 .569 .708 .578 .714 .582L.931 .746C.938 .751 .932 .761 .924 .758L.673 .652C.667 .649 .661 .656 .664 .662L.796 .9C.8 .908 .79 .915 .785 .909L.598 .71C.593 .705 .585 .708 .586 .715L.609 .987C.61 .995 .599 .997 .596 .99L.506 .732C.504 .726 .495 .726 .493 .732L.404 .989C.401 .997 .39 .995 .39 .987L.413 .715C.414 .708 .406 .705 .401 .709L.215 .909C.21 .915 .2 .908 .204 .9L.336 .661C.339 .656 .333 .649 .327 .652L.076 .758C.068 .761 .062 .751 .069 .746L.286 .581C.291 .577 .289 .569 .282 .568L.009 .563C.001 .563 0 .551 .008 .55L.274 .487C.28 .486 .281 .477 .275 .474L.028 .359C.021 .355 .024 .344 .032 .346L.3 .397C.307 .398 .311 .39 .307 .385L.128 .179C.123 .173 .131 .164 .138 .169L.362 .325C.367 .329 .374 .324 .372 .317L.293 .056C.29 .049 .301 .044 .305 .051L.447 .284C.448 .287 .451 .288 .454 .287Z%27/></svg>");
    --shape-soft-boom: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.734 .454L.793 .444C.825 .439 .856 .438 .888 .442L.923 .446C.941 .448 .959 .454 .975 .463L.98 .466C.993 .473 1 .487 1 .501C1 .515 .992 .528 .98 .535L.975 .538C.959 .548 .941 .553 .923 .555L.888 .559C.856 .563 .824 .562 .793 .557L.734 .547L.792 .561C.823 .568 .853 .58 .881 .595L.912 .612C.928 .621 .942 .633 .953 .648L.957 .653C.965 .664 .967 .679 .962 .692C.956 .705 .944 .714 .93 .716L.924 .717C.906 .72 .887 .718 .869 .713L.836 .703C.805 .694 .776 .681 .749 .664L.698 .633L.747 .668C.772 .687 .795 .708 .815 .733L.837 .761C.849 .775 .857 .792 .862 .81L.864 .816C.867 .83 .863 .844 .853 .854C.843 .864 .828 .868 .815 .864L.809 .863C.791 .858 .774 .85 .76 .838L.732 .816C.708 .796 .686 .773 .667 .747L.632 .698L.664 .75C.68 .777 .693 .806 .702 .836L.712 .87C.717 .888 .718 .906 .716 .925L.715 .931C.713 .945 .704 .957 .691 .962C.678 .968 .663 .966 .651 .957L.646 .953C.632 .942 .619 .928 .611 .912L.594 .881C.579 .853 .567 .823 .56 .792L.546 .734L.556 .793C.561 .825 .562 .856 .558 .888L.554 .923C.552 .941 .546 .959 .537 .975L.534 .98C.527 .993 .513 1 .499 1C.485 1 .472 .992 .465 .98L.462 .975C.452 .959 .447 .941 .445 .923L.441 .888C.437 .856 .438 .824 .443 .793L.453 .734L.439 .792C.432 .823 .42 .853 .405 .881L.388 .912C.379 .928 .367 .942 .352 .953L.347 .957C.336 .965 .321 .967 .308 .962C.295 .956 .286 .944 .284 .93L.283 .924C.28 .906 .282 .887 .287 .869L.297 .836C.306 .805 .319 .776 .336 .749L.367 .698L.332 .747C.313 .772 .292 .795 .267 .815L.239 .837C.225 .849 .208 .857 .19 .862L.184 .864C.17 .867 .156 .863 .146 .853C.136 .843 .132 .828 .136 .815L.137 .809C.142 .791 .15 .774 .162 .76L.184 .732C.204 .708 .227 .686 .253 .667L.302 .632L.25 .664C.223 .68 .194 .693 .164 .702L.13 .712C.112 .717 .094 .718 .075 .716L.069 .715C.055 .713 .043 .704 .038 .691C.032 .678 .034 .663 .043 .651L.047 .646C.058 .632 .072 .619 .088 .611L.119 .594C.147 .579 .177 .567 .208 .56L.266 .546L.207 .556C.175 .561 .144 .562 .112 .558L.077 .554C.059 .552 .041 .546 .025 .537L.02 .534C.007 .527 0 .513 0 .499C0 .485 .008 .472 .02 .465L.025 .462C.041 .452 .059 .447 .077 .445L.112 .441C.144 .437 .176 .438 .207 .443L.266 .453L.208 .439C.177 .432 .147 .42 .119 .405L.088 .388C.072 .379 .058 .367 .047 .352L.043 .347C.035 .336 .033 .321 .038 .308C.044 .295 .056 .286 .07 .284L.076 .283C.094 .28 .113 .282 .131 .287L.164 .297C.195 .306 .224 .319 .251 .336L.302 .367L.253 .332C.228 .313 .205 .292 .185 .267L.163 .239C.151 .225 .143 .208 .138 .19L.136 .184C.133 .17 .137 .156 .147 .146C.157 .136 .172 .132 .185 .136L.191 .137C.209 .142 .226 .15 .24 .162L.268 .184C.292 .204 .314 .227 .333 .253L.368 .302L.336 .25C.32 .223 .307 .194 .298 .164L.288 .13C.283 .112 .282 .094 .284 .075L.285 .069C.287 .055 .296 .043 .309 .038C.322 .032 .337 .034 .349 .043L.354 .047C.368 .058 .381 .072 .389 .088L.406 .119C.421 .147 .433 .177 .44 .208L.454 .266L.444 .207C.439 .175 .438 .144 .442 .112L.446 .077C.448 .059 .454 .041 .463 .025L.466 .02C.473 .007 .487 0 .501 0C.515 0 .528 .008 .535 .02L.538 .025C.548 .041 .553 .059 .555 .077L.559 .112C.563 .144 .562 .176 .557 .207L.547 .266L.561 .208C.568 .177 .58 .147 .595 .119L.612 .088C.621 .072 .633 .058 .648 .047L.653 .043C.664 .035 .679 .033 .692 .038C.705 .044 .714 .056 .716 .07L.717 .076C.72 .094 .718 .113 .713 .131L.703 .164C.694 .195 .681 .224 .664 .251L.633 .302L.668 .253C.687 .228 .708 .205 .733 .185L.761 .163C.775 .151 .792 .143 .81 .138L.816 .136C.83 .133 .844 .137 .854 .147C.864 .157 .868 .172 .864 .185L.863 .191C.858 .209 .85 .226 .838 .24L.816 .268C.796 .292 .773 .314 .747 .333L.698 .368L.75 .336C.777 .32 .806 .307 .836 .298L.87 .288C.888 .283 .906 .282 .925 .284L.931 .285C.945 .287 .957 .296 .962 .309C.968 .322 .966 .337 .957 .349L.953 .354C.942 .368 .928 .381 .912 .389L.881 .406C.853 .421 .823 .433 .792 .44L.734 .454Z%27/></svg>");
    --shape-flower: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.37 .186L.396 .107C.409 .069 .433 .035 .465 .01C.474 .004 .485 0 .496 0L.503 0C.514 0 .525 .004 .534 .01C.566 .035 .59 .069 .603 .107L.63 .186L.704 .149C.741 .131 .782 .124 .822 .129C.833 .131 .843 .136 .851 .144L.856 .149C.864 .156 .869 .167 .87 .177C.876 .218 .869 .259 .851 .295L.814 .37L.893 .396C.931 .409 .965 .433 .99 .465C.996 .474 1 .485 1 .496L1 .503C1 .514 .996 .525 .99 .534C.965 .566 .931 .59 .893 .603L.814 .63L.851 .704C.869 .741 .876 .782 .871 .822C.869 .833 .864 .843 .856 .851L.851 .856C.844 .864 .833 .869 .823 .87C.782 .876 .741 .869 .705 .851L.63 .814L.604 .893C.591 .931 .567 .965 .535 .99C.526 .996 .515 1 .504 1L.497 1C.486 1 .475 .996 .466 .99C.434 .965 .41 .931 .397 .893L.37 .814L.296 .851C.259 .869 .218 .876 .178 .871C.167 .869 .157 .864 .149 .856L.144 .851C.136 .844 .131 .833 .13 .823C.124 .782 .131 .741 .149 .705L.186 .63L.107 .604C.069 .591 .035 .567 .01 .535C.004 .526 0 .515 0 .504L0 .497C0 .486 .004 .475 .01 .466C.035 .434 .069 .41 .107 .397L.186 .37L.149 .296C.131 .259 .124 .218 .129 .178C.131 .167 .136 .157 .144 .149L.149 .144C.156 .136 .167 .131 .177 .13C.218 .124 .259 .131 .295 .149L.37 .186Z%27/></svg>");
    --shape-puffy: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .17L.517 .144C.534 .118 .569 .102 .608 .104C.645 .105 .679 .121 .695 .147L.702 .159C.711 .173 .717 .188 .718 .203L.721 .226C.747 .182 .825 .172 .869 .207L.872 .209C.897 .23 .913 .256 .917 .284L.917 .291C.921 .325 .907 .359 .879 .386L.885 .386C.918 .385 .949 .397 .967 .417C.988 .441 1 .469 1 .497L1 .503C1 .531 .988 .559 .967 .583C.949 .603 .918 .615 .885 .614L.879 .614C.907 .641 .921 .675 .917 .709L.917 .716C.913 .744 .897 .77 .872 .791L.869 .793C.825 .828 .747 .818 .721 .774L.718 .797C.717 .812 .711 .827 .702 .841L.695 .853C.679 .879 .645 .895 .608 .896C.569 .898 .534 .882 .517 .856L.5 .83L.483 .856C.466 .882 .431 .898 .392 .896C.355 .895 .321 .879 .305 .853L.298 .841C.289 .827 .283 .812 .282 .797L.279 .774C.254 .818 .175 .828 .131 .793L.128 .791C.103 .77 .087 .744 .083 .716L.083 .709C.079 .675 .093 .641 .121 .614L.115 .614C.082 .615 .051 .603 .033 .583C.012 .559 0 .531 0 .503L0 .497C0 .469 .012 .441 .033 .417C.051 .397 .082 .385 .115 .386L.121 .386C.093 .359 .079 .325 .083 .291L.083 .284C.087 .256 .103 .23 .128 .209L.131 .207C.175 .172 .254 .182 .279 .226L.282 .203C.283 .188 .289 .173 .298 .159L.305 .147C.321 .121 .355 .105 .392 .104C.431 .102 .466 .118 .483 .144L.5 .17Z%27/></svg>");
    --shape-puffy-diamond: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.779 .221C.813 .255 .83 .304 .818 .357L.818 .357L.834 .355C.922 .343 1 .411 1 .5C1 .589 .922 .657 .834 .645L.818 .643L.818 .643C.842 .748 .748 .842 .643 .818L.643 .818L.645 .834C.657 .922 .589 1 .5 1C.411 1 .343 .922 .355 .834L.357 .818L.357 .818C.252 .842 .158 .748 .182 .643L.182 .643L.166 .645C.078 .657 0 .589 0 .5C0 .411 .078 .343 .166 .355L.182 .357L.182 .357C.158 .252 .252 .158 .357 .182L.357 .182L.355 .166C.343 .078 .411 0 .5 0C.589 0 .657 .078 .645 .166L.643 .182L.643 .182C.696 .17 .745 .187 .779 .221Z%27/></svg>");
    --shape-ghostish: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 0C.763 0 .977 .213 .977 .477L.977 .76C.977 .907 .819 1 .69 .929L.625 .893C.59 .874 .551 .864 .511 .864L.489 .864C.449 .864 .41 .874 .375 .893L.31 .929C.181 1 .023 .907 .023 .76L.023 .477C.023 .213 .237 0 .5 0Z%27/></svg>");
    --shape-pixel-circle: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 0L.704 0L.704 .065L.843 .065L.843 .148L.926 .148L.926 .296L1 .296L1 .704L.926 .704L.926 .852L.843 .852L.843 .935L.704 .935L.704 1L.5 1L.296 1L.296 .935L.157 .935L.157 .852L.074 .852L.074 .704L0 .704L0 .296L.074 .296L.074 .148L.157 .148L.157 .065L.296 .065L.296 0L.5 0Z%27/></svg>");
    --shape-pixel-triangle: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.111 .5L.114 0L.288 0L.288 .087L.422 .087L.422 .17L.561 .17L.561 .265L.675 .265L.676 .344L.79 .344L.79 .439L.889 .439L.889 .561L.79 .561L.79 .656L.676 .656L.675 .735L.561 .735L.561 .83L.422 .83L.422 .913L.288 .913L.288 1L.114 1L.111 .5Z%27/></svg>");
    --shape-bun: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.796 .5L.807 .503C.837 .513 .866 .528 .89 .548C.954 .6 .989 .68 .984 .762L.983 .762C.975 .896 .864 1 .73 1L.27 1C.136 1 .025 .896 .017 .762L.016 .762C.011 .68 .046 .6 .11 .548C.134 .528 .163 .513 .193 .503L.204 .5L.193 .497C.163 .487 .134 .472 .11 .452C.046 .4 .011 .32 .016 .238L.017 .238C.025 .104 .136 0 .27 0L.73 0C.864 0 .975 .104 .983 .238L.984 .238C.989 .32 .954 .4 .89 .452C.866 .472 .837 .487 .807 .497L.796 .5Z%27/></svg>");
    --shape-heart: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27><path d=%27M.5 .286C.502 .286 .503 .285 .504 .284L.62 .152C.705 .055 .856 .058 .936 .159C1 .239 .998 .353 .933 .431L.502 .944C.501 .945 .501 .945 .5 .945C.499 .945 .499 .945 .498 .944L.067 .431C.002 .353 0 .239 .064 .159C.144 .058 .295 .055 .38 .152L.496 .284C.497 .285 .498 .286 .5 .286Z%27/></svg>");
}

/* Base Shape Container & Surface Rules */
.expressive-shape-container {
    aspect-ratio: 1 / 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.expressive-shape {
    -webkit-mask-image: var(--active-shape-mask, var(--shape-circle));
    mask-image: var(--active-shape-mask, var(--shape-circle));
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    position: relative;
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.expressive-shape img,
.expressive-shape video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expressive-shape-surface {
    background-color: var(--color-surface-container-high, currentColor);
}

/* Size Utilities (Mobile-First Tap Target >= 48px for interactive) */
.expressive-shape-xs { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
.expressive-shape-s { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
.expressive-shape-m { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
.expressive-shape-l { width: 64px; height: 64px; min-width: 64px; min-height: 64px; }
.expressive-shape-xl { width: 96px; height: 96px; min-width: 96px; min-height: 96px; }
.expressive-shape-2xl { width: 128px; height: 128px; min-width: 128px; min-height: 128px; }
.expressive-shape-full { width: 100%; height: 100%; }

/* Expressive Avatar Helpers */
.expressive-avatar {
    flex-shrink: 0;
    user-select: none;
    overflow: hidden;
}

/* Expressive Thumbnail Helpers */
.expressive-thumbnail {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shape Selectors & Data Attributes */
[data-shape="circle"], .shape-circle, .expressive-shape-circle { --active-shape-mask: var(--shape-circle); -webkit-mask-image: var(--shape-circle); mask-image: var(--shape-circle); }
[data-shape="square"], .shape-square, .expressive-shape-square { --active-shape-mask: var(--shape-square); -webkit-mask-image: var(--shape-square); mask-image: var(--shape-square); }
[data-shape="slanted"], .shape-slanted, .expressive-shape-slanted { --active-shape-mask: var(--shape-slanted); -webkit-mask-image: var(--shape-slanted); mask-image: var(--shape-slanted); }
[data-shape="arch"], .shape-arch, .expressive-shape-arch { --active-shape-mask: var(--shape-arch); -webkit-mask-image: var(--shape-arch); mask-image: var(--shape-arch); }
[data-shape="semicircle"], .shape-semicircle, .expressive-shape-semicircle { --active-shape-mask: var(--shape-semicircle); -webkit-mask-image: var(--shape-semicircle); mask-image: var(--shape-semicircle); }
[data-shape="oval"], .shape-oval, .expressive-shape-oval { --active-shape-mask: var(--shape-oval); -webkit-mask-image: var(--shape-oval); mask-image: var(--shape-oval); }
[data-shape="pill"], .shape-pill, .expressive-shape-pill { --active-shape-mask: var(--shape-pill); -webkit-mask-image: var(--shape-pill); mask-image: var(--shape-pill); }
[data-shape="triangle"], .shape-triangle, .expressive-shape-triangle { --active-shape-mask: var(--shape-triangle); -webkit-mask-image: var(--shape-triangle); mask-image: var(--shape-triangle); }
[data-shape="arrow"], .shape-arrow, .expressive-shape-arrow { --active-shape-mask: var(--shape-arrow); -webkit-mask-image: var(--shape-arrow); mask-image: var(--shape-arrow); }
[data-shape="fan"], .shape-fan, .expressive-shape-fan { --active-shape-mask: var(--shape-fan); -webkit-mask-image: var(--shape-fan); mask-image: var(--shape-fan); }
[data-shape="diamond"], .shape-diamond, .expressive-shape-diamond { --active-shape-mask: var(--shape-diamond); -webkit-mask-image: var(--shape-diamond); mask-image: var(--shape-diamond); }
[data-shape="clamshell"], .shape-clamshell, .expressive-shape-clamshell { --active-shape-mask: var(--shape-clamshell); -webkit-mask-image: var(--shape-clamshell); mask-image: var(--shape-clamshell); }
[data-shape="pentagon"], .shape-pentagon, .expressive-shape-pentagon { --active-shape-mask: var(--shape-pentagon); -webkit-mask-image: var(--shape-pentagon); mask-image: var(--shape-pentagon); }
[data-shape="gem"], .shape-gem, .expressive-shape-gem { --active-shape-mask: var(--shape-gem); -webkit-mask-image: var(--shape-gem); mask-image: var(--shape-gem); }
[data-shape="very-sunny"], .shape-very-sunny, .expressive-shape-very-sunny { --active-shape-mask: var(--shape-very-sunny); -webkit-mask-image: var(--shape-very-sunny); mask-image: var(--shape-very-sunny); }
[data-shape="sunny"], .shape-sunny, .expressive-shape-sunny { --active-shape-mask: var(--shape-sunny); -webkit-mask-image: var(--shape-sunny); mask-image: var(--shape-sunny); }
[data-shape="cookie-4-sided"], .shape-cookie-4-sided, .expressive-shape-cookie-4-sided { --active-shape-mask: var(--shape-cookie-4-sided); -webkit-mask-image: var(--shape-cookie-4-sided); mask-image: var(--shape-cookie-4-sided); }
[data-shape="cookie-6-sided"], .shape-cookie-6-sided, .expressive-shape-cookie-6-sided { --active-shape-mask: var(--shape-cookie-6-sided); -webkit-mask-image: var(--shape-cookie-6-sided); mask-image: var(--shape-cookie-6-sided); }
[data-shape="cookie-7-sided"], .shape-cookie-7-sided, .expressive-shape-cookie-7-sided { --active-shape-mask: var(--shape-cookie-7-sided); -webkit-mask-image: var(--shape-cookie-7-sided); mask-image: var(--shape-cookie-7-sided); }
[data-shape="cookie-9-sided"], .shape-cookie-9-sided, .expressive-shape-cookie-9-sided { --active-shape-mask: var(--shape-cookie-9-sided); -webkit-mask-image: var(--shape-cookie-9-sided); mask-image: var(--shape-cookie-9-sided); }
[data-shape="cookie-12-sided"], .shape-cookie-12-sided, .expressive-shape-cookie-12-sided { --active-shape-mask: var(--shape-cookie-12-sided); -webkit-mask-image: var(--shape-cookie-12-sided); mask-image: var(--shape-cookie-12-sided); }
[data-shape="clover-4-leaf"], .shape-clover-4-leaf, .expressive-shape-clover-4-leaf { --active-shape-mask: var(--shape-clover-4-leaf); -webkit-mask-image: var(--shape-clover-4-leaf); mask-image: var(--shape-clover-4-leaf); }
[data-shape="clover-8-leaf"], .shape-clover-8-leaf, .expressive-shape-clover-8-leaf { --active-shape-mask: var(--shape-clover-8-leaf); -webkit-mask-image: var(--shape-clover-8-leaf); mask-image: var(--shape-clover-8-leaf); }
[data-shape="burst"], .shape-burst, .expressive-shape-burst { --active-shape-mask: var(--shape-burst); -webkit-mask-image: var(--shape-burst); mask-image: var(--shape-burst); }
[data-shape="soft-burst"], .shape-soft-burst, .expressive-shape-soft-burst { --active-shape-mask: var(--shape-soft-burst); -webkit-mask-image: var(--shape-soft-burst); mask-image: var(--shape-soft-burst); }
[data-shape="boom"], .shape-boom, .expressive-shape-boom { --active-shape-mask: var(--shape-boom); -webkit-mask-image: var(--shape-boom); mask-image: var(--shape-boom); }
[data-shape="soft-boom"], .shape-soft-boom, .expressive-shape-soft-boom { --active-shape-mask: var(--shape-soft-boom); -webkit-mask-image: var(--shape-soft-boom); mask-image: var(--shape-soft-boom); }
[data-shape="flower"], .shape-flower, .expressive-shape-flower { --active-shape-mask: var(--shape-flower); -webkit-mask-image: var(--shape-flower); mask-image: var(--shape-flower); }
[data-shape="puffy"], .shape-puffy, .expressive-shape-puffy { --active-shape-mask: var(--shape-puffy); -webkit-mask-image: var(--shape-puffy); mask-image: var(--shape-puffy); }
[data-shape="puffy-diamond"], .shape-puffy-diamond, .expressive-shape-puffy-diamond { --active-shape-mask: var(--shape-puffy-diamond); -webkit-mask-image: var(--shape-puffy-diamond); mask-image: var(--shape-puffy-diamond); }
[data-shape="ghostish"], .shape-ghostish, .expressive-shape-ghostish { --active-shape-mask: var(--shape-ghostish); -webkit-mask-image: var(--shape-ghostish); mask-image: var(--shape-ghostish); }
[data-shape="pixel-circle"], .shape-pixel-circle, .expressive-shape-pixel-circle { --active-shape-mask: var(--shape-pixel-circle); -webkit-mask-image: var(--shape-pixel-circle); mask-image: var(--shape-pixel-circle); }
[data-shape="pixel-triangle"], .shape-pixel-triangle, .expressive-shape-pixel-triangle { --active-shape-mask: var(--shape-pixel-triangle); -webkit-mask-image: var(--shape-pixel-triangle); mask-image: var(--shape-pixel-triangle); }
[data-shape="bun"], .shape-bun, .expressive-shape-bun { --active-shape-mask: var(--shape-bun); -webkit-mask-image: var(--shape-bun); mask-image: var(--shape-bun); }
[data-shape="heart"], .shape-heart, .expressive-shape-heart { --active-shape-mask: var(--shape-heart); -webkit-mask-image: var(--shape-heart); mask-image: var(--shape-heart); }

/* Shape Aliases */
[data-shape="four-leaf-clover"], .shape-four-leaf-clover, .expressive-shape-four-leaf-clover { --active-shape-mask: var(--shape-clover-4-leaf); -webkit-mask-image: var(--shape-clover-4-leaf); mask-image: var(--shape-clover-4-leaf); }
[data-shape="4-leaf-clover"], .shape-4-leaf-clover, .expressive-shape-4-leaf-clover { --active-shape-mask: var(--shape-clover-4-leaf); -webkit-mask-image: var(--shape-clover-4-leaf); mask-image: var(--shape-clover-4-leaf); }
[data-shape="clover4"], .shape-clover4, .expressive-shape-clover4 { --active-shape-mask: var(--shape-clover-4-leaf); -webkit-mask-image: var(--shape-clover-4-leaf); mask-image: var(--shape-clover-4-leaf); }
[data-shape="eight-leaf-clover"], .shape-eight-leaf-clover, .expressive-shape-eight-leaf-clover { --active-shape-mask: var(--shape-clover-8-leaf); -webkit-mask-image: var(--shape-clover-8-leaf); mask-image: var(--shape-clover-8-leaf); }
[data-shape="8-leaf-clover"], .shape-8-leaf-clover, .expressive-shape-8-leaf-clover { --active-shape-mask: var(--shape-clover-8-leaf); -webkit-mask-image: var(--shape-clover-8-leaf); mask-image: var(--shape-clover-8-leaf); }
[data-shape="clover8"], .shape-clover8, .expressive-shape-clover8 { --active-shape-mask: var(--shape-clover-8-leaf); -webkit-mask-image: var(--shape-clover-8-leaf); mask-image: var(--shape-clover-8-leaf); }
[data-shape="four-sided-cookie"], .shape-four-sided-cookie, .expressive-shape-four-sided-cookie { --active-shape-mask: var(--shape-cookie-4-sided); -webkit-mask-image: var(--shape-cookie-4-sided); mask-image: var(--shape-cookie-4-sided); }
[data-shape="4-sided-cookie"], .shape-4-sided-cookie, .expressive-shape-4-sided-cookie { --active-shape-mask: var(--shape-cookie-4-sided); -webkit-mask-image: var(--shape-cookie-4-sided); mask-image: var(--shape-cookie-4-sided); }
[data-shape="cookie4"], .shape-cookie4, .expressive-shape-cookie4 { --active-shape-mask: var(--shape-cookie-4-sided); -webkit-mask-image: var(--shape-cookie-4-sided); mask-image: var(--shape-cookie-4-sided); }
[data-shape="six-sided-cookie"], .shape-six-sided-cookie, .expressive-shape-six-sided-cookie { --active-shape-mask: var(--shape-cookie-6-sided); -webkit-mask-image: var(--shape-cookie-6-sided); mask-image: var(--shape-cookie-6-sided); }
[data-shape="6-sided-cookie"], .shape-6-sided-cookie, .expressive-shape-6-sided-cookie { --active-shape-mask: var(--shape-cookie-6-sided); -webkit-mask-image: var(--shape-cookie-6-sided); mask-image: var(--shape-cookie-6-sided); }
[data-shape="cookie6"], .shape-cookie6, .expressive-shape-cookie6 { --active-shape-mask: var(--shape-cookie-6-sided); -webkit-mask-image: var(--shape-cookie-6-sided); mask-image: var(--shape-cookie-6-sided); }
[data-shape="seven-sided-cookie"], .shape-seven-sided-cookie, .expressive-shape-seven-sided-cookie { --active-shape-mask: var(--shape-cookie-7-sided); -webkit-mask-image: var(--shape-cookie-7-sided); mask-image: var(--shape-cookie-7-sided); }
[data-shape="7-sided-cookie"], .shape-7-sided-cookie, .expressive-shape-7-sided-cookie { --active-shape-mask: var(--shape-cookie-7-sided); -webkit-mask-image: var(--shape-cookie-7-sided); mask-image: var(--shape-cookie-7-sided); }
[data-shape="cookie7"], .shape-cookie7, .expressive-shape-cookie7 { --active-shape-mask: var(--shape-cookie-7-sided); -webkit-mask-image: var(--shape-cookie-7-sided); mask-image: var(--shape-cookie-7-sided); }
[data-shape="nine-sided-cookie"], .shape-nine-sided-cookie, .expressive-shape-nine-sided-cookie { --active-shape-mask: var(--shape-cookie-9-sided); -webkit-mask-image: var(--shape-cookie-9-sided); mask-image: var(--shape-cookie-9-sided); }
[data-shape="9-sided-cookie"], .shape-9-sided-cookie, .expressive-shape-9-sided-cookie { --active-shape-mask: var(--shape-cookie-9-sided); -webkit-mask-image: var(--shape-cookie-9-sided); mask-image: var(--shape-cookie-9-sided); }
[data-shape="cookie9"], .shape-cookie9, .expressive-shape-cookie9 { --active-shape-mask: var(--shape-cookie-9-sided); -webkit-mask-image: var(--shape-cookie-9-sided); mask-image: var(--shape-cookie-9-sided); }
[data-shape="twelve-sided-cookie"], .shape-twelve-sided-cookie, .expressive-shape-twelve-sided-cookie { --active-shape-mask: var(--shape-cookie-12-sided); -webkit-mask-image: var(--shape-cookie-12-sided); mask-image: var(--shape-cookie-12-sided); }
[data-shape="12-sided-cookie"], .shape-12-sided-cookie, .expressive-shape-12-sided-cookie { --active-shape-mask: var(--shape-cookie-12-sided); -webkit-mask-image: var(--shape-cookie-12-sided); mask-image: var(--shape-cookie-12-sided); }
[data-shape="cookie12"], .shape-cookie12, .expressive-shape-cookie12 { --active-shape-mask: var(--shape-cookie-12-sided); -webkit-mask-image: var(--shape-cookie-12-sided); mask-image: var(--shape-cookie-12-sided); }
[data-shape="semi-circle"], .shape-semi-circle, .expressive-shape-semi-circle { --active-shape-mask: var(--shape-semicircle); -webkit-mask-image: var(--shape-semicircle); mask-image: var(--shape-semicircle); }
[data-shape="arch-up"], .shape-arch-up, .expressive-shape-arch-up { --active-shape-mask: var(--shape-arch); -webkit-mask-image: var(--shape-arch); mask-image: var(--shape-arch); }
[data-shape="ghost-ish"], .shape-ghost-ish, .expressive-shape-ghost-ish { --active-shape-mask: var(--shape-ghostish); -webkit-mask-image: var(--shape-ghostish); mask-image: var(--shape-ghostish); }
[data-shape="starburst"], .shape-starburst, .expressive-shape-starburst { --active-shape-mask: var(--shape-burst); -webkit-mask-image: var(--shape-burst); mask-image: var(--shape-burst); }
[data-shape="bloom"], .shape-bloom, .expressive-shape-bloom { --active-shape-mask: var(--shape-boom); -webkit-mask-image: var(--shape-boom); mask-image: var(--shape-boom); }
[data-shape="soft-bloom"], .shape-soft-bloom, .expressive-shape-soft-bloom { --active-shape-mask: var(--shape-soft-boom); -webkit-mask-image: var(--shape-soft-boom); mask-image: var(--shape-soft-boom); }
[data-shape="clamp-shell"], .shape-clamp-shell, .expressive-shape-clamp-shell { --active-shape-mask: var(--shape-clamshell); -webkit-mask-image: var(--shape-clamshell); mask-image: var(--shape-clamshell); }
[data-shape="very-sunny-12"], .shape-very-sunny-12, .expressive-shape-very-sunny-12 { --active-shape-mask: var(--shape-very-sunny); -webkit-mask-image: var(--shape-very-sunny); mask-image: var(--shape-very-sunny); }

/* #ref https://m3.material.io/components/lists/overview */
/* #insight Scoped styles for expandable FAQ accordion sections */

@layer components {
  @scope (.faq-accordion) {
    :scope {
      display: flex;
      flex-direction: column;
      gap: var(--space-4, 16px);
      width: 100%;
    }

    .faq-accordion-header {
      display: flex;
      flex-direction: column;
      gap: var(--space-2, 8px);
    }

    .faq-accordion-subtitle {
      font-size: var(--type-body-m-size, 1rem);
      line-height: var(--type-body-m-line-height, 1.5rem);
      color: var(--color-on-surface-variant);
      margin: 0;
    }

    .faq-accordion-answer {
      margin: 0;
      font-size: var(--type-body-m-size, 1rem);
      line-height: var(--type-body-m-line-height, 1.5rem);
      color: var(--color-on-surface-variant);
      font-weight: 400;
    }
  }
}

/* #insight Expressive Material 3 options rail layout and mobile drawer */

@layer components {
  @scope (.options-rail) {
    :scope {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 12px;
      width: 280px;
      min-width: 280px;
      box-sizing: border-box;
      height: 100%;
      align-self: stretch;
      justify-content: center;
      border: none;
    }

    :scope.justify-start {
      justify-content: flex-start;
    }

    :scope.justify-center {
      justify-content: center;
    }

    :scope.justify-end {
      justify-content: flex-end;
    }

    :scope.justify-between {
      justify-content: space-between;
    }

    .options-rail-close-button {
      position: absolute;
      top: calc(16px + env(safe-area-inset-top));
      right: 16px;
      display: none !important;
      z-index: 2;
    }

    .options-rail-items {
      position: relative;
      isolation: isolate;
      contain: layout style;
    }

    .options-rail-indicator {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      border-radius: 9999px;
      background-color: var(--color-secondary-container);
      pointer-events: none;
      z-index: 0;
      opacity: 0;
      transform: translate3d(0, 0, 0);
      transition: transform var(--options-rail-pill-duration, 240ms) cubic-bezier(0.25, 1, 0.5, 1),
                  opacity 150ms ease;
      will-change: transform;
      backface-visibility: hidden;
    }

    :scope[data-has-indicator] .options-rail-indicator {
      opacity: 1;
    }

    .options-rail-indicator.no-transition {
      transition: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
      .options-rail-indicator {
        transition: none !important;
      }
    }

    .options-rail-item {
      position: relative;
      z-index: 1;
      color: var(--color-on-surface-variant);
      background-color: transparent !important;
      background: none !important;
    }

    .options-rail-item:hover {
      background-color: transparent !important;
      background: none !important;
    }

    .options-rail-item:hover:not([data-selected]) {
      color: var(--color-on-surface);
    }

    .options-rail-item[data-selected] {
      background-color: var(--color-secondary-container) !important;
      color: var(--color-on-secondary-container) !important;
    }

    :scope[data-has-indicator] .options-rail-item[data-selected] {
      background-color: transparent !important;
    }

    .options-rail-item .material-symbols-rounded,
    .options-rail-item .icon {
      color: var(--color-on-surface-variant);
      font-variation-settings: "FILL" 0;
    }

    .options-rail-item:hover:not([data-selected]) .material-symbols-rounded,
    .options-rail-item:hover:not([data-selected]) .icon {
      color: var(--color-on-surface);
    }

    .options-rail-item[data-selected] .material-symbols-rounded,
    .options-rail-item[data-selected] .icon {
      color: var(--color-on-secondary-container) !important;
      font-variation-settings: "FILL" 1 !important;
    }
  }

  /* Settings menu and mobile drawer rules */
  #settings-menu-button,
  #options-rail-toggle {
    display: none !important;
  }

  #settings-rail-mobile:not(:popover-open) {
    display: none !important;
  }

  /*
   * #insight Options Rail Navigation Modes:
   * - "dock" (formerly "inline"): Docks into layout at medium screen breakpoint (>= 840px).
   * - "fixed": Default adaptive mode. Uses slide-over drawer on < 1120px where viewport
   *   cannot fit 840px content + 280px rail side-by-side.
   * Both modes transition to overlay mode at >= 1400px where unused margin >= 280px.
   */
  @media (max-width: 839px) {
    [data-stage-nav-mode="dock"] .options-rail,
    [data-ringu-nav-mode="dock"] .options-rail,
    [data-stage-nav-mode="inline"] .options-rail,
    [data-ringu-nav-mode="inline"] .options-rail,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) .options-rail {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      height: 100vh;
      max-height: 100vh;
      overflow-y: auto;
      z-index: 101;
      background-color: var(--color-surface-container-low);
      box-shadow: var(--shadow-4);
      transform: translateX(-100%);
      transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), display 200ms allow-discrete, overlay 200ms allow-discrete;
      padding-top: calc(76px + env(safe-area-inset-top));
      justify-content: flex-start !important;
      margin: 0;
      border: none;
      display: none;
    }

    [data-stage-nav-mode="dock"] .options-rail-close-button,
    [data-ringu-nav-mode="dock"] .options-rail-close-button,
    [data-stage-nav-mode="inline"] .options-rail-close-button,
    [data-ringu-nav-mode="inline"] .options-rail-close-button,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) .options-rail-close-button {
      display: inline-flex !important;
    }

    [data-stage-nav-mode="dock"] .options-rail:popover-open,
    [data-ringu-nav-mode="dock"] .options-rail:popover-open,
    [data-stage-nav-mode="inline"] .options-rail:popover-open,
    [data-ringu-nav-mode="inline"] .options-rail:popover-open,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) .options-rail:popover-open {
      display: flex;
      transform: translateX(0);
    }

    [data-stage-nav-mode="dock"] .options-rail:popover-open::backdrop,
    [data-ringu-nav-mode="dock"] .options-rail:popover-open::backdrop,
    [data-stage-nav-mode="inline"] .options-rail:popover-open::backdrop,
    [data-ringu-nav-mode="inline"] .options-rail:popover-open::backdrop,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) .options-rail:popover-open::backdrop {
      background-color: rgba(0, 0, 0, 0.4);
    }

    @starting-style {
      [data-stage-nav-mode="dock"] .options-rail:popover-open,
      [data-ringu-nav-mode="dock"] .options-rail:popover-open,
      [data-stage-nav-mode="inline"] .options-rail:popover-open,
      [data-ringu-nav-mode="inline"] .options-rail:popover-open,
      :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) .options-rail:popover-open {
        transform: translateX(-100%);
      }
    }

    [data-stage-nav-mode="dock"] #settings-menu-button,
    [data-ringu-nav-mode="dock"] #settings-menu-button,
    [data-stage-nav-mode="inline"] #settings-menu-button,
    [data-ringu-nav-mode="inline"] #settings-menu-button,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) #settings-menu-button,
    [data-stage-nav-mode="dock"] #options-rail-toggle,
    [data-ringu-nav-mode="dock"] #options-rail-toggle,
    [data-stage-nav-mode="inline"] #options-rail-toggle,
    [data-ringu-nav-mode="inline"] #options-rail-toggle,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) #options-rail-toggle {
      display: flex !important;
    }

    [data-stage-nav-mode="dock"] #settings-rail-desktop,
    [data-ringu-nav-mode="dock"] #settings-rail-desktop,
    [data-stage-nav-mode="inline"] #settings-rail-desktop,
    [data-ringu-nav-mode="inline"] #settings-rail-desktop,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) #settings-rail-desktop {
      display: none !important;
    }
  }

  @media (max-width: 1119px) {
    [data-stage-nav-mode="fixed"] .options-rail,
    [data-ringu-nav-mode="fixed"] .options-rail {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      height: 100vh;
      max-height: 100vh;
      overflow-y: auto;
      z-index: 101;
      background-color: var(--color-surface-container-low);
      box-shadow: var(--shadow-4);
      transform: translateX(-100%);
      transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), display 200ms allow-discrete, overlay 200ms allow-discrete;
      padding-top: calc(76px + env(safe-area-inset-top));
      justify-content: flex-start !important;
      margin: 0;
      border: none;
      display: none;
    }

    [data-stage-nav-mode="fixed"] .options-rail-close-button,
    [data-ringu-nav-mode="fixed"] .options-rail-close-button {
      display: inline-flex !important;
    }

    [data-stage-nav-mode="fixed"] .options-rail:popover-open,
    [data-ringu-nav-mode="fixed"] .options-rail:popover-open {
      display: flex;
      transform: translateX(0);
    }

    [data-stage-nav-mode="fixed"] .options-rail:popover-open::backdrop,
    [data-ringu-nav-mode="fixed"] .options-rail:popover-open::backdrop {
      background-color: rgba(0, 0, 0, 0.4);
    }

    @starting-style {
      [data-stage-nav-mode="fixed"] .options-rail:popover-open,
      [data-ringu-nav-mode="fixed"] .options-rail:popover-open {
        transform: translateX(-100%);
      }
    }

    [data-stage-nav-mode="fixed"] #settings-menu-button,
    [data-ringu-nav-mode="fixed"] #settings-menu-button,
    [data-stage-nav-mode="fixed"] #options-rail-toggle,
    [data-ringu-nav-mode="fixed"] #options-rail-toggle {
      display: flex !important;
    }

    [data-stage-nav-mode="fixed"] #settings-rail-desktop,
    [data-ringu-nav-mode="fixed"] #settings-rail-desktop {
      display: none !important;
    }
  }

  @media (min-width: 840px) {
    [data-stage-nav-mode="dock"] #settings-rail-desktop,
    [data-ringu-nav-mode="dock"] #settings-rail-desktop,
    [data-stage-nav-mode="inline"] #settings-rail-desktop,
    [data-ringu-nav-mode="inline"] #settings-rail-desktop,
    :not([data-stage-nav-mode]):not([data-ringu-nav-mode]) .options-rail {
      display: flex !important;
      position: sticky !important;
      inset: auto !important;
      top: 0 !important;
      margin: 0 !important;
      transform: none !important;
      height: 100vh !important;
      max-height: 100vh !important;
      overflow-y: auto !important;
      border: none !important;
      background-color: var(--color-surface) !important;
      z-index: 10 !important;
    }

    .options-rail.justify-start {
      justify-content: flex-start !important;
    }

    .options-rail.justify-center {
      justify-content: center !important;
    }

    .options-rail.justify-end {
      justify-content: flex-end !important;
    }

    .options-rail.justify-between {
      justify-content: space-between !important;
    }
  }

  @media (min-width: 1120px) {
    [data-stage-nav-mode="fixed"] #settings-rail-desktop,
    [data-ringu-nav-mode="fixed"] #settings-rail-desktop {
      display: flex !important;
      position: sticky !important;
      inset: auto !important;
      top: 0 !important;
      margin: 0 !important;
      transform: none !important;
      height: 100vh !important;
      max-height: 100vh !important;
      overflow-y: auto !important;
      border: none !important;
      background-color: var(--color-surface) !important;
      z-index: 10 !important;
    }
  }
}

/* #insight Scoped floating scroll-to / scroll-to-top button styles */

@layer components {
  @scope (.scroll-to, .scroll-to-top) {
    :scope {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: var(--radius-full);
      background-color: color-mix(in srgb, var(--color-surface-container-high) var(--surface-glass-opacity), transparent);
      backdrop-filter: blur(var(--surface-glass-blur));
      border: var(--surface-glass-border);
      box-shadow: var(--surface-glass-shadow);
      color: var(--color-on-surface);
      cursor: pointer;
      text-decoration: none;
      touch-action: manipulation;
      opacity: 0;
      pointer-events: none;
      transform: scale(0.8);
      transition: opacity var(--motion-duration-short) var(--motion-easing-standard),
                  transform var(--motion-duration-short) var(--motion-easing-standard);
    }

    :scope.fixed {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 50;
    }

    :scope.visible {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1);
    }

    :scope.invisible {
      opacity: 0;
      pointer-events: none;
      transform: scale(0.8);
    }

    :scope:hover {
      background-color: color-mix(in srgb, var(--color-surface-container-highest) 75%, transparent);
      transform: scale(1.05);
      text-decoration: none;
    }

    :scope:active {
      transform: scale(0.95);
    }
  }
}

/* #insight Scoped semantic styles for theme switch button */

@layer components {
  @scope (.theme-switch) {
    :scope {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-full);
      cursor: pointer;
      padding: var(--space-2);
      background: transparent;
      border: none;
      color: var(--color-on-surface-variant);
    }

    :scope:hover {
      background-color: var(--color-surface-container-high);
    }
  }
}

@font-face{font-family: Google Sans; font-style: normal; font-weight: 400; font-display: optional; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 400; font-display: optional; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Google Sans; font-style: normal; font-weight: 700; font-display: optional; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 700; font-display: optional; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-700-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Google Sans; font-style: normal; font-weight: 400; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-greek-400-normal.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 400; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-greek-400-italic.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}@font-face{font-family: Google Sans; font-style: normal; font-weight: 700; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-greek-700-normal.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 700; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-greek-700-italic.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}@font-face{font-family: Google Sans; font-style: normal; font-weight: 400; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 400; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: Google Sans; font-style: normal; font-weight: 700; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 700; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-latin-ext-700-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: Google Sans; font-style: normal; font-weight: 400; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 400; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-cyrillic-400-italic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}@font-face{font-family: Google Sans; font-style: normal; font-weight: 700; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}@font-face{font-family: Google Sans; font-style: italic; font-weight: 700; font-display: swap; src: url('https://rngsc.net/fonts/google-sans/google-sans-cyrillic-700-italic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}@font-face{font-family: Google Sans Code; font-style: normal; font-weight: 400; font-display: optional; src: url('https://rngsc.net/fonts/google-sans-code/google-sans-code-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Google Sans Code; font-style: italic; font-weight: 400; font-display: optional; src: url('https://rngsc.net/fonts/google-sans-code/google-sans-code-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Google Sans Code; font-style: normal; font-weight: 700; font-display: optional; src: url('https://rngsc.net/fonts/google-sans-code/google-sans-code-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Google Sans Code; font-style: italic; font-weight: 700; font-display: optional; src: url('https://rngsc.net/fonts/google-sans-code/google-sans-code-latin-700-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: Material Symbols Rounded; font-style: normal; font-weight: 100 700; font-display: block; src: url('https://rngsc.net/fonts/material-symbols/material-symbols-rounded-w300-o32.woff2') format('woff2');}.material-symbols-rounded{font-family: Material Symbols Rounded, sans-serif; font-weight: normal; font-style: normal; font-synthesis: none; font-size: 24px; width: 1em; height: 1em; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; overflow: hidden; flex-shrink: 0; vertical-align: middle; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: liga; font-variation-settings: 'wght' 300, 'opsz' 32, 'GRAD' 0, 'FILL' 0;}.material-symbols-rounded.icon-filled{font-variation-settings: 'wght' 300, 'opsz' 32, 'GRAD' 0, 'FILL' 1;}html:not([data-overlay-scrollbars]) ::-webkit-scrollbar-button{display: none; height: 0; width: 0;}@media (pointer: fine){html:not([data-overlay-scrollbars]) ::-webkit-scrollbar, html:not([data-overlay-scrollbars]) ::-webkit-scrollbar-corner{background: transparent; height: 12px; width: 12px;}html:not([data-overlay-scrollbars]) ::-webkit-scrollbar-track{background: transparent;}html:not([data-overlay-scrollbars]) ::-webkit-scrollbar-button{display: none; height: 0; width: 0;}html:not([data-overlay-scrollbars]) ::-webkit-scrollbar-thumb{background: content-box currentColor; border: 3px solid transparent; border-radius: 9999px; color: var(--color-surface-variant); min-height: 48px; min-width: 48px;}html:not([data-overlay-scrollbars]) ::-webkit-scrollbar-thumb:hover{color: var(--color-outline);}}@layer components{.overlay-scrollbar-layer[popover]{position: fixed; inset: 0; width: 0; height: 0; margin: 0; padding: 0; background: transparent; border: none; outline: none; box-shadow: none; overflow: visible; pointer-events: none; view-transition-name: none;}.overlay-scrollbar-layer[popover]:not(:popover-open){display: none;}.overlay-scrollbar-track-y, .overlay-scrollbar-track-x{position: fixed; margin: 0; box-sizing: border-box; background: transparent; border: none; outline: none; box-shadow: none; pointer-events: none;}.overlay-scrollbar-track-y{width: 12px; padding: 0 3px;}.overlay-scrollbar-track-x{height: 12px; padding: 3px 0;}.overlay-scrollbar-track-y[data-visible], .overlay-scrollbar-track-x[data-visible]{pointer-events: auto;}.overlay-scrollbar-thumb-y, .overlay-scrollbar-thumb-x{box-sizing: border-box; border: none; outline: none; box-shadow: none; border-radius: var(--radius-full, 9999px); background-color: color-mix(in srgb, var(--color-outline) 62%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; will-change: transform, opacity; transition: opacity var(--motion-duration-medium, 300ms) var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));}.overlay-scrollbar-thumb-y{width: 6px; min-height: 48px;}.overlay-scrollbar-thumb-x{height: 6px; min-width: 48px;}.overlay-scrollbar-track-y[data-visible] .overlay-scrollbar-thumb-y, .overlay-scrollbar-track-x[data-visible] .overlay-scrollbar-thumb-x{opacity: 1; transition: opacity var(--motion-duration-press, 75ms) var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));}@media (hover: hover) and (pointer: fine){.overlay-scrollbar-track-y:is(:hover, [data-dragging]) .overlay-scrollbar-thumb-y, .overlay-scrollbar-track-x:is(:hover, [data-dragging]) .overlay-scrollbar-thumb-x{background-color: color-mix(in srgb, var(--color-on-surface-variant) 78%, transparent);}}@media (prefers-reduced-motion: reduce){.overlay-scrollbar-thumb-y, .overlay-scrollbar-thumb-x, .overlay-scrollbar-track-y[data-visible] .overlay-scrollbar-thumb-y, .overlay-scrollbar-track-x[data-visible] .overlay-scrollbar-thumb-x{transition: none;}}}@media print{.overlay-scrollbar-layer[popover]{display: none !important;}}@media (hover: hover) and (pointer: fine){html[data-overlay-scrollbars]{scrollbar-width: none; scrollbar-gutter: auto;}html[data-overlay-scrollbars]::-webkit-scrollbar, html[data-overlay-scrollbars] *::-webkit-scrollbar{display: none !important; width: 0 !important; height: 0 !important;}}:root{color-scheme: light dark; background-color: var(--color-surface);}:root{--font-family-brand: Google Sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-family-plain: Google Sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-family-mono: Google Sans Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; --font-family-code: Google Sans Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;}body{font-family: var(--font-family-plain); background-color: var(--color-surface);}:where(:focus, :focus-visible){outline: none;}:root, html{view-transition-name: none !important;}.prose h2{font-family: var(--font-family-brand); font-size: 1.75rem; line-height: 2.25rem; font-weight: var(--font-weight-regular, 400); margin-bottom: 16px; scroll-margin-top: 24px;}.prose h2:not(:first-child){margin-top: 1.75em;}.prose h3{scroll-margin-top: 24px;}.prose blockquote{background-color: var(--color-surface-container); border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0; padding: 12px 16px;}.prose blockquote p:last-child{margin-bottom: 0;}@media (max-width: 600px){.prose table{display: block; overflow-x: auto; max-width: 100%;}}@media (min-width: 840px){.site-brand{position: fixed; top: 12px; left: 28px; height: 48px; z-index: 20;}}@media (max-width: 839px){.scroll-to-top.fixed{position: sticky; bottom: 16px; right: auto; align-self: flex-end; margin-top: 24px; margin-bottom: 16px;}.site-footer{margin-top: 0;}}.site-toc-nav{overflow: clip; padding: 0; --accordion-summary-padding: var(--space-3, 12px) var(--space-4, 16px); --accordion-body-padding: 0 var(--space-4, 16px) var(--space-4, 16px);}