:root {  --m-color-primary: #6750A4;  --m-color-on-primary: #FFFFFF;  --m-color-primary-container: #EADDFF;  --m-color-on-primary-container: #21005D;  --m-color-secondary: #625B71;  --m-color-on-secondary: #FFFFFF;  --m-color-secondary-container: #E8DEF8;  --m-color-on-secondary-container: #1D192B;  --m-color-tertiary: #7D5260;  --m-color-on-tertiary: #FFFFFF;  --m-color-tertiary-container: #FFD8E4;  --m-color-on-tertiary-container: #31111D;  --m-color-surface: #FFFBFE;  --m-color-on-surface: #1C1B1F;  --m-color-surface-variant: #E7E0EC;  --m-color-on-surface-variant: #49454F;  --m-color-surface-container: #F3EDF7;  --m-color-surface-container-high: #ECE6F0;  --m-color-inverse-surface: #313033;  --m-color-inverse-on-surface: #F4EFF4;  --m-color-outline: #79747E;  --m-color-outline-variant: #CAC4D0;  --m-color-error: #B3261E;  --m-color-on-error: #FFFFFF;  --m-color-error-container: #F9DEDC;  --m-color-warning: #F59E0B;  --m-color-success: #10B981;  --m-color-disabled: rgba(28, 27, 31, 0.12);  --m-color-on-disabled: rgba(28, 27, 31, 0.38);  --m-state-hover: rgba(28, 27, 31, 0.08);  --m-state-pressed: rgba(28, 27, 31, 0.12);  --m-state-focused: rgba(28, 27, 31, 0.12);  --m-radius-none: 0;  --m-radius-xs: 2px;  --m-radius-sm: 4px;  --m-radius-md: 6px;  --m-radius-lg: 8px;  --m-radius-xl: 14px;  --m-radius-full: 5000px;  --m-spacing-xs: 4px;  --m-spacing-sm: 8px;  --m-spacing-md: 12px;  --m-spacing-lg: 16px;  --m-spacing-xl: 24px;  --m-font-family: -apple-system, "Helvetica Neue", Roboto, "Noto Sans", sans-serif;  --m-font-size-xs: 10px;  --m-font-size-sm: 12px;  --m-font-size-md: 14px;  --m-font-size-lg: 16px;  --m-font-size-xl: 18px;  --m-font-size-xxl: 22px;  --m-font-weight-regular: 400;  --m-font-weight-medium: 500;  --m-font-weight-bold: 700;  --m-line-height: 1.5;  --m-duration-fast: 150ms;  --m-duration-normal: 250ms;  --m-duration-slow: 400ms;  --m-easing-standard: cubic-bezier(0.2, 0, 0, 1);  --m-easing-decelerate: cubic-bezier(0, 0, 0, 1);  --m-easing-accelerate: cubic-bezier(0.3, 0, 1, 1);  --m-shadow-1: 0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.04);  --m-shadow-2: 0 2px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);  --m-shadow-3: 0 4px 8px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);}m-view, m-text, m-icon, m-progress, m-image,m-button, m-input, m-textarea, m-switch, m-slider,m-picker,m-radio-group, m-radio, m-checkbox-group, m-checkbox,m-label, m-form,m-scroll-view, m-swiper, m-swiper-item, m-main,m-video,m-popup, m-loading, m-circle, m-divider, m-skeleton,m-collapse, m-collapse-item, m-steps, m-step,m-calendar, m-cascader {  display: block;  box-sizing: border-box;  font-family: var(--m-font-family);  font-size: var(--m-font-size-md);  line-height: var(--m-line-height);  -webkit-tap-highlight-color: transparent;}m-text, m-icon, m-label, m-radio, m-checkbox {  display: inline;}m-button {  display: inline-block;}m-view {
  position: relative;
}
m-text {
  display: inline;
  word-wrap: break-word;
}
m-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.m-icon__svg {
  display: block;
  flex-shrink: 0;
}
m-progress {
  --m-progress-bg: var(--m-color-surface-variant);
  --m-progress-fill: var(--m-color-primary);
  --m-progress-radius: var(--m-radius-full);

  display: flex;
  align-items: center;
  gap: var(--m-spacing-xs);
  padding: var(--m-spacing-xs) 0;
}

