/* ============================================================
   DPDNS 通用组件样式
   按钮 · 卡片 · 表单 · 弹窗 · Toast · 灯箱 · 角标 · 标签
   ============================================================ */

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-base); font-weight: 500;
  line-height: 1.4;
  cursor: pointer; user-select: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast),
              box-shadow var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn:active:not(:disabled) { transform: scale(.97); }

.btn--primary {
  background: var(--dpdns-deep); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--dpdns-blue); box-shadow: var(--shadow-brand); }
.btn--primary.is-success { background: var(--c-success); }

.btn--ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-default); }
.btn--ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-strong); }

.btn--danger { background: var(--c-danger); color: #fff; }
.btn--danger:hover { background: #a83228; }

.btn--text { background: transparent; color: var(--text-link); padding: 6px 10px; }
.btn--text:hover { background: var(--c-info-bg); }

.btn--sm { padding: 5px 10px; font-size: var(--fs-sm); }
.btn--lg { padding: 12px 24px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--icon { padding: 8px; width: 36px; height: 36px; }
.btn--icon.btn--sm { padding: 5px; width: 30px; height: 30px; }

.btn .spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .6s linear infinite;
}

/* ===================== 卡片 ===================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur), transform var(--dur), border-color var(--dur);
}
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-default); }
.card__header { padding: var(--sp-4) var(--sp-4) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.card__title { font-size: var(--fs-lg); font-weight: 600; }
.card__body { padding: var(--sp-4); }
.card__footer { padding: var(--sp-3) var(--sp-4) var(--sp-4); border-top: 1px solid var(--border-subtle); }

/* ===================== 标签 / 徽章 ===================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.5;
  background: var(--bg-surface-alt); color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.tag--brand { background: var(--c-info-bg); color: var(--dpdns-blue); border-color: transparent; }
.tag--success { background: var(--c-success-bg); color: var(--c-success); border-color: transparent; }
.tag--warn { background: var(--c-warn-bg); color: var(--c-warn); border-color: transparent; }
.tag--danger { background: var(--c-danger-bg); color: var(--c-danger); border-color: transparent; }
.tag--official { background: var(--c-official-bg); color: var(--c-official); border-color: transparent; }

.tag--removable { padding-right: 4px; }
.tag--removable .tag__x {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: .6; transition: opacity var(--dur-fast), background var(--dur-fast);
}
.tag--removable .tag__x:hover { opacity: 1; background: rgba(0,0,0,.08); }

/* 身份角标 */
.badge-role {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px; border-radius: var(--r-xs);
  font-size: 10px; font-weight: 600; vertical-align: middle;
}
.badge-role--admin { background: var(--c-official); color: #fff; }
.badge-role--uploader { background: var(--dpdns-teal); color: #fff; }
.badge-role--person { background: var(--dpdns-azure); color: #fff; }

/* 盾牌徽章（头像角标） */
.avatar-shield {
  position: absolute; right: -2px; bottom: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-official); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* ===================== 表单 ===================== */
.field { margin-bottom: var(--sp-4); }
.field__label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); }
.field__label .req { color: var(--c-danger); margin-left: 2px; }
.field__hint { margin-top: 4px; font-size: var(--fs-xs); color: var(--text-tertiary); }
.field__error { margin-top: 4px; font-size: var(--fs-xs); color: var(--c-danger); }

.input, .textarea, .select {
  width: 100%; padding: 9px 12px;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: var(--r-md);
  font-size: var(--fs-base); line-height: 1.5;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--dpdns-azure); box-shadow: var(--shadow-focus); }
.input:disabled, .textarea:disabled { background: var(--bg-surface-alt); cursor: not-allowed; }
.input.is-error, .textarea.is-error { border-color: var(--c-danger); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238492a6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 40px; }
.input-group__icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary); cursor: pointer; display: flex; padding: 4px;
  border-radius: var(--r-xs); transition: color var(--dur-fast), background var(--dur-fast);
}
.input-group__icon:hover { color: var(--text-primary); background: var(--bg-hover); }

/* 复选/单选 */
.checkbox, .radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: var(--fs-sm); }
.checkbox input, .radio input { position: absolute; opacity: 0; }
.checkbox__box, .radio__box {
  width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: var(--r-xs);
  background: var(--bg-surface); flex-shrink: 0; transition: all var(--dur-fast);
  display: flex; align-items: center; justify-content: center;
}
.radio__box { border-radius: 50%; }
.checkbox__box::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) scale(0); transition: transform var(--dur-fast); margin-top: -2px; }
.radio__box::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--dur-fast); }
.checkbox input:checked + .checkbox__box { background: var(--dpdns-deep); border-color: var(--dpdns-deep); }
.checkbox input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.radio input:checked + .radio__box { background: var(--dpdns-deep); border-color: var(--dpdns-deep); }
.radio input:checked + .radio__box::after { transform: scale(1); }
.checkbox input:focus-visible + .checkbox__box, .radio input:focus-visible + .radio__box { box-shadow: var(--shadow-focus); }

