/* ==========================================================================
   问题诉求 H5 · 腾讯云 TDesign 风格
   设计令牌取自 TDesign 官方色板（品牌蓝 #0052D9 / 中性灰阶 / 语义色）
   ========================================================================== */

:root {
  /* 品牌色 */
  --td-brand: #0052d9;
  --td-brand-hover: #366ef4;
  --td-brand-active: #003cab;
  --td-brand-1: #f2f3ff;
  --td-brand-2: #d9e1ff;
  --td-brand-3: #b5c7ff;

  /* 语义色 */
  --td-success: #2ba471;
  --td-success-1: #e8f8f2;
  --td-warning: #e37318;
  --td-warning-1: #fff1e9;
  --td-error: #d54941;
  --td-error-1: #fff0ed;
  --td-purple: #6d4bd8;
  --td-purple-1: #f3f0fd;

  /* 文字 */
  --td-text-1: rgba(0, 0, 0, 0.9);
  --td-text-2: rgba(0, 0, 0, 0.6);
  --td-text-3: rgba(0, 0, 0, 0.4);
  --td-text-4: rgba(0, 0, 0, 0.26);
  --td-text-anti: #ffffff;

  /* 中性 / 容器 */
  --td-border: #dcdcdc;
  --td-divider: #e7e7e7;
  --td-bg: #f3f3f3;
  --td-bg-2: #fafafa;
  --td-container: #ffffff;

  /* 圆角：TDesign 小 3 / 默认 6 / 中 9 */
  --td-radius-s: 3px;
  --td-radius: 6px;
  --td-radius-m: 9px;

  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--td-bg);
  color: var(--td-text-1);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5715;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.page {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(28px + var(--safe-b));
  background: var(--td-bg);
}

/* ---------- 顶部：腾讯云控制台风格的实色蓝头图 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px 24px;
  background: linear-gradient(135deg, #0052d9 0%, #366ef4 100%);
  color: var(--td-text-anti);
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.hero__orb--a { width: 180px; height: 180px; top: -84px; right: -46px; }
.hero__orb--b { width: 120px; height: 120px; bottom: -66px; left: -34px; background: rgba(255, 255, 255, 0.05); }
.hero__top { position: relative; display: flex; align-items: center; gap: 12px; }
.hero__mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--td-radius);
  background: rgba(255, 255, 255, 0.18);
  font-size: 17px; font-weight: 600;
}
.hero__title { flex: 1; min-width: 0; }
.hero__eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.5px; opacity: 0.75; }
.hero__title h1 { margin: 3px 0 0; font-size: 18px; font-weight: 600; letter-spacing: 0.2px; }
.hero__region {
  position: relative;
  margin: 14px 0 0;
  padding: 7px 10px;
  border-radius: var(--td-radius-s);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-all;
}
.icon-btn {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--td-radius-s);
  background: rgba(255, 255, 255, 0.16);
  color: var(--td-text-anti);
  cursor: pointer;
  transition: background 0.2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { background: rgba(255, 255, 255, 0.28); }
.icon-btn.is-busy svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 统计：白底描边卡片 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 12px 0;
}
.stats:empty { display: none; }
.stat {
  background: var(--td-container);
  border: 1px solid var(--td-divider);
  border-radius: var(--td-radius);
  padding: 11px 6px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 20px; font-weight: 600;
  color: var(--td-brand);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 11px; color: var(--td-text-3); }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; gap: 8px; padding: 12px 12px 0; }
.search-wrap {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  background: var(--td-container);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--td-brand);
  box-shadow: 0 0 0 2px var(--td-brand-2);
}
.search-icon { width: 16px; height: 16px; color: var(--td-text-3); flex: none; }
.search-wrap input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--td-text-1);
  -webkit-appearance: none;
}
.search-wrap input::placeholder { color: var(--td-text-3); }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-clear {
  flex: none; width: 18px; height: 18px;
  border: 0; border-radius: 50%;
  background: var(--td-text-4); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.filter-btn {
  flex: none;
  position: relative;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--td-border); border-radius: var(--td-radius);
  background: var(--td-container); color: var(--td-text-2);
  font-size: 14px; cursor: pointer;
  transition: 0.2s;
}
.filter-btn[aria-expanded="true"] {
  background: var(--td-brand-1);
  border-color: var(--td-brand);
  color: var(--td-brand);
}
.filter-dot {
  position: absolute; top: 6px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--td-error);
}

/* ---------- 状态快筛 ---------- */
.chips {
  display: flex; gap: 8px;
  padding: 12px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips:empty { display: none; }
.chip {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--td-border); border-radius: var(--td-radius-s);
  background: var(--td-container); color: var(--td-text-2);
  font-size: 13px; white-space: nowrap; cursor: pointer;
  transition: 0.2s;
}
.chip[aria-pressed="true"] {
  background: var(--td-brand-1);
  border-color: var(--td-brand);
  color: var(--td-brand);
  font-weight: 500;
}

