* {
  box-sizing: border-box;
}

*:active {
  outline: none;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc);
}

:host {
  box-shadow: none !important;
}

::-moz-focus-inner {
  border: none;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  font-stretch: inherit;
}

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

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

.hidden {
  display: none;
}

:host([hidden]) {
  display: none;
}

.invisible {
  visibility: hidden;
}

@container style(--t-prefers-motion: "reduced") {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
  }
}
@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")) {
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-delay: 0ms !important;
    }
  }
}
/**
 * @prop --tct-link-color-inline: (<color>) Controls the text color of inline-style links.
 * @prop --tct-link-color-inline-active: (<color>) Controls the text color of inline-style links in the active state.
 * @prop --tct-link-color-standalone: (<color>) Controls the text color of standalone-style links.
 * @prop --tct-link-color-standalone-active: (<color>) Controls the text color of standalone-style links in the active state.
 * @prop --tct-link-color-standalone-disabled-color: (<color>) Controls the text color of standalone-style links when disabled.
 * @prop --tct-link-color-standalone-disabled-opacity: (<number>) Controls the opacity of standalone-style links when disabled.
 * @prop --tct-link-disabled-opacity: (<number>) Controls the opacity of inline-style links when disabled.
 * @prop --tct-link-icon-color?: (<color>) Controls the optional color of the link's trailing icon.
 * @prop --tct-link-icon-stroke-width: (<number>) Controls the stroke width of the link's trailing icon.
 * @prop --tct-link-label-icon-gap: (<length-percentage>) Controls the gap between the link label and trailing icon.
 * @prop --tct-link-font-size?: (<length-percentage>) Controls the optional font size of the link label.
 * @prop --tct-link-font-weight?: (<number>) Controls the optional font weight of the link label.
 * @prop --tct-link-font-bold-stroke-width: (<length>) Controls the text stroke width applied when the link is hovered or active (simulates a bold weight).
 * @prop --tct-link-border-radius?: (<length-percentage>) Controls the optional corner radius of the link container and focus ring.
 * @prop --tct-link-focus-visible-box-shadow: (*) Controls the box shadow applied to the link when focused via keyboard.
 * @prop --tct-link-side-margin: (<length>) Controls the horizontal margin applied to inline-style links.
 * @prop --tct-link-min-height: (<length>) Controls the minimum height of the link in standalone mode.
 * @prop --tct-link-ellipsis-max-width: (<length-percentage>) Controls the maximum width of the link when ellipsis is enabled.
 * @prop --tct-link-inline-underline-animation: ("enabled" | "disabled") Enables the inline underline sweep on hover and keyboard focus. Defaults to disabled.
 * @prop --tct-link-standalone-icon-animation: ("enabled" | "disabled") Enables the standalone icon bounce on hover and keyboard focus. Defaults to disabled.
 * @prop --tct-link-standalone-underline-animation: ("enabled" | "disabled") Enables the standalone underline sweep on hover. Defaults to disabled.
 * @prop --tct-link-inline-underline-resting-state: ("visible" | "hidden") Controls inline underline visibility before interaction. Defaults to visible.
 * @prop --tct-link-inline-underline-animation-duration: (<time>) Inline underline animation duration; defaults to --t-tween-time-in-5, then 400ms.
 * @prop --tct-link-inline-underline-animation-timing-function: (<easing-function>) Inline underline animation easing; defaults to --t-tween-ease-inout, then cubic-bezier(0.4, 0, 0.2, 1).
 * @prop --tct-link-standalone-icon-animation-duration: (<time>) Icon bounce duration; defaults to --t-tween-time-in-4, then 300ms.
 * @prop --tct-link-standalone-icon-animation-timing-function: (<easing-function>) Icon bounce easing; defaults to --t-tween-ease-in, then cubic-bezier(0, 0, 0.2, 1).
 * @prop --tct-link-standalone-icon-transition-duration: (<time>) Icon transition duration; defaults to --t-tween-time-out-1, then 100ms.
 * @prop --tct-link-standalone-icon-transition-timing-function: (<easing-function>) Icon transition easing; defaults to --t-tween-ease-out, then cubic-bezier(0.4, 0, 1, 1).
 * @prop --tct-link-standalone-underline-animation-duration: (<time>) Standalone underline sweep duration; defaults to --t-tween-time-in-5, then 400ms.
 * @prop --tct-link-standalone-underline-animation-timing-function: (<easing-function>) Standalone underline sweep easing; defaults to --t-tween-ease-inout, then cubic-bezier(0.4, 0, 0.2, 1).
 */