/* 步骤条 */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: var(--sp-6); }
.step { display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; flex: 1; }
.step__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-surface-alt); border: 1.5px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-tertiary);
  transition: all var(--dur); flex-shrink: 0;
}
.step__label { font-size: var(--fs-sm); color: var(--text-tertiary); transition: color var(--dur); white-space: nowrap; }
.step.active .step__num { background: var(--dpdns-deep); border-color: var(--dpdns-deep); color: #fff; }
.step.active .step__label { color: var(--dpdns-blue); font-weight: 500; }
.step.done .step__num { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.step.done .step__label { color: var(--text-secondary); }
.step__connector { flex: 0 0 24px; height: 2px; background: var(--border-subtle); margin: 0 var(--sp-1); }
.step.done + .step__connector { background: var(--c-success); }

/* ===================== 弹窗 ===================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: var(--bg-overlay);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  animation: fadeIn var(--dur) var(--ease-out);
}
.modal {
  background: var(--bg-surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px; width: 100%; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: modalIn var(--dur-slow) var(--ease-spring);
}
.modal--lg { max-width: 720px; }
.modal--sm { max-width: 360px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
.modal__header { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; }
.modal__title { font-size: var(--fs-lg); font-weight: 600; }
.modal__close { padding: 6px; border-radius: var(--r-sm); color: var(--text-tertiary); cursor: pointer; transition: all var(--dur-fast); display: flex; }
.modal__close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal__body { padding: var(--sp-5); overflow-y: auto; }
.modal__footer { padding: var(--sp-3) var(--sp-5) var(--sp-5); border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; gap: var(--sp-2); }

/* ===================== Toast ===================== */
#toast-root { position: fixed; top: calc(var(--topbar-h) + 12px); right: 12px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px 14px; min-width: 240px; max-width: 360px;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); pointer-events: auto;
  animation: toastIn var(--dur-slow) var(--ease-spring);
  border-left: 3px solid var(--dpdns-azure);
}
.toast.is-out { animation: toastOut var(--dur) var(--ease-in) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast--success { border-left-color: var(--c-success); }
.toast--warn { border-left-color: var(--c-warn); }
.toast--danger { border-left-color: var(--c-danger); }
.toast__icon { flex-shrink: 0; }
.toast__msg { flex: 1; }
.toast__close { padding: 2px; cursor: pointer; color: var(--text-tertiary); opacity: .6; transition: opacity var(--dur-fast); }
.toast__close:hover { opacity: 1; }

/* ===================== 灯箱 ===================== */
#lightbox-root { position: fixed; inset: 0; z-index: var(--z-lightbox); }
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(0,0,0,.92);
  display: flex; flex-direction: column;
  animation: fadeIn var(--dur) var(--ease-out);
}
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--r-sm); transition: transform var(--dur-slow) var(--ease); cursor: grab; user-select: none; }
.lightbox__img.dragging { cursor: grabbing; transition: none; }
.lightbox__counter {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.5); color: #fff; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-variant-numeric: tabular-nums;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur-fast), transform var(--dur-fast);
  backdrop-filter: blur(6px);
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__actions { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: var(--sp-2); }
.lightbox__action {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--dur-fast);
}
.lightbox__action:hover { background: rgba(255,255,255,.25); transform: scale(1.1); }
.lightbox__action.liked { color: #ff5a5f; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

/* ===================== 头像 ===================== */
.avatar {
  border-radius: var(--r-pill); overflow: hidden; flex-shrink: 0;
  background: var(--bg-surface-alt); position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { width: 24px; height: 24px; }
.avatar--sm { width: 32px; height: 32px; }
.avatar--md { width: 40px; height: 40px; }
.avatar--lg { width: 64px; height: 64px; }
.avatar--xl { width: 96px; height: 96px; }
.avatar--guest { background: var(--border-default); color: var(--text-tertiary); }

/* ===================== 下拉菜单 ===================== */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: var(--sp-1); z-index: var(--z-dropdown);
  animation: slideDown var(--dur) var(--ease-out);
}
.dropdown__item {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); cursor: pointer; color: var(--text-secondary);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.dropdown__item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown__item.danger { color: var(--c-danger); }
.dropdown__item.danger:hover { background: var(--c-danger-bg); }
.dropdown__sep { height: 1px; background: var(--border-subtle); margin: 4px 0; }

/* ===================== 空状态 / 加载 / 错误 ===================== */
.state-block { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--sp-12) var(--sp-4); text-align: center; }
.state-block__icon { width: 56px; height: 56px; margin-bottom: var(--sp-4); color: var(--text-muted); opacity: .6; }
.state-block__title { font-size: var(--fs-lg); font-weight: 500; color: var(--text-secondary); margin-bottom: var(--sp-2); }
.state-block__desc { font-size: var(--fs-sm); color: var(--text-tertiary); max-width: 320px; }
.state-block__actions { margin-top: var(--sp-4); display: flex; gap: var(--sp-2); }
.state-error .state-block__icon { color: var(--c-danger); opacity: .8; }
.state-error .state-block__title { color: var(--c-danger); }