.m-progress__track {
  flex: 1;
  background: var(--m-progress-bg);
  border-radius: var(--m-progress-radius);
  overflow: hidden;
}

.m-progress__bar {
  height: 100%;
  background: var(--m-progress-fill);
  border-radius: inherit;
  transition: width 250ms cubic-bezier(0.2, 0, 0, 1);
}

.m-progress__info {
  font-size: var(--m-font-size-sm);
  color: var(--m-color-on-surface-variant);
  min-width: 30px;
  text-align: right;
}
m-image {
  --m-image-width: 160px;
  --m-image-height: 120px;
  display: inline-block;
  overflow: hidden;
  width: var(--m-image-width);
  height: var(--m-image-height);
}
.m-image__img {
  display: block;
  width: 100%;
  height: 100%;
}
m-button {
  --m-btn-height: 40px;
  --m-btn-height-mini: 28px;
  --m-btn-padding: 0 16px;
  --m-btn-padding-mini: 0 8px;
  --m-btn-font-size: var(--m-font-size-md);
  --m-btn-font-size-mini: var(--m-font-size-sm);
  --m-btn-radius: var(--m-radius-xl);

  --m-btn-bg: var(--m-color-surface-container);
  --m-btn-color: var(--m-color-on-surface);
  --m-btn-border: none;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--m-spacing-xs);
  width: 100%;
  height: var(--m-btn-height);
  padding: var(--m-btn-padding);
  border: var(--m-btn-border);
  border-radius: var(--m-btn-radius);
  background: var(--m-btn-bg);
  color: var(--m-btn-color);
  font-family: var(--m-font-family);
  font-size: var(--m-btn-font-size);
  font-weight: var(--m-font-weight-medium);
  line-height: 1;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: background 150ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms;
  -webkit-appearance: none;
  appearance: none;
}

.m-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: background 150ms;
}
.m-btn:hover::after {
  background: var(--m-state-hover);
}
.m-btn:active::after {
  background: var(--m-state-pressed);
}

.m-btn--primary {
  --m-btn-bg: var(--m-color-primary);
  --m-btn-color: var(--m-color-on-primary);
}
.m-btn--warn {
  --m-btn-bg: var(--m-color-error);
  --m-btn-color: var(--m-color-on-error);
}

.m-btn--plain {
  --m-btn-bg: transparent;
  --m-btn-border: 1px solid var(--m-color-outline);
}
.m-btn--plain.m-btn--primary {
  --m-btn-color: var(--m-color-primary);
  --m-btn-border: 1px solid var(--m-color-primary);
}
.m-btn--plain.m-btn--warn {
  --m-btn-color: var(--m-color-error);
  --m-btn-border: 1px solid var(--m-color-error);
}

.m-btn--mini {
  height: var(--m-btn-height-mini);
  padding: var(--m-btn-padding-mini);
  font-size: var(--m-btn-font-size-mini);
}