/* ---------- 筛选面板 ---------- */
.filter-panel {
  margin: 12px 12px 0;
  padding: 16px 14px;
  background: var(--td-container);
  border: 1px solid var(--td-divider);
  border-radius: var(--td-radius);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--td-text-2); }
.field--full { margin-top: 12px; }
.field input, .field select {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--td-border); border-radius: var(--td-radius);
  background: var(--td-container); color: var(--td-text-1);
  font-size: 14px; outline: 0;
  -webkit-appearance: none; appearance: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='rgba(0,0,0,0.4)' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 28px;
}
.field input:focus, .field select:focus {
  border-color: var(--td-brand);
  box-shadow: 0 0 0 2px var(--td-brand-2);
}
.filter-actions { display: flex; gap: 10px; margin-top: 16px; }
.ghost-btn, .primary-btn {
  flex: 1; height: 36px;
  border-radius: var(--td-radius);
  font-size: 14px; cursor: pointer;
  transition: 0.2s;
}
.ghost-btn {
  border: 1px solid var(--td-border);
  background: var(--td-container);
  color: var(--td-text-2);
}
.ghost-btn:active { background: var(--td-bg-2); }
.primary-btn {
  border: 1px solid var(--td-brand);
  background: var(--td-brand);
  color: var(--td-text-anti);
}
.primary-btn:active { background: var(--td-brand-active); border-color: var(--td-brand-active); }

/* ---------- 列表 ---------- */
.list { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 10px; }

.card {
  background: var(--td-container);
  border: 1px solid var(--td-divider);
  border-radius: var(--td-radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.card.is-open { border-color: var(--td-brand-3); }
.card__head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
}
.card__no {
  flex: none;
  min-width: 44px; height: 44px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: var(--td-radius-s);
  background: var(--td-brand-1);
  color: var(--td-brand);
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card__body { flex: 1; min-width: 0; }
.card__type {
  margin: 0;
  font-size: 14px; font-weight: 500; color: var(--td-text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin: 6px 0 0;
  font-size: 12px; color: var(--td-text-3);
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.card__arrow {
  flex: none; align-self: center;
  width: 16px; height: 16px; color: var(--td-text-3);
  transition: transform 0.22s;
}
.card.is-open .card__arrow { transform: rotate(180deg); color: var(--td-brand); }

/* ---------- 标签：TDesign 语义色 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.tag {
  padding: 1px 8px;
  border-radius: var(--td-radius-s);
  font-size: 12px;
  background: var(--td-bg);
  color: var(--td-text-2);
}
.tag--level { background: var(--td-brand-1); color: var(--td-brand); }
.tag--s1 { background: var(--td-warning-1); color: var(--td-warning); }  /* 待处理 */
.tag--s2 { background: var(--td-brand-1);   color: var(--td-brand); }    /* 处理中 */
.tag--s3 { background: var(--td-success-1); color: var(--td-success); }  /* 已办结 */
.tag--s4 { background: var(--td-error-1);   color: var(--td-error); }    /* 已驳回 */
.tag--s5 { background: var(--td-bg);        color: var(--td-text-2); }   /* 无需处理 */
.tag--anon { background: var(--td-purple-1); color: var(--td-purple); }

.card__detail {
  border-top: 1px solid var(--td-divider);
  padding: 14px;
  background: var(--td-bg-2);
}
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 8px 10px; font-size: 13px; margin: 0; }
.kv dt { color: var(--td-text-3); }
.kv dd { margin: 0; color: var(--td-text-1); word-break: break-all; }
.kv dd a { color: var(--td-brand); text-decoration: none; }

.media { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.media audio, .media video { width: 100%; border-radius: var(--td-radius); }
.media__imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.media__imgs img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: var(--td-radius-s); border: 1px solid var(--td-border);
}

.section-title {
  margin: 16px 0 10px;
  font-size: 13px; font-weight: 600; color: var(--td-text-1);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ""; width: 3px; height: 13px;
  border-radius: 1px; background: var(--td-brand);
}

/* ---------- 办理时间线 ---------- */
.timeline { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--td-border); }
.timeline li { position: relative; padding: 0 0 16px 12px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -19px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--td-container);
  border: 2px solid var(--td-brand-3);
}
.timeline li:last-child::before {
  background: var(--td-brand);
  border-color: var(--td-brand);
  box-shadow: 0 0 0 3px var(--td-brand-2);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.tl-time { font-size: 12px; color: var(--td-text-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.tl-text { margin: 5px 0 0; font-size: 13px; color: var(--td-text-2); line-height: 1.7; word-break: break-all; }

/* ---------- 语音播放器：TDesign 风格，自建控件 ----------
   原生 audio 的播放键改不了大小。整体按原尺寸约 6 折。 */
.build-tag { margin: 4px 0 0; opacity: .75; font-size: 11px; }

.voice {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--td-brand-2);
  border-radius: var(--td-radius);
  background: var(--td-brand-1);
}
.voice + .voice { margin-top: 6px; }
.voice audio { display: none; }

.voice__btn {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--td-brand); color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 82, 217, .26);
  transition: transform .15s, background .2s;
}
.voice__btn:active { transform: scale(.92); }
.voice__btn svg { width: 15px; height: 15px; fill: currentColor; }
.voice.is-playing .voice__btn { animation: voice-pulse 1.8s ease-in-out infinite; }
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 1px 4px rgba(0, 82, 217, .26); }
  50%      { box-shadow: 0 1px 4px rgba(0, 82, 217, .26), 0 0 0 5px rgba(0, 82, 217, .10); }
}