.loading-row { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-tertiary); font-size: var(--fs-sm); }
.loading-row .spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--dpdns-blue); border-radius: 50%; animation: spin .6s linear infinite; }

.error-code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }

/* ===================== 工具栏（筛选/排序） ===================== */
.toolbar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.toolbar__group { display: flex; align-items: center; gap: var(--sp-1); }
.toolbar__label { font-size: var(--fs-xs); color: var(--text-tertiary); margin-right: 4px; }
.seg {
  display: inline-flex; background: var(--bg-surface-alt); border-radius: var(--r-md); padding: 2px;
}
.seg__btn {
  padding: 5px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-tertiary);
  cursor: pointer; transition: all var(--dur-fast); white-space: nowrap;
}
.seg__btn:hover { color: var(--text-primary); }
.seg__btn.active { background: var(--bg-surface); color: var(--dpdns-blue); font-weight: 500; box-shadow: var(--shadow-xs); }

/* 已选条件标签条 */
.filter-tags { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }

/* ===================== 分页 / 加载更多 ===================== */
.load-more { display: flex; justify-content: center; padding: var(--sp-6) 0; }
.end-hint { text-align: center; padding: var(--sp-4); color: var(--text-muted); font-size: var(--fs-xs); }
.end-hint::before, .end-hint::after { content: '—'; margin: 0 var(--sp-2); color: var(--border-default); }

/* ===================== 评分星 ===================== */
.stars { display: inline-flex; gap: 2px; }
.star { width: 24px; height: 24px; cursor: pointer; color: var(--border-strong); transition: color var(--dur-fast), transform var(--dur-fast); }
.star:hover { transform: scale(1.12); }
.star.filled { color: #f5a623; }
.stars--sm .star { width: 16px; height: 16px; }

/* 评分分布条 */
.rating-bar { display: flex; align-items: center; gap: var(--sp-2); margin: 3px 0; }
.rating-bar__label { width: 24px; font-size: var(--fs-xs); color: var(--text-tertiary); display: flex; align-items: center; gap: 2px; }
.rating-bar__track { flex: 1; height: 6px; background: var(--bg-surface-alt); border-radius: var(--r-pill); overflow: hidden; }
.rating-bar__fill { height: 100%; background: #f5a623; border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease-out); }
.rating-bar__pct { width: 36px; text-align: right; font-size: var(--fs-xs); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

/* ===================== 姓氏索引 ===================== */
.alpha-index { display: flex; flex-direction: column; gap: 2px; }
.alpha-index__item {
  padding: 4px 8px; font-size: var(--fs-sm); border-radius: var(--r-xs);
  color: var(--text-tertiary); cursor: pointer; transition: all var(--dur-fast);
  text-align: center; font-weight: 500;
}
.alpha-index__item:hover { background: var(--bg-hover); color: var(--text-primary); }
.alpha-index__item.disabled { color: var(--text-muted); cursor: not-allowed; opacity: .4; }
.alpha-index__item.disabled:hover { background: none; }

/* ===================== Tabs ===================== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-subtle); }
.tab {
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-base); color: var(--text-tertiary);
  cursor: pointer; position: relative; transition: color var(--dur-fast);
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--dpdns-blue); border-bottom-color: var(--dpdns-deep); }
.tab__count { margin-left: 4px; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }

/* ===================== 回到顶部 ===================== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-sticky);
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-md); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--dur); opacity: 0; pointer-events: none;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--dpdns-deep); color: #fff; border-color: var(--dpdns-deep); transform: translateY(-2px); box-shadow: var(--shadow-brand); }

/* ===================== 公告条 ===================== */
.announcement {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: linear-gradient(90deg, var(--c-info-bg), var(--c-official-bg));
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-sm); color: var(--text-secondary);
}
.announcement__icon { color: var(--dpdns-deep); flex-shrink: 0; }
.announcement__text { flex: 1; }
.announcement__close { padding: 4px; color: var(--text-tertiary); cursor: pointer; transition: color var(--dur-fast); }
.announcement__close:hover { color: var(--text-primary); }

/* ===================== 轮播 ===================== */
.carousel { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.carousel__track { display: flex; transition: transform var(--dur-slow) var(--ease); }
.carousel__slide { flex: 0 0 100%; }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.8); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity var(--dur), background var(--dur-fast);
  backdrop-filter: blur(4px); box-shadow: var(--shadow-sm);
}
.carousel:hover .carousel__nav { opacity: 1; }
.carousel__nav:hover { background: rgba(255,255,255,.95); }
.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }
.carousel__dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.carousel__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all var(--dur-fast); }
.carousel__dot.active { width: 18px; border-radius: var(--r-pill); background: #fff; }

/* ===================== 进度条 ===================== */
.progress { height: 6px; background: var(--bg-surface-alt); border-radius: var(--r-pill); overflow: hidden; }
.progress__bar { height: 100%; background: var(--dpdns-deep); border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease-out); }
.progress__bar--success { background: var(--c-success); }