.m-btn--disabled {
  --m-btn-bg: var(--m-color-disabled);
  --m-btn-color: var(--m-color-on-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

.m-btn--loading {
  pointer-events: none;
}

.m-btn__loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: m-btn-spin 0.6s linear infinite;
}
@keyframes m-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.m-btn__content {
  display: inline-flex;
  align-items: center;
  gap: var(--m-spacing-xs);
}

.button-hover {
  opacity: 0.7;
}
m-input {
  --m-input-height: 40px;
  --m-input-padding: 0 var(--m-spacing-sm);
  --m-input-font-size: var(--m-font-size-md);
  --m-input-bg: transparent;
  --m-input-color: var(--m-color-on-surface);
  --m-input-placeholder-color: var(--m-color-on-surface-variant);
  --m-input-border-color: var(--m-color-outline-variant);
  --m-input-border-focus: var(--m-color-primary);
  --m-input-radius: var(--m-radius-sm);

  display: flex;
  align-items: center;
  min-height: var(--m-input-height);
  padding: var(--m-input-padding);
  background: var(--m-input-bg);
  border: 1px solid var(--m-input-border-color);
  border-radius: var(--m-input-radius);
  transition: border-color 150ms cubic-bezier(0.2, 0, 0, 1);
}
m-input.m-input--focused {
  border-color: var(--m-input-border-focus);
}

.m-input__native {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--m-input-color);
  font-family: var(--m-font-family);
  font-size: var(--m-input-font-size);
  line-height: var(--m-line-height);
}
.m-input__native::placeholder {
  color: var(--m-input-placeholder-color);
}
.m-input__native:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
m-textarea {
  --m-textarea-min-height: 80px;
  --m-textarea-padding: var(--m-spacing-sm);
  --m-textarea-font-size: var(--m-font-size-md);
  --m-textarea-bg: transparent;
  --m-textarea-color: var(--m-color-on-surface);
  --m-textarea-placeholder-color: var(--m-color-on-surface-variant);
  --m-textarea-border-color: var(--m-color-outline-variant);
  --m-textarea-border-focus: var(--m-color-primary);
  --m-textarea-radius: var(--m-radius-sm);

  display: block;
  position: relative;
  padding: var(--m-textarea-padding);
  background: var(--m-textarea-bg);
  border: 1px solid var(--m-textarea-border-color);
  border-radius: var(--m-textarea-radius);
  transition: border-color 150ms cubic-bezier(0.2, 0, 0, 1);
}
m-textarea.m-textarea--focused {
  border-color: var(--m-textarea-border-focus);
}

.m-textarea__native {
  display: block;
  width: 100%;
  min-height: var(--m-textarea-min-height);
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--m-textarea-color);
  font-family: var(--m-font-family);
  font-size: var(--m-textarea-font-size);
  line-height: var(--m-line-height);
}
.m-textarea__native::placeholder {
  color: var(--m-textarea-placeholder-color);
}
.m-textarea__native:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.m-textarea__count {
  display: block;
  text-align: right;
  font-size: var(--m-font-size-xs);
  color: var(--m-color-on-surface-variant);
  margin-top: var(--m-spacing-xs);
}
m-switch {
  --m-switch-width: 52px;
  --m-switch-height: 30px;
  --m-switch-thumb-size: 24px;
  --m-switch-bg: var(--m-color-surface-variant);
  --m-switch-active-bg: var(--m-color-primary);
  --m-switch-thumb-bg: #ffffff;
  --m-switch-thumb-shadow: var(--m-shadow-1);

  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  cursor: pointer;
}

.m-switch__track {
  position: relative;
  display: inline-block;
  width: var(--m-switch-width);
  height: var(--m-switch-height);
  border-radius: var(--m-radius-full);
  background: var(--m-switch-bg);
  -webkit-transition: background 250ms cubic-bezier(0.2, 0, 0, 1), box-shadow 250ms cubic-bezier(0.2, 0, 0, 1);
  transition: background 250ms cubic-bezier(0.2, 0, 0, 1), box-shadow 250ms cubic-bezier(0.2, 0, 0, 1);
}
.m-switch__track--on {
  background: var(--m-switch-active-bg);
}

.m-switch__thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: var(--m-switch-thumb-size);
  height: var(--m-switch-thumb-size);
  border-radius: 50%;
  background: var(--m-switch-thumb-bg);
  box-shadow: var(--m-switch-thumb-shadow);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: left 250ms cubic-bezier(0.2, 0, 0, 1), width 200ms cubic-bezier(0.2, 0, 0, 1),
    -webkit-transform 250ms cubic-bezier(0.2, 0, 0, 1);
  transition: left 250ms cubic-bezier(0.2, 0, 0, 1), width 200ms cubic-bezier(0.2, 0, 0, 1),
    transform 250ms cubic-bezier(0.2, 0, 0, 1);
}
.m-switch__track--on .m-switch__thumb {
  left: calc(100% - var(--m-switch-thumb-size) - 3px);
}