.voice__body { flex: 1; min-width: 0; }
.voice__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.voice__label { color: var(--td-brand); font-size: 12px; font-weight: 600; }
.voice__time { flex: none; color: var(--td-text-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.voice__bar {
  position: relative;
  height: 6px; margin-top: 5px;
  border-radius: 3px;
  background: var(--td-container);
  cursor: pointer; overflow: hidden;
}
.voice__bar i {
  display: block; height: 100%; width: 0;
  border-radius: 3px; background: var(--td-brand);
  transition: width .15s linear;
}

/* ---------- 附件与页内查看器 ---------- */
.media__imgs button {
  padding: 0; border: 0; background: none; cursor: pointer;
  line-height: 0;
}
.media__video {
  width: 100%; height: 140px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: var(--td-radius);
  background: #000; cursor: pointer;
}
.media__play {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
}
.media__play svg { width: 20px; height: 20px; fill: var(--td-text-1); }

.tl-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tl-att {
  width: 68px; height: 68px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--td-border); border-radius: var(--td-radius-s);
  background: var(--td-bg); overflow: hidden;
  cursor: pointer; text-decoration: none;
}
.tl-att img { width: 100%; height: 100%; object-fit: cover; }
.tl-att--video { background: #000; }
.tl-att--file { flex-direction: column; gap: 3px; background: var(--td-container); }
.tl-att__badge {
  padding: 2px 7px; border-radius: var(--td-radius-s);
  background: var(--td-brand-1); color: var(--td-brand);
  font-size: 11px; font-weight: 600;
}
.tl-att__name {
  max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px; color: var(--td-text-3);
}
.tl-att-audio { width: 100%; height: 34px; margin-top: 8px; }

.viewer {
  /* dialog 默认带 margin:auto 和 max-width/height 约束，不覆盖就会被挤偏、溢出。
     用 fixed + inset:0 + margin:0 强制铺满，并用 dvh 躲开手机地址栏导致的 100vh 超高。 */
  position: fixed;
  inset: 0;
  width: 100%; max-width: 100%;
  height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .92);
  overflow: hidden;
}
@supports (height: 100dvh) {
  .viewer { height: 100dvh; max-height: 100dvh; }
}
.viewer::backdrop { background: rgba(0, 0, 0, .92); }
.viewer[open] { display: flex; flex-direction: column; }

.viewer__stage {
  flex: 1; min-height: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  /* 顶部给关闭键留位（含刘海），左右留边，避免图片贴边 */
  padding: calc(56px + env(safe-area-inset-top)) 12px 8px;
}
/* 按可视区缩放，不按原图尺寸撑开 */
.viewer__stage img,
.viewer__stage video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.viewer__close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  z-index: 2;
  width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff;
  cursor: pointer;
}
.viewer__close:hover { background: rgba(255, 255, 255, .3); }
.viewer__close svg { width: 20px; height: 20px; }