:host {
  display: inline-block;
}

:host:active {
  box-shadow: none;
}

:host([ellipsis]:not([ellipsis=false])) {
  display: block;
  flex: 0 1 auto;
  max-width: var(--tct-link-ellipsis-max-width, 45%);
  min-width: 0;
  overflow: hidden;
}

:host([ellipsis]:not([ellipsis=false])[full-width]:not([full-width=false])) {
  flex: 1 1 0px;
  max-width: 100%;
}

:host([full-width]:not([full-width=false])) {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.label.ellipsis {
  display: block;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-container {
  --comp-link-font-bold-stroke-width: 0.5px;
  background: transparent;
  border: none;
  border-radius: var(--tct-link-border-radius, 0);
  font-size: var(--tct-link-font-size, inherit);
  font-weight: var(--tct-link-font-weight, inherit);
  max-width: 100%;
  overflow: hidden;
}
.link-container.standalone {
  --comp-icon-stroke: var(--tct-link-icon-stroke-width, 1.5);
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.link-container.standalone .link {
  position: relative;
  color: var(--tct-link-color-standalone, var(--t-primary));
  min-height: var(--tct-link-min-height, 24px);
  display: flex;
  align-items: center;
  border-radius: var(--tct-link-border-radius, 0);
  --tct-icon-size: 16px;
  text-decoration: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.link-container.standalone .link .icon-motion {
  display: inline-flex;
  margin-left: var(--tct-link-label-icon-gap, 6px);
  flex-shrink: 0;
}
.link-container.standalone .link q2-icon {
  color: var(--tct-link-icon-color, inherit);
  flex-shrink: 0;
}
.link-container.standalone .link .standalone-label {
  position: relative;
  display: inline-flex;
  min-width: 0;
}
.link-container.standalone .link .standalone-underline {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}
.link-container.standalone:hover {
  text-decoration: underline;
  -webkit-text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
  text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
  --tct-icon-stroke-width: calc(var(--comp-icon-stroke) + 0.5);
}
.link-container.standalone:active:hover {
  text-decoration: underline;
  -webkit-text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
  text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
  --tct-icon-stroke-width: calc(var(--comp-icon-stroke) + 0.5);
}
.link-container.standalone:active:hover .link {
  color: var(--tct-link-color-standalone-active, var(--t-primary-d2));
  box-shadow: none;
}
.link-container.standalone.disabled .link {
  cursor: not-allowed;
  color: var(--tct-link-color-standalone-disabled-color, var(--t-primary));
  opacity: var(--tct-link-color-standalone-disabled-opacity, var(--tct-link-disabled-opacity, var(--app-disabled-opacity, 0.4)));
  text-decoration: none;
}
.link-container.standalone.disabled:hover {
  text-decoration: none;
}
.link-container.standalone:has(:focus-visible) {
  box-shadow: var(--tct-link-focus-visible-box-shadow, var(--const-double-focus-ring));
}
.link-container.inline {
  margin: 0 var(--tct-link-side-margin, 6px);
  text-decoration: underline;
  position: relative;
  color: var(--tct-link-color-inline, var(--t-primary));
}
.link-container.inline .inline-underline {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left center;
}
.link-container.inline.ellipsis {
  display: block;
  max-width: 100%;
}
.link-container.inline:hover {
  -webkit-text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
  text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
}
.link-container.inline:active:hover {
  -webkit-text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
  text-stroke-width: var(--tct-link-font-bold-stroke-width, var(--comp-link-font-bold-stroke-width));
  color: var(--tct-link-color-inline-active, var(--t-primary-d2));
  box-shadow: none;
}
.link-container.inline.disabled {
  cursor: not-allowed;
  opacity: var(--tct-link-disabled-opacity, var(--app-disabled-opacity, 0.4));
}
.link-container.inline:focus-visible {
  box-shadow: var(--tct-link-focus-visible-box-shadow, var(--const-double-focus-ring));
}

@keyframes q2-link-inline-underline-sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes q2-link-icon-bounce {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  28% {
    opacity: 0;
    transform: translateX(100%);
  }
  29% {
    opacity: 0;
    transform: translateX(-100%);
  }
  58% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes q2-link-standalone-underline-sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@container style(--tct-link-inline-underline-resting-state: "hidden") {
  :host .link-container.inline:not(.disabled) {
    text-decoration: none;
  }
  :host .link-container.inline:not(.disabled) .inline-underline {
    display: block;
    transform: scaleX(0);
  }
  :host .link-container.inline:not(.disabled):hover, :host .link-container.inline:not(.disabled):focus-visible {
    text-decoration: none;
  }
  :host .link-container.inline:not(.disabled):hover .inline-underline, :host .link-container.inline:not(.disabled):focus-visible .inline-underline {
    transform: scaleX(1);
  }
}
@container style(--tct-link-inline-underline-animation: "enabled") {
  :host .link-container.inline:not(.disabled) {
    text-decoration: none;
  }
  :host .link-container.inline:not(.disabled) .inline-underline {
    display: block;
  }
  :host .link-container.inline:not(.disabled):hover .inline-underline, :host .link-container.inline:not(.disabled):focus-visible .inline-underline {
    animation: q2-link-inline-underline-sweep var(--tct-link-inline-underline-animation-duration, var(--t-tween-time-in-5, 400ms)) var(--tct-link-inline-underline-animation-timing-function, var(--t-tween-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))) both;
  }
}
@container style(--tct-link-standalone-icon-animation: "enabled") {
  :host .link-container.standalone:not(.disabled) .icon-motion {
    transition: opacity var(--tct-link-standalone-icon-transition-duration, var(--t-tween-time-out-1, 100ms)) var(--tct-link-standalone-icon-transition-timing-function, var(--t-tween-ease-out, cubic-bezier(0.4, 0, 1, 1))), transform var(--tct-link-standalone-icon-transition-duration, var(--t-tween-time-out-1, 100ms)) var(--tct-link-standalone-icon-transition-timing-function, var(--t-tween-ease-out, cubic-bezier(0.4, 0, 1, 1)));
  }
  :host .link-container.standalone:not(.disabled):hover .icon-motion, :host .link-container.standalone:not(.disabled):has(.link:focus-visible) .icon-motion {
    animation: q2-link-icon-bounce var(--tct-link-standalone-icon-animation-duration, var(--t-tween-time-in-4, 300ms)) var(--tct-link-standalone-icon-animation-timing-function, var(--t-tween-ease-in, cubic-bezier(0, 0, 0.2, 1)));
  }
}
@container style(--tct-link-standalone-underline-animation: "enabled") {
  :host .link-container.standalone:not(.disabled) .standalone-underline {
    display: block;
  }
  :host .link-container.standalone:not(.disabled):hover {
    text-decoration: none;
  }
  :host .link-container.standalone:not(.disabled):hover .standalone-underline {
    animation: q2-link-standalone-underline-sweep var(--tct-link-standalone-underline-animation-duration, var(--t-tween-time-in-5, 400ms)) var(--tct-link-standalone-underline-animation-timing-function, var(--t-tween-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))) both;
  }
}
@container style(--t-prefers-motion: "reduced") {
  :host .inline-underline,
  :host .icon-motion,
  :host .standalone-underline {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
  }
}
@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")) {
  @media (prefers-reduced-motion: reduce) {
    :host .inline-underline,
    :host .icon-motion,
    :host .standalone-underline {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-delay: 0ms !important;
    }
  }
}