.m-switch__track:active .m-switch__thumb {
  width: calc(var(--m-switch-thumb-size) + 4px);
}
.m-switch__track--on:active .m-switch__thumb {
  left: calc(100% - var(--m-switch-thumb-size) - 4px - 3px);
}

.m-switch--disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
m-slider {
  --m-slider-track-height: 4px;
  --m-slider-track-bg: var(--m-color-surface-variant);
  --m-slider-fill-bg: var(--m-color-primary);
  --m-slider-thumb-size: 24px;
  --m-slider-thumb-bg: var(--m-color-primary);
  --m-slider-thumb-shadow: var(--m-shadow-2);

  display: block;
  padding: var(--m-spacing-sm) 0;
}

.m-slider__wrap {
  display: flex;
  align-items: center;
  gap: var(--m-spacing-sm);
}

.m-slider__track {
  position: relative;
  flex: 1;
  height: var(--m-slider-track-height);
  background: var(--m-slider-track-bg);
  border-radius: var(--m-radius-full);
  cursor: pointer;
}

.m-slider__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--m-slider-fill-bg);
  border-radius: inherit;
  pointer-events: none;
}

.m-slider__thumb {
  position: absolute;
  top: 50%;
  width: var(--m-slider-thumb-size);
  height: var(--m-slider-thumb-size);
  background: var(--m-slider-thumb-bg);
  border-radius: 50%;
  box-shadow: var(--m-slider-thumb-shadow);
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: box-shadow 150ms;
}
.m-slider__thumb:active {
  cursor: grabbing;
  box-shadow: var(--m-shadow-3);
}

.m-slider__value {
  font-size: var(--m-font-size-sm);
  color: var(--m-color-on-surface-variant);
  min-width: 30px;
  text-align: center;
}

.m-slider--disabled {
  opacity: 0.38;
  pointer-events: none;
}
m-picker {
  display: block;
  cursor: pointer;
}

.m-picker__panel-wrap {
  display: flex;
  flex-direction: column;
}

