:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --ink: #141821;
  --ink-2: #3b4250;
  --muted: #7d8494;
  --line: #ebedf3;
  --primary: #ff5a1f;
  --primary-deep: #e6470c;
  --primary-soft: #fff0e9;
  --green: #0b9868;
  --green-soft: #e8f8f0;
  --amber: #a9670a;
  --amber-soft: #fff5e2;
  --red: #d92d20;
  --red-soft: #fff0ef;
  --blue: #2563eb;
  --blue-soft: #edf3ff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(22, 28, 45, 0.07);
  --shadow-soft: 0 4px 14px rgba(22, 28, 45, 0.05);
  --shell-w: 520px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -8%, #ffe6d9 0, rgba(255, 230, 217, 0) 34%),
    radial-gradient(circle at 92% 4%, #e8edff 0, rgba(232, 237, 255, 0) 30%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: #ffd9c7;
}

.app-shell {
  position: relative;
  max-width: var(--shell-w);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(30, 36, 60, 0.08);
}

@media (min-width: 640px) {
  .app-shell {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    border-radius: 28px;
    overflow: clip;
  }

  .tabbar {
    bottom: 24px;
    border-radius: 0 0 28px 28px;
  }
}

.page {
  padding: 18px 16px 104px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 16px;
  background: rgba(245, 246, 249, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 234, 241, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a3c, #f4460a);
  box-shadow: 0 6px 14px rgba(244, 70, 10, 0.28);
}

.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #ffd9c8;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.points-pill b {
  font-size: 15px;
}

.points-pill span {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.topbar--sub {
  gap: 6px;
}

.topbar--sub h1 {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.topbar__spacer {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
}

.icon-btn:active {
  background: #e9ebf1;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- bottom nav ---------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 40;
  width: 100%;
  max-width: var(--shell-w);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tabbar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
}

.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 0;
  border-radius: 12px;
  color: #8b91a1;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.tabbar svg {
  width: 23px;
  height: 23px;
}

.tabbar a.active {
  color: var(--primary-deep);
  font-weight: 700;
}

.tabbar a.active::before {
  content: '';
  position: absolute;
  top: -7px;
  width: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--primary);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff7a3c, #f4460a);
  color: #fff;
  box-shadow: 0 9px 20px rgba(244, 70, 10, 0.24);
}