.viewer__bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px max(12px, env(safe-area-inset-left)) calc(12px + var(--safe-b));
  color: rgba(255, 255, 255, .85); font-size: 13px;
}
.viewer__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__open { flex: none; color: #fff; opacity: .85; }
.viewer__open:hover { opacity: 1; }

/* ---------- 状态占位 ---------- */
.state { padding: 48px 20px; text-align: center; color: var(--td-text-3); }
.state__icon { font-size: 32px; opacity: 0.4; }
.state p { margin: 10px 0 0; font-size: 13px; }
.state .primary-btn { margin: 16px auto 0; max-width: 160px; }
.state--error { color: var(--td-error); }

.skeleton {
  background: var(--td-container);
  border: 1px solid var(--td-divider);
  border-radius: var(--td-radius);
  padding: 14px;
}
.sk-line {
  height: 12px; border-radius: var(--td-radius-s);
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
}
.sk-line + .sk-line { margin-top: 9px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.foot { padding: 24px 16px 0; text-align: center; font-size: 12px; color: var(--td-text-3); }
.foot p { margin: 0; }

.loading-inline { font-size: 13px; color: var(--td-text-3); padding: 6px 0; }

/* ==========================================================================
   入口页：定位所在乡镇
   ========================================================================== */
.locate {
  margin: 16px 12px 0;
  padding: 32px 20px 24px;
  background: var(--td-container);
  border: 1px solid var(--td-divider);
  border-radius: var(--td-radius);
  text-align: center;
  color: var(--td-text-1);
}

.locate__pin {
  position: relative;
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  color: var(--td-brand);
}
.locate__pin svg { width: 36px; height: 36px; position: relative; }
.locate__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--td-brand-1);
}
.locate--busy .locate__pulse { animation: pin-pulse 1.6s ease-out infinite; }
.locate--done .locate__pin { color: var(--td-success); }
.locate--done .locate__pulse { background: var(--td-success-1); }
.locate--fail .locate__pin { color: var(--td-error); }
.locate--fail .locate__pulse { background: var(--td-error-1); }

@keyframes pin-pulse {
  0%   { transform: scale(0.85); opacity: 0.9; }
  70%  { transform: scale(1.15); opacity: 0.25; }
  100% { transform: scale(0.85); opacity: 0.9; }
}

.locate__title { margin: 0; font-size: 16px; font-weight: 600; }
.locate--fail .locate__title { color: var(--td-error); }
.locate__hint {
  margin: 8px auto 0; max-width: 300px;
  font-size: 13px; line-height: 1.7; color: var(--td-text-2);
}
.locate__hint b { color: var(--td-text-1); font-weight: 600; }

.locate__actions { margin-top: 20px; }
.locate__actions:empty { margin-top: 0; }
.locate__actions .primary-btn {
  display: inline-block; min-width: 168px;
  padding: 9px 20px; border-radius: var(--td-radius);
  text-decoration: none; text-align: center;
  font-size: 14px; cursor: pointer;
}

/* 命中结果 */
.locate-result {
  margin: 18px auto 0; max-width: 320px;
  padding: 14px 16px;
  background: var(--td-brand-1);
  border: 1px solid var(--td-brand-2);
  border-radius: var(--td-radius);
}
.locate-result__region { margin: 0; font-size: 12px; color: var(--td-text-2); }
.locate-result__town { margin: 5px 0 0; font-size: 20px; font-weight: 600; color: var(--td-brand); }
.locate-result__warn { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--td-warning); }

/* 定位进度 */
.steps {
  list-style: none;
  margin: 20px auto 0; padding: 0;
  max-width: 300px;
  text-align: left;
}
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  font-size: 13px; color: var(--td-text-3);
}
.step__dot {
  flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; line-height: 1;
  background: var(--td-bg); color: var(--td-text-3);
}
.step__text { flex: 1; }
.step__note {
  flex: none; max-width: 44%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: var(--td-text-2);
}
.step--busy { color: var(--td-text-1); }
.step--busy .step__dot {
  background: transparent;
  border: 2px solid var(--td-brand-2);
  border-top-color: var(--td-brand);
  animation: step-spin 0.7s linear infinite;
}
.step--done { color: var(--td-text-1); }
.step--done .step__dot { background: var(--td-brand); color: #fff; }
.step--done .step__note { color: var(--td-brand); font-weight: 500; }
.step--fail { color: var(--td-error); }
.step--fail .step__dot { background: var(--td-error-1); color: var(--td-error); }

@keyframes step-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .locate--busy .locate__pulse,
  .step--busy .step__dot,
  .icon-btn.is-busy svg,
  .sk-line { animation: none; }
}