.m-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.m-picker__cancel,
.m-picker__confirm {
  border: none;
  background: none;
  font-size: 14px;
  padding: 0 4px;
  cursor: pointer;
  line-height: 44px;
  font-family: var(--m-font-family);
}
.m-picker__cancel {
  color: var(--m-color-on-surface-variant, #969799);
}
.m-picker__confirm {
  color: var(--m-color-primary, #1989fa);
  font-weight: var(--m-font-weight-medium, 500);
}
.m-picker__title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: var(--m-font-weight-medium, 500);
  color: var(--m-color-on-surface, #323233);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-picker__content {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.m-picker__content--multi {
  gap: 0;
}

.m-picker__column {
  flex: 1;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.m-picker__column-wrapper {
  will-change: transform;
}

.m-picker__col-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: var(--m-color-on-surface-variant, #969799);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s, font-weight 0.15s;
  cursor: pointer;
}
.m-picker__col-item--active {
  color: var(--m-color-on-surface, #323233);
  font-weight: var(--m-font-weight-medium, 500);
}

.m-picker__indicator {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.m-picker__gradient {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.m-picker__gradient--top {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}
.m-picker__gradient--bottom {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}
m-radio-group {
  display: block;
}

m-radio {
  --m-radio-size: 20px;
  --m-radio-border-color: var(--m-color-outline);
  --m-radio-active-color: var(--m-color-primary);

  display: inline-flex;
  align-items: center;
  gap: var(--m-spacing-xs);
  cursor: pointer;
  padding: var(--m-spacing-xs) 0;
}

.m-radio__dot {
  display: inline-block;
  flex-shrink: 0;
  width: var(--m-radio-size);
  height: var(--m-radio-size);
  border: 2px solid var(--m-radio-border-color);
  border-radius: 50%;
  position: relative;
  transition: border-color 150ms cubic-bezier(0.2, 0, 0, 1);
}
.m-radio__dot--checked {
  border-color: var(--m-radio-active-color);
}
.m-radio__dot--checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  background: var(--m-radio-active-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.m-radio--disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
m-checkbox-group {
  display: block;
}

m-checkbox {
  --m-checkbox-size: 20px;
  --m-checkbox-border-color: var(--m-color-outline);
  --m-checkbox-active-color: var(--m-color-primary);
  --m-checkbox-radius: var(--m-radius-xs);

  display: inline-flex;
  align-items: center;
  gap: var(--m-spacing-xs);
  cursor: pointer;
  padding: var(--m-spacing-xs) 0;
}

.m-checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--m-checkbox-size);
  height: var(--m-checkbox-size);
  border: 2px solid var(--m-checkbox-border-color);
  border-radius: var(--m-checkbox-radius);
  transition: background 150ms, border-color 150ms;
}
.m-checkbox__box--checked {
  background: var(--m-checkbox-active-color);
  border-color: var(--m-checkbox-active-color);
}

.m-checkbox__check {
  width: 70%;
  height: 70%;
  fill: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 150ms, transform 150ms;
}
.m-checkbox__box--checked .m-checkbox__check {
  opacity: 1;
  transform: scale(1);
}

.m-checkbox--disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
m-label {
  display: inline;
  cursor: pointer;
}
m-form {
  display: block;
}
m-scroll-view {
  display: block;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
m-swiper {
  display: block;
  position: relative;
  overflow: hidden;
  height: 150px;
}

.m-swiper__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

m-swiper-item {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.m-swiper__dots {
  position: absolute;
  bottom: var(--m-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--m-spacing-xs);
}
.m-swiper__dots--vertical {
  bottom: auto;
  left: auto;
  right: var(--m-spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
}

.m-swiper__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 150ms;
}
.m-swiper__dot--active {
  background: rgba(0, 0, 0, 0.8);
}
m-main {
  display: block;
  padding: var(--m-page-padding, 12px 16px);
  background: var(--m-page-bg, var(--m-color-surface));
  min-height: 100%;
  box-sizing: border-box;
}
m-video {
  display: block;
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--m-radius-sm);
  overflow: hidden;
}

.m-video__native {
  display: block;
  width: 100%;
  height: 100%;
}
m-popup {
  display: none;
}
m-loading {
  display: inline-flex;
}
.m-loading__wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.m-loading__wrap--vertical {
  flex-direction: column;
}

.m-loading__circular {
  animation: m-loading-rotate 2s linear infinite;
}
.m-loading__circular-path {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: m-loading-dash 1.5s ease-in-out infinite;
}
@keyframes m-loading-rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes m-loading-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -40px;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -120px;
  }
}

.m-loading__spinner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-loading__line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 25%;
  margin-left: -1px;
  border-radius: 1px;
  transform-origin: center 200%;
  opacity: 0;
  animation: m-loading-fade 1.2s linear infinite;
}
@keyframes m-loading-fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.25;
  }
}

.m-loading__text {
  color: var(--m-color-on-surface-variant);
  font-size: 14px;
}
m-circle {
  display: inline-block;
}
.m-circle__wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-circle__wrap svg {
  display: block;
}
.m-circle__text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--m-font-size-md);
  font-weight: var(--m-font-weight-medium);
  color: var(--m-color-on-surface);
}
m-divider {
  display: block;
  margin: var(--m-spacing-md) 0;
}
.m-divider__line {
  border: 0;
  border-top: 1px solid var(--m-color-outline-variant);
}
.m-divider__line--hairline {
  border-top-width: 0.5px;
}
.m-divider__line--dashed {
  border-top-style: dashed;
}
.m-divider__line--with-text {
  display: flex;
  align-items: center;
  border-top: none;
}
.m-divider__line--with-text::before,
.m-divider__line--with-text::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--m-color-outline-variant);
}
.m-divider__line--dashed.m-divider__line--with-text::before,
.m-divider__line--dashed.m-divider__line--with-text::after {
  border-top-style: dashed;
}
.m-divider__line--hairline.m-divider__line--with-text::before,
.m-divider__line--hairline.m-divider__line--with-text::after {
  border-top-width: 0.5px;
}
.m-divider__line--left::before {
  max-width: 10%;
}
.m-divider__line--right::after {
  max-width: 10%;
}

