/* CoupleBill 记账人默认身份、在一起持久共享与整点滑块样式 (Payer & Sharing UI) */
.shared-switch-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}
.shared-switch-card.active {
  background: linear-gradient(135deg, #FFF1F2, #FFE4E6);
  border-color: #FECDD3;
}
.shared-switch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shared-switch-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shared-switch-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #E2E8F0;
  transition: background 0.25s ease;
}
.shared-switch-card.active .shared-switch-icon {
  background: #FDA4AF;
}
.shared-switch-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #1E293B);
  display: flex;
  align-items: center;
  gap: 6px;
}
.shared-switch-status-tag {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
}
.shared-switch-card.active .shared-switch-status-tag {
  color: #FF4B72;
  font-weight: 700;
}
.shared-switch-desc {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}
.shared-switch-card.active .shared-switch-desc {
  color: #BE123C;
}

/* 优雅流光 Switch 按钮 */
.switch-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #CBD5E1;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}
.switch-toggle.active {
  background: linear-gradient(135deg, #FF4B72, #FB7185);
  box-shadow: 0 4px 12px rgba(255, 75, 114, 0.35);
}
.switch-circle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.switch-toggle.active .switch-circle {
  transform: translateX(20px);
}

/* 开启后折叠紧凑概要 */
.shared-collapsed-summary {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 75, 114, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.shared-summary-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.summary-label {
  font-size: 11px;
  color: #64748B;
}
.summary-badge-payer {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}
.summary-badge-split {
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  background: #FFFBEB;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #FDE68A;
}
.btn-toggle-shared-details {
  font-size: 11px;
  font-weight: 700;
  color: #FF4B72;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* 共享展开详细卡片区 */
.shared-config-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 241, 242, 0.6);
  border-radius: 16px;
  border: 1px solid #FFE4E6;
}
.split-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.split-card-btn {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.split-card-btn.active.treat-active {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}
.split-card-btn.active.equal-active {
  background: #FF4B72;
  border-color: #FF4B72;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 75, 114, 0.25);
}
.split-card-title {
  font-size: 12px;
  font-weight: 700;
}
.split-card-sub {
  font-size: 9px;
  opacity: 0.85;
}

/* 时间与整点进度条 */
.time-group {
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}
.time-header-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.time-summary-text {
  font-weight: 700;
  color: var(--text-main, #1E293B);
}
.time-summary-text.custom {
  color: #FF4B72;
}
.time-slider-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #E2E8F0;
}
.time-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 6px;
}
.time-slider-badge {
  font-weight: 700;
  color: #FF4B72;
  background: #FFF1F2;
  padding: 1px 6px;
  border-radius: 4px;
}
.time-range-input {
  width: 100%;
  accent-color: #FF4B72;
  cursor: pointer;
}
.time-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #94A3B8;
  font-family: monospace;
  margin-top: 2px;
}
.time-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