.btn-secondary {
  background: #fff;
  border-color: #ffb99b;
  color: var(--primary-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-danger {
  background: #fff;
  border-color: #ffb9b4;
  color: var(--red);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 13px;
}

.btn-xs {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: none;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn .spinner {
  width: 16px;
  height: 16px;
}

/* ---------- primitives ---------- */
.card {
  background: var(--card);
  border: 1px solid rgba(235, 237, 243, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.chip--platform {
  background: #f0f2f7;
  color: #586174;
}

.chip--type {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.pill--ok {
  background: var(--green-soft);
  color: var(--green);
}

.pill--warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill--danger {
  background: var(--red-soft);
  color: var(--red);
}

.pill--info {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill--muted {
  background: #f1f3f7;
  color: #737b8c;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 650;
}

.divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

/* ---------- auth ---------- */
.auth-page {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 22px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 50% -10%, #ffd9c6 0, rgba(255, 217, 198, 0) 46%),
    linear-gradient(180deg, #fff8f4 0%, #f4f5f8 52%);
}

@media (min-width: 640px) {
  .auth-page {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    border-radius: 28px;
    box-shadow: 0 0 80px rgba(30, 36, 60, 0.1);
  }
}

.auth-brand {
  text-align: center;
  margin-bottom: 26px;
}

.auth-logo {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 14px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a3c, #f4460a);
  box-shadow: 0 16px 30px rgba(244, 70, 10, 0.28);
  transform: rotate(-3deg);
}

.auth-brand h1 {
  font-size: 29px;
  font-weight: 860;
  letter-spacing: 0.5px;
}

.auth-brand p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.4px;
}

.auth-card {
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(35, 30, 25, 0.1);
  backdrop-filter: blur(12px);
}

.auth-card form {
  margin-top: 18px;
}

.auth-foot {
  margin-top: 18px;
  text-align: center;
  color: #9aa0ad;
  font-size: 12px;
}

.auth-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7f2;
  color: #9a5b3a;
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-tip svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
}

/* ---------- forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
}

.field > label .hint {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid #e3e6ee;
  border-radius: 13px;
  outline: none;
  background: #fafbfd;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.textarea {
  min-height: 118px;
  padding: 12px 14px;
  line-height: 1.65;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #a9aebb;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #ffa37c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.1);
}

.select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #8b91a1 50%),
    linear-gradient(135deg, #8b91a1 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input {
  padding-right: 54px;
}

.input-suffix {
  position: absolute;
  right: 14px;
  color: var(--muted);
  font-size: 12.5px;
  pointer-events: none;
}

.pwd-toggle {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9299a8;
}

.pwd-toggle svg {
  width: 19px;
  height: 19px;
}

.form-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

.form-error.show {
  display: block;
}

.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-hint svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

/* ---------- page headers & hall ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 16px;
}

.page-head h1 {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.4px;
}

.page-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #ffe0cf;
  border-radius: 13px;
  background: #fff8f3;
  color: #8d4c2a;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-line;
}

.notice svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--primary);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #9aa0ae;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid #e7e9f0;
  border-radius: 14px;
  outline: none;
  background: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.search-box input:focus {
  border-color: #ffb393;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.08);
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e5e8ef;
  border-radius: 999px;
  background: #fff;
  color: #5c6474;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 12px rgba(255, 90, 31, 0.22);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  position: relative;
  padding: 15px 16px 14px;
  border: 1px solid rgba(232, 234, 241, 0.9);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: rise 0.28s ease both;
}

.task-card:active {
  transform: scale(0.992);
}

@media (hover: hover) {
  .task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(25, 31, 50, 0.09);
  }
}

.task-card__top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-card__time {
  margin-left: auto;
  color: #98a0af;
  font-size: 11.5px;
  font-weight: 550;
}

.task-card__time.urgent {
  color: var(--red);
}

.task-card__title {
  margin-top: 10px;
  font-size: 16.5px;
  font-weight: 720;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.reward {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--primary-deep);
}

.reward strong {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.5px;
  line-height: 1;
}

.reward span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.mini-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-cta--primary {
  background: linear-gradient(135deg, #ff7a3c, #f4460a);
  color: #fff;
  box-shadow: 0 6px 13px rgba(244, 70, 10, 0.22);
}

.mini-cta--soft {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.mini-cta--muted {
  background: #f2f4f8;
  color: #7a8293;
}

/* ---------- empty / error / skeleton ---------- */
.empty {
  padding: 46px 20px 40px;
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  border-radius: 24px;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty__icon svg {
  width: 33px;
  height: 33px;
}

.empty h3 {
  font-size: 16px;
  font-weight: 750;
}

.empty p {
  margin: 7px auto 18px;
  max-width: 290px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.error-card {
  margin: 20px 0;
  padding: 26px 20px;
  text-align: center;
  border: 1px solid #ffe0dc;
  border-radius: 18px;
  background: #fffafa;
}

.error-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
}

.error-card h3 {
  font-size: 15.5px;
  font-weight: 750;
}

.error-card p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  word-break: break-word;
}

.skeleton-card {
  height: 142px;
  border-radius: 18px;
  background: linear-gradient(100deg, #f0f1f5 30%, #f8f9fb 50%, #f0f1f5 70%);
  background-size: 220% 100%;
  animation: shimmer 1.25s infinite linear;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(100deg, #f0f1f5 30%, #f8f9fb 50%, #f0f1f5 70%);
  background-size: 220% 100%;
  animation: shimmer 1.25s infinite linear;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 90, 31, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 38px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- publish ---------- */
.form-card {
  padding: 18px 16px 6px;
}

.form-card .field:last-child {
  margin-bottom: 12px;
}

.cost-card {
  margin: 4px 0 16px;
  padding: 14px;
  border: 1px solid #ffe1d2;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff9f5, #fff6f0);
}

.cost-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: #77655c;
  font-size: 12.5px;
}

.cost-card__row b {
  color: #4b3a33;
  font-weight: 650;
}

.cost-card__row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed #ffd2bd;
  color: #6d4a38;
  font-size: 13px;
}

.cost-card__row--total b {
  color: var(--primary-deep);
  font-size: 18px;
  font-weight: 850;
}

.balance-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.balance-line b {
  color: var(--ink);
  font-size: 15px;
}

/* ---------- segmented ---------- */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #ebeef4;
}

.segmented button {
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 650;
}

.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(25, 31, 50, 0.08);
}

/* ---------- mine ---------- */
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.mini-card {
  padding: 14px 15px;
  border: 1px solid rgba(232, 234, 241, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.mini-card__top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-card__top .pill {
  margin-left: auto;
}

.mini-card h3 {
  margin-top: 9px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-card__meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mini-card__note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--red-soft);
  color: #b33a30;
  font-size: 12px;
  line-height: 1.5;
}

.mini-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f2f3f7;
}

.mini-card__foot .muted {
  font-size: 11.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- me ---------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(232, 234, 241, 0.9);
  box-shadow: var(--shadow-soft);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9868, #f0521a);
  text-transform: uppercase;
}

.avatar--lg {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  font-size: 22px;
}

.avatar--sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 14px;
}

.avatar--c1 {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.avatar--c2 {
  background: linear-gradient(135deg, #34d399, #059669);
}
.avatar--c3 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.avatar--c4 {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}
.avatar--c5 {
  background: linear-gradient(135deg, #f472b6, #db2777);
}

.profile-card__info {
  min-width: 0;
}

.profile-card__info h2 {
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-card__info p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.balance-card {
  position: relative;
  overflow: hidden;
  margin-top: 13px;
  padding: 20px 18px;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a3c 0%, #f0440a 58%, #d93a06 100%);
  box-shadow: 0 16px 34px rgba(240, 68, 10, 0.24);
}

.balance-card::after {
  content: '';
  position: absolute;
  top: -34px;
  right: -24px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.balance-card::before {
  content: '';
  position: absolute;
  right: 36px;
  bottom: -54px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.balance-card__label {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  font-weight: 550;
}

.balance-card__num {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 40px;
  font-weight: 860;
  line-height: 1.05;
  letter-spacing: -1px;
}

.balance-card__num small {
  margin-left: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.8;
}

.balance-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
}

.balance-card__ops {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.balance-card__ops a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.menu-card {
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid rgba(232, 234, 241, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 15px;
  border: 0;
  border-bottom: 1px solid #f3f4f8;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 550;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row:active {
  background: #fafbfd;
}

.menu-row__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f3f5f9;
  color: #596273;
}

.menu-row__icon svg {
  width: 17px;
  height: 17px;
}

.menu-row__text {
  flex: 1;
}

.menu-row__arrow {
  color: #b4bac6;
}

.menu-row--danger {
  color: var(--red);
}

.menu-row--danger .menu-row__icon {
  background: var(--red-soft);
  color: var(--red);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 2px 11px;
}

.section-title h2 {
  font-size: 16px;
  font-weight: 800;
}

.section-title span {
  color: var(--muted);
  font-size: 11.5px;
}

.ledger-card {
  overflow: hidden;
  border: 1px solid rgba(232, 234, 241, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ledger-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-bottom: 1px solid #f3f4f8;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.ledger-row__icon.plus {
  background: var(--green-soft);
  color: var(--green);
}

.ledger-row__icon.minus {
  background: #f0f2f7;
  color: #697284;
}

.ledger-row__body {
  flex: 1;
  min-width: 0;
}

.ledger-row__body b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.ledger-row__body p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ledger-row__amount {
  flex: 0 0 auto;
  text-align: right;
}

.ledger-row__amount b {
  font-size: 15px;
  font-weight: 750;
}

.ledger-row__amount b.plus {
  color: var(--green);
}

.ledger-row__amount b.minus {
  color: var(--ink-2);
}

.ledger-row__amount span {
  display: block;
  margin-top: 1px;
  color: #a2a8b5;
  font-size: 10.5px;
}

/* ---------- task detail ---------- */
.detail-hero {
  padding: 17px 16px;
  border-radius: 21px;
  background: #fff;
  border: 1px solid rgba(232, 234, 241, 0.9);
  box-shadow: var(--shadow-soft);
}

.detail-hero__chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-hero__status {
  margin-left: auto;
}

.detail-hero h1 {
  margin-top: 11px;
  font-size: 21px;
  font-weight: 820;
  line-height: 1.38;
  letter-spacing: -0.2px;
}

.detail-reward {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 13px;
  color: var(--primary-deep);
}

.detail-reward strong {
  font-size: 34px;
  font-weight: 860;
  letter-spacing: -1px;
  line-height: 1;
}

.detail-reward span {
  color: var(--muted);
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f2f3f7;
}

.detail-grid div {
  min-width: 0;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.detail-grid b {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.progress-wrap {
  margin-top: 15px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f1f5;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff9a62, #f4460a);
  transition: width 0.3s ease;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.detail-card {
  margin-top: 13px;
  padding: 16px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid rgba(232, 234, 241, 0.9);
  box-shadow: var(--shadow-soft);
}

.detail-card h2 {
  font-size: 15px;
  font-weight: 780;
}

.detail-card__hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.requirement {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-line;
  word-break: break-word;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #ffc7ae;
  border-radius: 13px;
  background: #fff;
  color: var(--primary-deep);
  font-size: 13.5px;
  font-weight: 650;
}

.link-button span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-button svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  padding: 13px 14px;
  border-radius: 15px;
  font-size: 12.5px;
  line-height: 1.6;
}

.status-banner svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
}

.status-banner b {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 750;
}

.status-banner--info {
  background: var(--blue-soft);
  color: #33558f;
}

.status-banner--warn {
  background: var(--amber-soft);
  color: #805008;
}

.status-banner--ok {
  background: var(--green-soft);
  color: #087350;
}

.status-banner--danger {
  background: var(--red-soft);
  color: #a83126;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 138px;
  margin-top: 12px;
  padding: 18px;
  border: 1.5px dashed #ffc3a8;
  border-radius: 15px;
  background: #fff8f4;
  color: #b25a2b;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.upload-box svg {
  width: 28px;
  height: 28px;
}

.upload-box b {
  font-size: 13.5px;
  font-weight: 700;
}

.upload-box span {
  color: #9b7b6b;
  font-size: 11.5px;
  line-height: 1.5;
}

.upload-box.has-image {
  padding: 0;
  border-style: solid;
  border-color: #eceef3;
  background: #f7f8fb;
}

.upload-preview {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 14px;
}

.upload-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.proof-thumb {
  width: 74px;
  height: 74px;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  background: #f6f7fa;
  object-fit: cover;
  cursor: zoom-in;
}

.proof-large {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 14px;
  background: #f4f5f8;
}

.claim-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.claim {
  padding: 12px;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  background: #fcfcfe;
}

.claim__head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.claim__who {
  flex: 1;
  min-width: 0;
}

.claim__who b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.claim__who span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.claim__body {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.claim__body p {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}

.claim__note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.55;
}

.claim__note--danger {
  background: var(--red-soft);
  color: #a83126;
}

.claim__note--ok {
  background: var(--green-soft);
  color: #087350;
}

.claim__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.claim__actions .btn {
  flex: 1;
}

.claim__empty {
  margin-top: 10px;
  padding: 18px 12px;
  border-radius: 12px;
  background: #f8f9fb;
  color: var(--muted);
  text-align: center;
  font-size: 12.5px;
}

.owner-tools {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
}

/* ---------- admin ---------- */
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #ebeef4;
  margin-bottom: 16px;
}

.admin-tabs button {
  height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 650;
}

.admin-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(25, 31, 50, 0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.stat-card {
  padding: 14px;
  border: 1px solid rgba(232, 234, 241, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.stat-card b {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.stat-card small {
  display: block;
  margin-top: 3px;
  color: #a0a6b3;
  font-size: 10.5px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-row {
  padding: 13px 14px;
  border: 1px solid rgba(232, 234, 241, 0.9);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-row__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-row__who {
  flex: 1;
  min-width: 0;
}

.admin-row__who b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-row__who span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.admin-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
}

.admin-row__meta b {
  color: var(--ink-2);
  font-weight: 650;
}

.admin-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f2f3f7;
}

.admin-row__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-row__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.settings-card {
  padding: 18px 16px 8px;
}

.point-picked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(232, 234, 241, 0.9);
  border-radius: 14px;
  background: #f8f9fc;
}

.point-picked__who {
  flex: 1;
  min-width: 0;
}

.point-picked__who b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.point-picked__who span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.point-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.5;
}

/* ---------- sheet ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(14, 18, 28, 0.52);
  animation: fadeIn 0.18s ease both;
}

.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.18);
  animation: slideUp 0.24s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@media (min-width: 640px) {
  .sheet-mask {
    align-items: center;
    padding: 24px;
  }

  .sheet {
    border-radius: 22px;
    padding-bottom: 20px;
  }
}

.sheet__handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: #e3e6ec;
}

.sheet h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.sheet__desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.sheet__body {
  margin-top: 14px;
}

.sheet__body p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}

.sheet__body .field:last-child {
  margin-bottom: 0;
}

.sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.sheet__actions .btn {
  flex: 1;
}

.sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #7a8293;
}

.sheet {
  position: relative;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
}

.info-list li {
  margin-bottom: 4px;
}

/* ---------- toast ---------- */
.toast-root {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 78px);
  left: 50%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 440px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 13px;
  background: rgba(23, 28, 40, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.toast--success svg {
  color: #6ee7b7;
}

.toast--error svg {
  color: #fda4a4;
}

.toast--info svg {
  color: #93c5fd;
}

/* ---------- utility ---------- */
.stack-8 > * + * {
  margin-top: 8px;
}

.stack-12 > * + * {
  margin-top: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spacer {
  flex: 1;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none !important;
}

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

@keyframes shimmer {
  to {
    background-position-x: -220%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- detail bar & additions ---------- */
.page--no-nav {
  padding-bottom: 28px;
}

.cta-spacer {
  height: 84px;
}

.mini-reward {
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 750;
}

.mini-card__foot .mini-reward {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-box.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.detail-hero__status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell-w);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cta-bar .btn {
  flex: 0 0 auto;
  min-width: 126px;
  height: 44px;
}

.cta-bar__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-bar__info b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.cta-bar__info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cta-bar--plain {
  justify-content: space-between;
}

.cta-bar__reason {
  flex: 1;
  color: var(--muted);
  font-size: 12.5px;
}

.cta-bar--plain .btn {
  min-width: 0;
}

@media (min-width: 640px) {
  .cta-bar {
    bottom: 24px;
    border-radius: 0 0 28px 28px;
  }
  .cta-spacer {
    height: 96px;
  }
}

/* ---------- boot ---------- */
.boot-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 70vh;
  color: var(--muted);
  font-size: 13.5px;
}

.boot-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #ffd7c4;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.boot-error {
  padding: 24px 16px;
}

.boot-error__hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- compact variants ---------- */
.skeleton-card--flat {
  height: 64px;
}

.empty--compact {
  padding: 26px 16px;
}

.empty--compact .empty__icon {
  width: 46px;
  height: 46px;
}

.empty--compact h3 {
  font-size: 15px;
}

.empty--compact p {
  font-size: 12.5px;
}

.claim .proof-thumb {
  flex: 0 0 auto;
}

/* ---------- responsive: tablet & desktop ---------- */
/* 平板：加宽卡片，任务列表两列 */
@media (min-width: 720px) and (max-width: 999.98px) {
  :root {
    --shell-w: 720px;
  }

  .page {
    padding: 22px 24px 118px;
  }

  .task-list,
  .mini-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .task-list .task-card {
    display: flex;
    flex-direction: column;
  }

  .task-list .task-card__foot {
    margin-top: auto;
    padding-top: 13px;
  }

  .task-list > .empty,
  .task-list > .error-card,
  .mini-list > .empty,
  .mini-list > .error-card {
    grid-column: 1 / -1;
  }

  .sheet {
    max-width: 580px;
  }
}

/* 详情页和管理后台在手机上不占底部导航的位置 */
@media (max-width: 999.98px) {
  .app-shell--detail .tabbar,
  .app-shell--admin .tabbar {
    display: none;
  }

  .app-shell--detail .page,
  .app-shell--admin .page {
    padding-bottom: 28px;
  }
}

/* 电脑：左侧导航 + 宽内容区 */
@media (min-width: 1000px) {
  :root {
    --shell-w: 1180px;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .app-shell > .topbar {
    grid-column: 2;
    grid-row: 1;
    height: 68px;
    padding: 0 32px;
  }

  .app-shell > .page {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 26px 32px 56px;
  }

  .app-shell > .page--detail,
  .app-shell > .page--publish,
  .app-shell > .page--me,
  .app-shell > .page--admin {
    max-width: 840px;
  }

  .app-shell > .tabbar {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: static;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    padding: 0;
    transform: none;
    background: #fff;
    border-top: 0;
    border-right: 1px solid var(--line);
    border-radius: 28px 0 0 28px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tabbar__inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 16px;
  }

  .tabbar a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    color: #6b7280;
    font-size: 14.5px;
    font-weight: 650;
  }

  .tabbar a.active {
    background: var(--primary-soft);
  }

  .tabbar a.active::before {
    display: none;
  }

  .task-list,
  .mini-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
  }

  .task-list .task-card {
    display: flex;
    flex-direction: column;
  }

  .task-list .task-card__foot {
    margin-top: auto;
    padding-top: 13px;
  }

  .task-list > .empty,
  .task-list > .error-card,
  .mini-list > .empty,
  .mini-list > .error-card {
    grid-column: 1 / -1;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page--admin .detail-card .btn-block {
    max-width: 260px;
  }

  .sheet {
    max-width: 580px;
  }

  .toast-root {
    left: calc(50% + 124px);
    bottom: 32px;
  }

  .cta-bar {
    position: sticky;
    left: auto;
    bottom: 20px;
    width: 100%;
    max-width: none;
    margin-top: 18px;
    padding: 12px 16px;
    transform: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(22, 28, 45, 0.12);
  }

  .cta-spacer {
    display: none;
  }
}

@media (min-width: 1000px) and (hover: hover) {
  .tabbar a:hover {
    background: #f5f6fa;
    color: var(--ink-2);
  }

  .tabbar a.active:hover {
    background: var(--primary-soft);
    color: var(--primary-deep);
  }
}