.m-divider__text {
  padding: 0 var(--m-spacing-md);
  color: var(--m-color-on-surface-variant);
  font-size: var(--m-font-size-sm);
  white-space: nowrap;
}
m-skeleton {
  display: block;
}

/* loading 状态：隐藏用户内容，显示骨架屏 */
m-skeleton.m-skeleton--loading > :not(.m-skeleton) {
  display: none !important;
}

/* 非 loading 状态：隐藏骨架屏，显示用户内容 */
m-skeleton:not(.m-skeleton--loading) > .m-skeleton {
  display: none;
}

.m-skeleton {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}

.m-skeleton__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--m-color-surface-container-high, #ece6f0);
}
.m-skeleton__avatar--square {
  border-radius: var(--m-radius-sm);
}

.m-skeleton__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-skeleton__title {
  width: 40%;
  height: 18px;
  border-radius: var(--m-radius-xs);
  background: var(--m-color-surface-container-high, #ece6f0);
}

.m-skeleton__row {
  height: 14px;
  border-radius: var(--m-radius-xs);
  background: var(--m-color-surface-container-high, #ece6f0);
}

.m-skeleton--animate .m-skeleton__avatar,
.m-skeleton--animate .m-skeleton__title,
.m-skeleton--animate .m-skeleton__row {
  animation: m-skeleton-shimmer 1.5s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    var(--m-color-surface-container-high, #ece6f0) 25%,
    var(--m-color-surface-container, #f3edf7) 37%,
    var(--m-color-surface-container-high, #ece6f0) 63%
  );
  background-size: 400% 100%;
}
@keyframes m-skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
m-collapse {
  display: block;
}
m-collapse-item {
  display: block;
  border-bottom: 0.5px solid var(--m-color-outline-variant);
}

.m-collapse-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
m-collapse-item[disabled] .m-collapse-item__header {
  color: var(--m-color-on-surface-variant);
  opacity: 0.38;
  cursor: default;
}

.m-collapse-item__title {
  flex: 1;
  font-size: var(--m-font-size-md);
  color: var(--m-color-on-surface);
}

.m-collapse-item__arrow {
  flex-shrink: 0;
  color: var(--m-color-on-surface-variant);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.m-collapse-item__arrow--open {
  transform: rotate(180deg);
}

.m-collapse-item__body {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.m-collapse-item__body-inner {
  padding: 0 16px 14px;
  color: var(--m-color-on-surface-variant);
  font-size: var(--m-font-size-sm);
}
m-steps {
  display: flex;
  width: 100%;
}
m-steps[direction='vertical'] {
  flex-direction: column;
}
m-step {
  flex: 1;
  display: block;
}

.m-step__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.m-step__wrap--vertical {
  flex-direction: row;
  align-items: flex-start;
  padding: 0 0 24px;
}

.m-step__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 24px;
}
.m-step__wrap--vertical .m-step__icon-wrap {
  width: 24px;
  height: auto;
  flex-direction: column;
  margin-right: 12px;
  min-height: 100%;
}

.m-step__icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--m-color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: var(--m-font-weight-medium);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
}

.m-step__line {
  flex: 1;
  height: 2px;
  background: var(--m-color-outline-variant);
  transition: background 0.3s;
}
.m-step__wrap--vertical .m-step__line {
  width: 2px;
  height: auto;
  flex: 1;
}
.m-step__line--before {
  margin-right: 4px;
}
.m-step__line--after {
  margin-left: 4px;
}
.m-step__wrap--vertical .m-step__line--before {
  margin-right: 0;
  margin-bottom: 4px;
}
.m-step__wrap--vertical .m-step__line--after {
  margin-left: 0;
  margin-top: 4px;
}

.m-step__content {
  text-align: center;
  padding-top: 8px;
}
.m-step__wrap--vertical .m-step__content {
  text-align: left;
  padding-top: 0;
  padding-bottom: 8px;
}

.m-step__title {
  font-size: var(--m-font-size-sm);
  font-weight: var(--m-font-weight-medium);
  line-height: 1.4;
}

.m-step__desc {
  font-size: 12px;
  color: var(--m-color-on-surface-variant);
  margin-top: 4px;
}
m-calendar {
  display: none;
}

.m-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.m-calendar__header-title {
  font-size: 16px;
  font-weight: var(--m-font-weight-medium);
  color: var(--m-color-on-surface);
}
.m-calendar__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--m-color-on-surface-variant);
}

.m-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
}
.m-calendar__nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  color: var(--m-color-on-surface);
}
.m-calendar__nav-btn:active {
  background: var(--m-color-surface-container-high);
}
.m-calendar__month-label {
  font-size: 14px;
  font-weight: var(--m-font-weight-medium);
  color: var(--m-color-on-surface);
}

.m-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 8px;
}
.m-calendar__weekday {
  text-align: center;
  font-size: 12px;
  color: var(--m-color-on-surface-variant);
  padding: 8px 0;
}

.m-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 8px 16px;
  gap: 2px 0;
}
.m-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 14px;
  color: var(--m-color-on-surface);
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
}
.m-calendar__day--empty {
  cursor: default;
}
.m-calendar__day--disabled {
  color: var(--m-color-on-surface-variant);
  opacity: 0.38;
  cursor: default;
}
.m-calendar__day:not(.m-calendar__day--empty):not(.m-calendar__day--disabled):active {
  background: var(--m-color-surface-container-high);
}
.m-calendar__day--selected {
  background: var(--m-color-primary) !important;
  color: var(--m-color-on-primary) !important;
}
.m-calendar__day--in-range {
  background: var(--m-color-primary-container);
  color: var(--m-color-on-primary-container);
  border-radius: 0;
}
.m-calendar__day--start {
  border-radius: 50% 0 0 50%;
}
.m-calendar__day--end {
  border-radius: 0 50% 50% 0;
}

.m-calendar__footer {
  padding: 8px 16px 16px;
}
.m-calendar__confirm {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: var(--m-radius-full);
  background: var(--m-color-primary);
  color: var(--m-color-on-primary);
  font-size: 14px;
  font-weight: var(--m-font-weight-medium);
  cursor: pointer;
}
.m-calendar__confirm:disabled {
  opacity: 0.38;
  cursor: default;
}
m-cascader {
  display: none;
}

.m-cascader__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.m-cascader__title {
  font-size: 16px;
  font-weight: var(--m-font-weight-medium);
  color: var(--m-color-on-surface);
}
.m-cascader__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--m-color-on-surface-variant);
}

.m-cascader__tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--m-color-outline-variant);
  padding: 0 16px;
  overflow-x: auto;
}
.m-cascader__tab {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--m-color-on-surface-variant);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.m-cascader__tab--active {
  color: var(--m-color-primary);
  border-bottom-color: var(--m-color-primary);
  font-weight: var(--m-font-weight-medium);
}

.m-cascader__list {
  overflow-y: auto;
  padding: 8px 0;
  max-height: 360px;
}
.m-cascader__list--slide-left {
  animation: m-cascader-in-left 0.25s ease;
}
.m-cascader__list--slide-right {
  animation: m-cascader-in-right 0.25s ease;
}
@keyframes m-cascader-in-left {
  from {
    transform: translateX(30%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes m-cascader-in-right {
  from {
    transform: translateX(-30%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.m-cascader__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--m-color-on-surface);
  cursor: pointer;
}
.m-cascader__option:active {
  background: var(--m-color-surface-container-high);
}
.m-cascader__option--selected {
  color: var(--m-color-primary);
  font-weight: var(--m-font-weight-medium);
}
.m-cascader__check {
  color: var(--m-color-primary);
  display: flex;
  align-items: center;
}
