:root {
  --th-bg: #f4f6f8;
  --th-card: #fff;
  --th-text: #1a2332;
  --th-muted: #5b6b7c;
  --th-line: #e2e8ef;
  --th-accent: #0f6e56;
  --th-accent-2: #0b5340;
  --th-warn: #b45309;
  --th-danger: #b91c1c;
  --th-ok: #047857;
  --th-radius: 8px;
  --th-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .04);
  --th-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --th-st-open: #d70617;
  --th-st-open-bg: #fff1f2;
  --th-st-taken: #1d4ed8;
  --th-st-taken-bg: #e8eefc;
  --th-st-submitted: #7c3aed;
  --th-st-submitted-bg: #f5f3ff;
  --th-st-done: #0f766e;
  --th-st-done-bg: #e6f7f3;
  --th-st-expired: #9f1239;
  --th-st-expired-bg: #fff1f2;
}
* { box-sizing: border-box; }
body.th-body {
  margin: 0;
  font-family: var(--th-font);
  color: var(--th-text);
  background:
    radial-gradient(1200px 400px at 10% -10%, #d8efe7 0%, transparent 55%),
    radial-gradient(900px 360px at 100% 0%, #e8eef8 0%, transparent 50%),
    var(--th-bg);
  min-height: 100vh;
}
.th-wrap { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.th-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 246, 248, .88);
  border-bottom: 1px solid var(--th-line);
}
.th-header-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 48px;
}
.th-brand {
  font-weight: 700; letter-spacing: .02em;
  color: var(--th-accent); text-decoration: none; font-size: 1.05rem;
}
.th-nav { display: flex; gap: 4px; flex: 1; }
.th-nav a {
  position: relative;
  text-decoration: none; color: var(--th-muted);
  padding: 5px 10px; border-radius: 999px; font-size: .86rem;
}
.th-nav a:hover, .th-nav a.active {
  color: var(--th-accent-2); background: #dff3eb;
}
.th-nav-badge {
  position: absolute; top: -4px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: #dc2626; color: #fff;
  font-size: .64rem; font-weight: 700; line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(244, 246, 248, .95);
  pointer-events: none;
}
.th-user { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--th-muted); }
.th-user a { color: var(--th-accent); text-decoration: none; }
.th-bal { background: #e8f7f1; color: var(--th-ok); padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: .8rem; }
.th-main { padding: 16px 0 32px; }
/* —— 站点落地页：专业任务平台气质 —— */
body.th-landing {
  margin: 0;
  min-height: 100vh;
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #10231c;
  background: #07140f;
  overflow-x: hidden;
  position: relative;
}
.th-landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 18%, rgba(46, 168, 128, .38) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 12%, rgba(201, 156, 68, .16) 0%, transparent 52%),
    radial-gradient(ellipse 80% 50% at 70% 95%, rgba(8, 48, 38, .95) 0%, transparent 60%),
    linear-gradient(152deg, #050e0b 0%, #0c221a 48%, #123028 100%);
}
.th-landing-mesh {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(125, 207, 176, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 207, 176, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  animation: thLandingMesh 18s linear infinite;
  pointer-events: none;
}
@keyframes thLandingMesh {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-56px, -56px, 0); }
}
.th-landing-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}
.th-landing-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 0;
}
.th-landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f4fbf7;
}
.th-landing-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2f9f78, #176b52);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(15, 110, 86, .35);
}
.th-landing-logo-text {
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -.02em;
}
.th-landing-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .86rem;
}
.th-landing-user { color: rgba(244, 251, 247, .7); }
.th-landing-link {
  color: rgba(244, 251, 247, .78);
  text-decoration: none;
  transition: color .2s ease;
}
.th-landing-link:hover { color: #fff; }
.th-landing-link-strong {
  color: #e7f8ef;
  font-weight: 650;
  padding: 7px 14px;
  border: 1px solid rgba(231, 248, 239, .32);
  border-radius: 999px;
}
.th-landing-link-strong:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.th-landing-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: 36px 0 56px;
}
.th-landing-copy { max-width: 560px; }
.th-landing-brand {
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7dcfb0;
  opacity: 0;
  animation: thLandingIn .65s ease .05s forwards;
}
.th-landing-brand span {
  margin-left: 8px;
  letter-spacing: .12em;
  color: rgba(232, 244, 238, .45);
  font-weight: 600;
}
.th-landing-title {
  margin: 0 0 16px;
  max-width: 12em;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1.28;
  color: #f7fcf9;
  opacity: 0;
  animation: thLandingIn .7s ease .12s forwards;
}
.th-landing-intro {
  margin: 0 0 28px;
  max-width: 32em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 244, 238, .76);
  opacity: 0;
  animation: thLandingIn .7s ease .2s forwards;
}
.th-landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: thLandingIn .75s ease .28s forwards;
}
.th-landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 680;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.th-landing-btn.primary {
  background: #e9f7f0;
  color: #0a271e;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.th-landing-btn.primary:hover {
  transform: translateY(-2px);
  background: #fff;
}
.th-landing-btn.ghost {
  background: transparent;
  color: #e9f7f0;
  border: 1px solid rgba(233, 247, 240, .34);
}
.th-landing-btn.ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(233, 247, 240, .55);
}
.th-landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  opacity: 0;
  animation: thLandingIn .75s ease .34s forwards;
}
.th-landing-trust li {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 650;
  color: rgba(232, 244, 238, .78);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(232, 244, 238, .12);
  letter-spacing: .02em;
}
.th-landing-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: .9rem;
  color: rgba(232, 244, 238, .55);
  opacity: 0;
  animation: thLandingIn .75s ease .4s forwards;
}
.th-landing-stat em {
  font-style: normal;
  font-weight: 750;
  color: #9be7c8;
}
.th-landing-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf9a;
  box-shadow: 0 0 0 0 rgba(62, 207, 154, .55);
  animation: thLandingPulse 1.8s ease-out infinite;
}
@keyframes thLandingPulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 154, .5); }
  70% { box-shadow: 0 0 0 10px rgba(62, 207, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 154, 0); }
}
.th-landing-board {
  opacity: 0;
  animation: thLandingIn .85s ease .25s forwards;
}
.th-landing-board-shell {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(232, 244, 238, .14);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  transform-origin: center center;
}
.th-landing-board-head {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.th-landing-board-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232, 244, 238, .28);
}
.th-landing-rail {
  display: grid;
  grid-template-columns: 52px 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}
.th-landing-rail:last-child { margin-bottom: 0; }
.th-landing-rail-label {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(232, 244, 238, .42);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}
.th-landing-chip {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(8, 28, 22, .55);
  border: 1px solid rgba(232, 244, 238, .1);
  opacity: 0;
  animation: thLandingChip .7s ease forwards;
}
.th-landing-chip.accent {
  background: linear-gradient(160deg, rgba(47, 159, 120, .35), rgba(8, 28, 22, .55));
  border-color: rgba(125, 207, 176, .35);
}
.th-landing-chip b {
  display: block;
  margin-bottom: 4px;
  font-size: .9rem;
  font-weight: 700;
  color: #eef8f3;
}
.th-landing-chip i {
  font-style: normal;
  font-size: .78rem;
  color: rgba(232, 244, 238, .55);
}
.th-delay-1 { animation-delay: .35s; }
.th-delay-2 { animation-delay: .42s; }
.th-delay-3 { animation-delay: .5s; }
.th-delay-4 { animation-delay: .58s; }
.th-delay-5 { animation-delay: .66s; }
.th-delay-6 { animation-delay: .74s; }
@keyframes thLandingChip {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.th-landing-why {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(232, 244, 238, .08);
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .32) 100%);
}
.th-landing-why-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 36px;
}
.th-landing-why-kicker {
  margin: 0 0 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7dcfb0;
}
.th-landing-why-title {
  margin: 0 0 28px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -.02em;
  color: #f4fbf7;
}
.th-landing-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.th-landing-pillar {
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(232, 244, 238, .1);
}
.th-landing-step {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .14em;
  color: #7dcfb0;
}
.th-landing-pillar h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 750;
  color: #e9f7f0;
}
.th-landing-pillar p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(232, 244, 238, .62);
}
.th-landing-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(47, 159, 120, .22), rgba(255, 255, 255, .04));
  border: 1px solid rgba(125, 207, 176, .28);
}
.th-landing-close p {
  margin: 0;
  font-size: .98rem;
  font-weight: 650;
  color: #eef8f3;
}
.th-landing-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 22px;
  font-size: .76rem;
  color: rgba(232, 244, 238, .38);
  letter-spacing: .06em;
}
.th-landing-foot-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(232, 244, 238, .35);
}
@keyframes thLandingIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 960px) {
  .th-landing-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 28px 0 40px;
  }
  .th-landing-board-shell {
    transform: none;
    max-width: 520px;
  }
  .th-landing-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .th-landing-top,
  .th-landing-stage,
  .th-landing-why-inner,
  .th-landing-foot { width: calc(100% - 28px); }
  .th-landing-top { padding-top: 16px; }
  .th-landing-why-inner { padding: 40px 0 28px; }
  .th-landing-rail { grid-template-columns: 36px 1fr; }
  .th-landing-rail .th-landing-chip:last-child { grid-column: 2; }
  .th-landing-btn { flex: 1 1 auto; }
  .th-landing-close { flex-direction: column; align-items: stretch; }
}
.th-page-login .th-main,
.th-page-register .th-main { max-width: 480px; margin-left: auto; margin-right: auto; }
.th-auth-card {
  background: var(--th-card);
  border: 1px solid var(--th-line);
  border-radius: 12px;
  box-shadow: var(--th-shadow);
  padding: 22px 20px 18px;
}
.th-auth-form .row { margin-bottom: 12px; }
.th-auth-form .row > label:not(.th-check) {
  display: block;
  margin-bottom: 6px;
  font-size: .86rem;
  color: var(--th-muted);
}
.th-auth-form input[type="text"],
.th-auth-form input[type="password"],
.th-auth-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--th-line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.th-auth-form input[type="text"]:focus,
.th-auth-form input[type="password"]:focus,
.th-auth-form input[type="email"]:focus {
  outline: 2px solid rgba(15, 110, 86, .25);
  border-color: var(--th-accent);
}
.th-auth-remember { margin-top: 2px; margin-bottom: 4px; }
.th-auth-form label.th-check,
.th-form label.th-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: auto;
  max-width: 100%;
  font-size: .88rem;
  font-weight: 500;
  color: var(--th-text);
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
}
.th-auth-form label.th-check input[type="checkbox"],
.th-form label.th-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--th-accent);
  cursor: pointer;
}
.th-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.th-auth-form .th-captcha-row input[type="text"] {
  flex: 1;
  min-width: 0;
}
.th-captcha-img {
  flex: 0 0 auto;
  width: 120px;
  height: 40px;
  border: 1px solid var(--th-line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  object-fit: cover;
}
.th-auth-actions { margin-top: 16px; }
.th-auth-actions .th-btn { width: 100%; padding: 11px 16px; }
.th-auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: .88rem;
  color: var(--th-muted);
}
.th-auth-switch a { color: var(--th-accent); text-decoration: none; font-weight: 600; }
.th-auth-switch a:hover { text-decoration: underline; }
.th-marquee {
  border-bottom: 1px solid var(--th-line);
  background: linear-gradient(180deg, #f0fdf8 0%, #eef7f3 100%);
}
.th-marquee-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 0;
}
.th-marquee-label {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.3;
}
.th-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.th-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: th-marquee-scroll 28s linear infinite;
  will-change: transform;
}
.th-marquee-item {
  position: relative;
  font-size: .86rem;
  color: #0f172a;
  font-weight: 500;
  padding-right: 28px;
}
.th-marquee-item::after {
  content: '·';
  position: absolute;
  right: 8px;
  color: #94a3b8;
  font-weight: 700;
}
.th-marquee:hover .th-marquee-track {
  animation-play-state: paused;
}
@keyframes th-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .th-marquee-track { animation: none; }
  .th-marquee-viewport { overflow-x: auto; }
}
.th-h1 { font-size: 1.25rem; margin: 0 0 12px; font-weight: 700; }
.th-card {
  background: var(--th-card); border: 1px solid var(--th-line);
  border-radius: 8px; box-shadow: var(--th-shadow);
  padding: 12px 14px; margin-bottom: 10px;
}
.th-filters {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px; padding: 10px 12px;
  background: var(--th-card); border: 1px solid var(--th-line); border-radius: 8px;
}
.th-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.th-filter-label {
  flex: 0 0 auto; min-width: 2.5em;
  font-size: .78rem; color: var(--th-muted); font-weight: 500;
}
.th-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.th-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--th-line);
  background: #fff; color: var(--th-muted); font-size: .78rem; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.th-pill:hover { border-color: #9ad7c3; color: var(--th-accent-2); background: #f7fcfa; }
.th-pill.is-on {
  background: var(--th-accent); border-color: var(--th-accent); color: #fff; font-weight: 600;
}
.th-pill.is-on:hover { background: var(--th-accent-2); border-color: var(--th-accent-2); color: #fff; }
.th-filter-search {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end;
  padding-top: 2px; border-top: 1px dashed var(--th-line); margin-top: 2px;
}
.th-filters label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--th-muted); }
/* 前台表单控件边框/圆角统一 */
body.th-body .th-filters input,
body.th-body .th-filters select,
body.th-body .th-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
body.th-body .th-form select,
body.th-body .th-form textarea,
body.th-body .th-account-field-ctrl input {
  border: 1px solid var(--th-line) !important;
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 40px;
  font: inherit;
  font-size: .92rem;
  color: var(--th-text);
  background: #fff;
  box-shadow: none;
  outline: none;
  transition: border-color .15s, background .15s;
  min-width: 110px;
}
body.th-body .th-form textarea {
  min-height: 120px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  background: #fff;
}
body.th-body .th-filters input:hover,
body.th-body .th-filters select:hover,
body.th-body .th-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):hover,
body.th-body .th-form select:hover,
body.th-body .th-form textarea:hover,
body.th-body .th-account-field-ctrl input:hover {
  border-color: #9ad7c3 !important;
  background: #fff;
  box-shadow: none;
}
body.th-body .th-filters input:focus,
body.th-body .th-filters select:focus,
body.th-body .th-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
body.th-body .th-form select:focus,
body.th-body .th-form textarea:focus,
body.th-body .th-account-field-ctrl input:focus {
  border-color: #0f6e56 !important;
  box-shadow: none !important;
  outline: none;
  background: #fff;
}
body.th-body .th-form input[type="number"] {
  -moz-appearance: textfield;
}
body.th-body .th-form input[type="number"]::-webkit-outer-spin-button,
body.th-body .th-form input[type="number"]::-webkit-inner-spin-button {
  opacity: .45;
  margin: 0;
}
.th-select-wrap {
  position: relative;
  width: 100%;
}
.th-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.th-form select.th-select,
.th-form .th-select-wrap select,
select.th-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding-right: 36px;
  font-weight: 550;
  line-height: 1.35;
  cursor: pointer;
}
.th-form select.th-select option,
select.th-select option {
  padding: 8px 10px;
  font-weight: 500;
}
.th-filters .th-filter-kw { flex: 1; min-width: 160px; }
.th-filters .th-filter-kw input { width: 100%; min-width: 0; }
.th-filters .th-filter-submit[hidden] { display: none !important; }
.th-filter-row-types {
  align-items: flex-start;
}
.th-filter-type-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.th-filter-group-pills {
  align-items: center;
}
.th-filter-group-btn {
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.th-filter-sub-pills {
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.th-filter-sub-pills[hidden] {
  display: none !important;
}
.th-type-pair {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-width: 100%;
}
.th-group-label {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.th-skill-group {
  width: 100%;
  margin-bottom: 10px;
}
.th-skill-group-name {
  font-size: .8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.th-skill-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.th-form textarea { min-height: 120px; width: 100%; resize: vertical; }
.th-form .row { margin-bottom: 0; }
.th-form label { display: block; font-size: .84rem; color: var(--th-muted); margin-bottom: 6px; font-weight: 500; }
.th-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.th-form select,
.th-form textarea { width: 100%; min-width: 0; }
.th-publish-card { max-width: none; padding: 16px 18px 18px; }
.th-balance-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: -2px 0 12px; padding: 8px 12px; border-radius: 6px;
  background: #f3faf7; border: 1px solid #d8eee4; font-size: .82rem; color: var(--th-muted);
}
.th-balance-bar b { color: var(--th-ok); font-weight: 700; }
.th-balance-hint { margin-left: auto; font-size: .8rem; opacity: .85; }
.th-publish-form { display: flex; flex-direction: column; gap: 12px; }
.th-form-grid { display: grid; gap: 12px; }
.th-form-grid-2 { grid-template-columns: 1fr 1fr; }
.th-form-grid-3 { grid-template-columns: 1fr 1fr minmax(120px, .9fr); align-items: end; }
.th-form-actions { padding-top: 4px; }
.th-publish-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 8px;
}
/* 覆盖 .th-form label / input 的 block、width:100%，避免开关叠字 */
.th-form label.th-switch,
.th-form .th-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: none;
  margin: 0;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.35;
}
.th-form .th-switch input[type="checkbox"],
.th-form label.th-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  pointer-events: none;
}
.th-form .th-switch .th-switch-ui {
  display: inline-block;
  box-sizing: border-box;
  width: 40px;
  height: 22px;
  flex: 0 0 40px;
  margin: 0;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background .2s ease;
}
.th-form .th-switch .th-switch-ui::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform .2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
.th-form .th-switch input:checked + .th-switch-ui { background: #0f6e56; }
.th-form .th-switch input:checked + .th-switch-ui::after { transform: translateX(18px); }
.th-form .th-switch input:focus-visible + .th-switch-ui {
  outline: 2px solid rgba(15, 110, 86, .35);
  outline-offset: 2px;
}
.th-form .th-switch .th-switch-text {
  display: inline;
  margin: 0;
  color: #334155;
  white-space: nowrap;
}
.th-lock-panel {
  margin: 4px 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 110, 86, .18);
  border-radius: 10px;
  background: rgba(15, 110, 86, .04);
}
.th-lock-panel[hidden] { display: none !important; }
.th-lock-panel-title {
  font-size: .9rem;
  font-weight: 600;
  color: #0f6e56;
  margin: 0 0 10px;
}
.th-lock-fee-grid { margin: 0; }
.th-lock-panel .th-field-tip {
  margin-top: 6px;
  font-size: .78rem;
  color: var(--th-muted, #64748b);
}
.th-form .th-refund-row .th-switch {
  margin-top: 2px;
}
.th-btn-lg { min-width: 180px; padding: 11px 22px; font-weight: 600; }
.th-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; padding: 7px 12px;
  background: var(--th-accent); color: #fff; font: inherit; font-size: .88rem; cursor: pointer;
  text-decoration: none;
}
.th-btn:hover { background: var(--th-accent-2); }
.th-btn.ghost { background: #eef2f6; color: var(--th-text); }
.th-btn.warn { background: var(--th-warn); }
.th-btn.danger { background: var(--th-danger); }
.th-btn.secondary { background: #334155; color: #fff; }
.th-btn.secondary:hover { background: #1e293b; }
.th-btn + .th-btn { margin-left: 8px; }
.th-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.th-item-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 56px;
  flex-shrink: 0;
  align-self: start;
  margin-top: 1px;
}
.th-item-avatar {
  position: relative;
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.th-item-avatar img {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; object-position: center;
  display: block;
  background: #e8efeb;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}
.th-new-badge {
  position: absolute;
  top: -5px; left: -6px;
  z-index: 2;
  min-width: 20px; height: 16px; padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: .62rem; font-weight: 800; line-height: 16px;
  letter-spacing: .04em;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.th-item {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 8px 16px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--th-line); border-radius: 10px;
  background: var(--th-card); margin-bottom: 0; text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
.th-item.th-item-plain {
  grid-template-columns: minmax(0, 1fr) auto;
}
a.th-item:hover { border-color: #9ad7c3; background: #f7fcfa; }
.th-item-main { min-width: 0; overflow: hidden; }
.th-item h3 {
  margin: 0 0 4px; font-size: .95rem; font-weight: 600; line-height: 1.4;
  overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.th-item-desc {
  margin: 0 0 6px;
  font-size: .8rem;
  line-height: 1.45;
  color: #64748b;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.th-item-pub {
  display: block;
  max-width: 56px;
  color: #64748b;
  font-size: .68rem;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.th-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .76rem; color: var(--th-muted); align-items: center; }
.th-meta-dur, .th-meta-deadline, .th-meta-remain {
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: 999px;
  font-size: .72rem; line-height: 1.4;
}
.th-meta-dur {
  background: #eef6f3; color: var(--th-accent-2);
}
.th-meta-deadline {
  background: #f3f4f6; color: #475569;
}
.th-meta-remain {
  background: #fff7ed; color: #c2410c; font-weight: 600;
}
.th-meta-remain .th-meta-num {
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 1px;
  letter-spacing: -.02em;
}
.th-meta-remain {
  font-size: .78rem;
  padding: 2px 8px;
  gap: 2px;
}

.th-meta-remain.th-meta-soon,
.th-meta-remain.th-meta-over {
  background: #fef2f2; color: #b91c1c;
}

.th-tag {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: #eef6f3; color: var(--th-accent-2); font-size: .72rem;
}
.th-type-tag { font-weight: 600; }
/* 状态色：标签与印章共用；待接单 #d70617 */
.th-tag.status-open {
  background: var(--th-st-open-bg);
  color: var(--th-st-open);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(215, 6, 23, .25);
}
/* 轮流动效仅大厅任务列表 */
.th-page-index .th-list .th-tag.status-open {
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.th-page-index .th-list .th-tag.status-open.is-cycling {
  background: var(--th-st-open);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--th-st-open);
}
.th-tag.status-taken {
  background: var(--th-st-taken-bg);
  color: var(--th-st-taken);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .18);
}
.th-tag.status-submitted {
  background: var(--th-st-submitted-bg);
  color: var(--th-st-submitted);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .2);
}
.th-tag.status-done {
  background: var(--th-st-done-bg);
  color: var(--th-st-done);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .2);
}
.th-tag.status-expired {
  background: var(--th-st-expired-bg);
  color: var(--th-st-expired);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(159, 18, 57, .22);
}
.th-tag.status-cancelled, .th-tag.status-closed { background: #f3f4f6; color: #6b7280; }
@media (prefers-reduced-motion: reduce) {
  .th-page-index .th-list .th-tag.status-open { transition: none; }
  .th-page-index .th-list .th-tag.status-open.is-cycling {
    background: var(--th-st-open-bg); color: var(--th-st-open);
    box-shadow: inset 0 0 0 1px rgba(215, 6, 23, .35);
  }
}
.th-reward { font-weight: 700; color: #b45309; font-size: .98rem; white-space: nowrap; }
.th-list-pay {
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0; white-space: nowrap;
}
.th-item .th-feed-amt {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}
.th-item .th-pot {
  width: 26px; height: 26px;
  filter: drop-shadow(0 1px 1px rgba(180, 83, 9, .25));
}
.th-list .th-item:nth-child(3n+1) .th-pot-coin-a { animation: th-coin-bob 1.8s ease-in-out infinite; }
.th-list .th-item:nth-child(3n+2) .th-pot-coin-b { animation: th-coin-bob 1.9s ease-in-out .15s infinite; }
.th-list .th-item:nth-child(3n) .th-pot-coin-c { animation: th-coin-bob 2s ease-in-out .28s infinite; }
.th-item:hover .th-pot { animation: th-pot-pop .45s ease; }
.th-item:hover .th-pot-coin-a,
.th-item:hover .th-pot-coin-b,
.th-item:hover .th-pot-coin-c {
  animation: th-coin-toss .7s ease;
}
@media (prefers-reduced-motion: reduce) {
  .th-list .th-item .th-pot-coin,
  .th-item:hover .th-pot { animation: none; }
}

.th-alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .92rem; }
.th-alert.err { background: #fef2f2; color: var(--th-danger); border: 1px solid #fecaca; }
.th-alert.ok { background: #ecfdf5; color: var(--th-ok); border: 1px solid #a7f3d0; }
.th-empty { color: var(--th-muted); padding: 18px; text-align: center; font-size: .9rem; }
.th-pager { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 10px; }
.th-pager a, .th-pager span {
  min-width: 28px; text-align: center; padding: 4px 8px; border-radius: 6px; font-size: .82rem;
  text-decoration: none; color: var(--th-muted); background: #fff; border: 1px solid var(--th-line);
}
.th-pager .cur { background: var(--th-accent); color: #fff; border-color: var(--th-accent); }
.th-pager .meta { border: 0; background: transparent; }
.th-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.th-tabs a {
  position: relative;
  text-decoration: none; padding: 5px 14px 5px 12px; border-radius: 999px; font-size: .86rem;
  color: var(--th-muted); background: #eef2f6;
}
.th-tabs a.active { background: #dff3eb; color: var(--th-accent-2); font-weight: 600; }
.th-tab-badge {
  position: absolute; top: -5px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: #dc2626; color: #fff;
  font-size: .64rem; font-weight: 700; line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #f4f6f8;
  pointer-events: none;
}
.th-detail-grid { display: grid; gap: 14px; position: relative; overflow: hidden; }
.th-stamp {
  position: absolute;
  right: 22px;
  top: 36px;
  z-index: 3;
  width: 92px; height: 92px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transform: rotate(-18deg);
  box-sizing: border-box;
  border: 3px solid currentColor;
  box-shadow: inset 0 0 0 2px currentColor;
  opacity: .88;
  animation: th-stamp-in .45s cubic-bezier(.2, .9, .2, 1.2) both;
}
.th-stamp span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.15;
  text-align: center;
  color: currentColor;
  writing-mode: horizontal-tb;
  user-select: none;
}
.th-stamp-open { color: var(--th-st-open); background: rgba(215, 6, 23, .08); }
.th-stamp-taken { color: var(--th-st-taken); background: rgba(29, 78, 216, .07); }
.th-stamp-submitted { color: var(--th-st-submitted); background: rgba(124, 58, 237, .07); }
.th-stamp-done { color: var(--th-st-done); background: rgba(15, 118, 110, .07); }
.th-stamp-expired { color: var(--th-st-expired); background: rgba(159, 18, 57, .08); }
@keyframes th-stamp-in {
  0% { opacity: 0; transform: rotate(-18deg) scale(1.35); }
  100% { opacity: .88; transform: rotate(-18deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .th-stamp { animation: none; }
}
@media (max-width: 720px) {
  .th-stamp {
    right: 12px; top: 18px;
    width: 72px; height: 72px;
  }
  .th-stamp span { font-size: .86rem; letter-spacing: .08em; }
}
.th-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.th-kv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; font-size: .88rem; align-items: center; }
.th-detail-meta .th-kv {
  padding: 8px 10px;
  background: #f7faf9;
  border: 1px solid #e8eef2;
  border-radius: 8px;
  min-height: 40px;
}
.th-kv b { color: var(--th-muted); font-weight: 500; white-space: nowrap; }
.th-kv > span { min-width: 0; }
.th-kv .th-tag { width: fit-content; max-width: 100%; }
.th-detail-label {
  color: var(--th-muted); font-weight: 500; font-size: .84rem; margin-bottom: 6px;
}
.th-detail-block { min-width: 0; }
.th-desc, .th-result {
  white-space: pre-wrap; line-height: 1.65; background: #f8fafc;
  border-radius: 8px; padding: 12px 14px; border: 1px solid var(--th-line);
}
.th-days-sm {
  display: inline-flex !important;
  width: fit-content;
  min-height: 0 !important;
  padding: 2px 10px !important;
  font-size: .82rem !important;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .th-detail-meta { grid-template-columns: 1fr; }
}
.th-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.th-accept-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0fdf9 0%, #f8fafc 100%);
  border: 1px solid #d8eee6;
  box-sizing: border-box;
}
.th-btn-accept {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 148px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 6px 14px rgba(13, 148, 136, .22);
  line-height: 1.15;
}
.th-btn-accept:hover {
  box-shadow: 0 8px 18px rgba(13, 148, 136, .28);
}
.th-btn-accept-main {
  font-size: 1rem;
  font-weight: 800;
}
.th-btn-accept-fee {
  font-size: .72rem;
  font-weight: 600;
  opacity: .92;
  letter-spacing: 0;
}
.th-accept-fee-tip {
  display: inline-flex;
  align-items: center;
  flex: 1 1 180px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(234, 88, 12, .08);
  border: 1px solid rgba(234, 88, 12, .22);
  color: #9a3412;
  font-size: .88rem;
  line-height: 1.4;
}
.th-accept-fee-tip b { color: #c2410c; font-weight: 700; }
.th-accept-fee-tip.is-lock {
  background: rgba(185, 28, 28, .08);
  border-color: rgba(185, 28, 28, .28);
  color: #991b1b;
}
.th-accept-fee-tip.is-lock b { color: #b91c1c; }
.th-tag-warn {
  background: rgba(185, 28, 28, .1) !important;
  color: #b91c1c !important;
  border-color: rgba(185, 28, 28, .25) !important;
}
.th-tag-urgent {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  color: #c2410c !important;
  border: 1px solid rgba(234, 88, 12, .35) !important;
  font-weight: 700 !important;
}
.th-urgent-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(234, 88, 12, .4);
  color: #c2410c;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
}
.th-urgent-mark em {
  font-style: normal;
}
.th-urgent-ico {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1px rgba(234, 88, 12, .35));
}
.th-list-pay .th-urgent-float {
  font-size: .7rem;
  padding: 3px 8px 3px 6px;
  gap: 3px;
  box-shadow: 0 3px 10px rgba(234, 88, 12, .2);
  white-space: nowrap;
}
.th-list-pay .th-urgent-float b {
  font-size: .92rem;
}
.th-list-pay .th-urgent-ico {
  width: 12px;
  height: 12px;
}
.th-item.is-urgent {
  box-shadow: inset 3px 0 0 #ea580c;
}
.th-urgent-wrap {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px dashed var(--th-line);
  border-radius: 10px;
  background: #fffaf5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.th-urgent-wrap.is-on {
  border-color: rgba(234, 88, 12, .4);
  background: #fff7ed;
}
.th-urgent-hint {
  font-size: .78rem;
  color: var(--th-muted);
  flex: 1 1 180px;
}
.th-urgent-body {
  width: 100%;
  margin-top: 4px;
}
.th-urgent-amt { color: #c2410c; }
.th-detail-meta .th-kv-reward {
  grid-column: 1 / -1;
  align-items: start;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
.th-detail-meta .th-kv-reward.is-urgent {
  background: linear-gradient(180deg, #fffaf5 0%, #f7faf9 100%);
  border-color: #fde68a;
}
.th-kv-reward .th-reward-combo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.th-reward-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.th-reward-op {
  color: #fb923c;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}
.th-urgent-float {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
  border: 1px solid rgba(234, 88, 12, .45);
  color: #c2410c;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(234, 88, 12, .22);
  animation: th-urgent-float 2.2s ease-in-out infinite;
  transform-origin: center;
}
.th-urgent-float::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(249, 115, 22, .35);
  opacity: 0;
  animation: th-urgent-ring 2.2s ease-out infinite;
  pointer-events: none;
}
.th-urgent-float em {
  font-style: normal;
}
.th-urgent-float b {
  font-weight: 800;
  color: #ea580c;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  line-height: 1;
}
.th-reward-total {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(234, 88, 12, .28);
  width: 100%;
  max-width: 280px;
  font-size: .8rem;
  color: var(--th-muted);
  font-weight: 500;
  white-space: nowrap;
}
.th-reward-total i {
  font-style: normal;
}
.th-detail-meta .th-detail-amt {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.th-reward-total .th-detail-amt {
  font-size: 1.15rem;
}
@keyframes th-urgent-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes th-urgent-ring {
  0% { transform: scale(.96); opacity: .55; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .th-urgent-float,
  .th-urgent-float::after { animation: none; }
}
.th-fee-box-plain {
  margin: 0 0 12px;
}
.th-accept-norefund { color: #b91c1c; font-weight: 600; }
.th-wallet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.th-wallet-stats .th-stat {
  padding: 10px 12px;
}
.th-wallet-stats .th-stat span {
  font-size: .72rem;
  margin-bottom: 4px;
}
.th-wallet-stats .th-stat strong {
  font-size: 1.15rem;
  line-height: 1.2;
}
.th-stat-sub {
  display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: #64748b; font-weight: 500;
}
.th-wallet-pane { margin-bottom: 14px; }
.th-recharge-guide {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: .88rem;
  line-height: 1.65;
  word-break: break-word;
}
.th-recharge-guide-text + .th-recharge-qrcodes {
  margin-top: 12px;
}
.th-recharge-qrcodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.th-recharge-qrcodes .th-task-image {
  width: 120px;
  height: 120px;
  padding: 0;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.th-recharge-qrcodes .th-task-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.th-recharge-box {
  margin-top: 12px; padding: 14px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #f3fbf8 0%, #eef7f3 100%);
  border: 1px solid #cfe8de;
}
.th-recharge-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px dashed rgba(15, 110, 86, .15);
  font-size: .92rem;
}
.th-recharge-row:last-child { border-bottom: 0; padding-bottom: 0; }
.th-recharge-row span { color: var(--th-muted); min-width: 4.5em; }
.th-recharge-row b { font-size: 1.05rem; color: var(--th-text); font-weight: 700; }
.th-my-stats-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 2px 0 10px; font-size: .9rem; font-weight: 650; color: var(--th-text);
}
.th-my-stats-head em {
  font-style: normal; font-weight: 500; font-size: .78rem; color: var(--th-muted);
}
.th-my-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.th-my-stats .th-stat {
  padding: 10px 12px;
}
.th-my-stats .th-stat span {
  font-size: .72rem;
  margin-bottom: 4px;
}
.th-my-stats .th-stat strong {
  font-size: 1.1rem;
  line-height: 1.2;
}
.th-my-stats .th-stat-earn strong { color: #b45309; }
@media (max-width: 860px) {
  .th-my-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.th-stat { background: var(--th-card); border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 16px; }
.th-stat span { display: block; color: var(--th-muted); font-size: .82rem; margin-bottom: 6px; }
.th-stat strong { font-size: 1.4rem; }
.th-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.th-table th, .th-table td { border-bottom: 1px solid var(--th-line); padding: 10px 8px; text-align: left; }
.th-table th { color: var(--th-muted); font-weight: 500; }
.th-table tr:last-child td { border-bottom: 0; }
.th-money {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #b45309;
}
.th-money.pos { color: #047857; }
.th-money.neg { color: #b91c1c; }
.th-footer { border-top: 1px solid var(--th-line); color: var(--th-muted); font-size: .78rem; padding: 12px 0 20px; }
.th-admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.th-admin-nav a {
  text-decoration: none; padding: 7px 12px; border-radius: 6px;
  background: #eef2f6; color: #334155; font-size: 13px;
}
.th-admin-nav a.active { background: #0f6e56; color: #fff; }
@media (max-width: 720px) {
  .th-header-inner { flex-wrap: wrap; padding: 10px 0; }
  .th-nav { order: 3; width: 100%; overflow-x: auto; }
  .th-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .th-item.th-item-plain {
    grid-template-columns: minmax(0, 1fr);
  }
  .th-item .th-list-pay {
    grid-column: 2;
    justify-self: start;
  }
  .th-item.th-item-plain .th-list-pay {
    grid-column: 1;
  }
  .th-wallet-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .th-wallet-stats .th-stat { padding: 8px 8px; }
  .th-wallet-stats .th-stat strong { font-size: 1rem; }
  .th-my-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

.th-days {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e8f7f1;
  color: #0f766e;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid #c6e9dc;
}
.th-days-err {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
  font-weight: 600;
}
@media (max-width: 720px) {
  .th-form-grid-2, .th-form-grid-3 { grid-template-columns: 1fr; }
  .th-balance-hint { margin-left: 0; width: 100%; }
  .th-publish-card { padding: 16px; }
}


/* layout + ranking */
.th-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}
.th-main-col { min-width: 0; }
.th-side { position: sticky; top: 56px; }
.th-rank-card {
  padding: 12px;
  margin-bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}
.th-rank-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--th-line);
}
.th-rank-head h2 { margin: 0; font-size: .95rem; font-weight: 700; }
.th-feed-head h2 {
  display: inline-flex; align-items: center; gap: 6px;
}
.th-horn {
  display: inline-flex; flex-shrink: 0;
  animation: th-horn-wiggle 2.4s ease-in-out infinite;
  transform-origin: 30% 55%;
}
.th-horn svg { display: block; }
.th-horn-dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: th-horn-pulse 1.4s ease-in-out infinite;
}
@keyframes th-horn-wiggle {
  0%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(-12deg); }
  16% { transform: rotate(10deg); }
  24% { transform: rotate(-6deg); }
  32% { transform: rotate(0deg); }
}
@keyframes th-horn-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .th-horn, .th-horn-dot { animation: none; }
}

.th-rank-head span { font-size: .72rem; color: var(--th-muted); }
.th-rank-empty { color: var(--th-muted); font-size: .82rem; padding: 10px 0; text-align: center; }
.th-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.th-rank-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: 0;
}
.th-rank-no {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px;
  font-size: .75rem; font-weight: 800; color: var(--th-muted); background: #e8eef3;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}
.th-rank-1 .th-rank-no { background: linear-gradient(180deg, #fbbf24, #f59e0b); color: #fff; }
.th-rank-2 .th-rank-no { background: linear-gradient(180deg, #cbd5e1, #94a3b8); color: #fff; }
.th-rank-3 .th-rank-no { background: linear-gradient(180deg, #f59e0b, #d97706); color: #fff; }
.th-rank-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  text-decoration: none; color: inherit;
  padding: 8px 10px;
  border: 1px solid #e4ebe7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.th-rank-body:hover {
  border-color: #9ad7c3;
  box-shadow: 0 4px 12px rgba(15, 110, 86, .08);
  transform: translateY(-1px);
}
.th-rank-title {
  grid-column: 1;
  grid-row: 1;
  font-size: .84rem; font-weight: 650; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--th-text);
}
.th-rank-body:hover .th-rank-title { color: var(--th-accent); }
.th-rank-sub {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; color: var(--th-muted); min-width: 0;
}
.th-rank-sub em {
  font-style: normal;
  max-width: 7em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.th-rank-sub i { font-style: normal; opacity: .55; }
.th-rank-sub b {
  font-weight: 700;
  color: var(--th-accent-2);
  background: #e8f7f1;
  border-radius: 999px;
  padding: 0 6px;
  line-height: 1.5;
}
.th-rank-pay {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: .88rem; font-weight: 800; color: #b45309; white-space: nowrap;
}
.th-feed-card .th-rank-list { gap: 7px; }
.th-feed-item { grid-template-columns: 1fr; }
.th-feed-body {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  padding: 9px 11px;
}
.th-feed-line {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 5px;
  font-size: .8rem; line-height: 1.45; color: var(--th-text);
}
.th-feed-who {
  font-style: normal; font-weight: 700; color: var(--th-accent-2);
  max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-feed-time {
  font-weight: 700; color: #047857;
  background: #ecfdf5; border-radius: 999px; padding: 0 7px; line-height: 1.55;
  font-size: .72rem;
}
.th-feed-verb { color: var(--th-muted); font-size: .78rem; }
.th-feed-title {
  font-weight: 650; color: var(--th-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.th-feed-body:hover .th-feed-title { color: var(--th-accent); }
.th-feed-body .th-rank-pay {
  grid-column: 2; grid-row: 1; align-self: center;
}
.th-feed-pay {
  display: inline-flex; align-items: center; gap: 5px;
  position: relative;
}
.th-feed-amt {
  font-size: .88rem; font-weight: 800; color: #b45309; white-space: nowrap;
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 45%, #b45309 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: th-pay-shine 3.2s ease-in-out infinite;
}
.th-pot {
  display: inline-flex; width: 22px; height: 22px; flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(180, 83, 9, .25));
}
.th-pot svg { display: block; overflow: visible; }
.th-pot-coin { transform-origin: center; transform-box: fill-box; }
.th-feed-item:nth-child(3n+1) .th-pot-coin-a { animation: th-coin-bob 1.8s ease-in-out infinite; }
.th-feed-item:nth-child(3n+2) .th-pot-coin-b { animation: th-coin-bob 1.9s ease-in-out .15s infinite; }
.th-feed-item:nth-child(3n) .th-pot-coin-c { animation: th-coin-bob 2s ease-in-out .28s infinite; }
.th-feed-body:hover .th-pot { animation: th-pot-pop .45s ease; }
.th-feed-body:hover .th-pot-coin-a,
.th-feed-body:hover .th-pot-coin-b,
.th-feed-body:hover .th-pot-coin-c {
  animation: th-coin-toss .7s ease;
}
@keyframes th-coin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
@keyframes th-coin-toss {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-6px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes th-pot-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes th-pay-shine {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .th-feed-amt, .th-pot-coin, .th-feed-body:hover .th-pot, .th-item:hover .th-pot { animation: none; }
  .th-feed-amt { color: #b45309; background: none; -webkit-background-clip: unset; background-clip: unset; }
}



.th-hist-card {
  padding: 12px;
  margin-bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}
.th-hist-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: min(70vh, 560px); overflow: auto;
}
.th-hist-item a {
  display: block; position: relative;
  padding: 8px 10px; border: 1px solid var(--th-line);
  border-radius: 8px; text-decoration: none; color: inherit;
  background: #fff; transition: border-color .15s, background .15s;
}
.th-hist-item a:hover {
  border-color: #b7ddd0; background: #f3faf7;
}
.th-hist-current a {
  border-color: #86c5b0; background: #eef8f3;
}
.th-hist-title {
  display: block; font-size: .86rem; font-weight: 600;
  color: var(--th-text); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 36px;
}
.th-hist-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 8px; margin-top: 5px; font-size: .72rem; color: var(--th-muted);
}
.th-hist-pay { color: var(--th-warn); font-weight: 700; }
.th-hist-time { opacity: .8; }
.th-hist-now {
  position: absolute; top: 8px; right: 8px;
  font-size: .68rem; font-weight: 700; color: var(--th-accent);
  background: #dff3eb; padding: 1px 6px; border-radius: 999px;
}
.th-hist-more {
  margin-top: 8px; text-align: center;
  font-size: .72rem; color: var(--th-muted);
}

@media (max-width: 900px) {
  .th-layout { grid-template-columns: 1fr; }
  .th-side { position: static; }
}

.th-muted { color: var(--th-muted); }

.th-reject-box, .th-reject-log { margin-top: 12px; }
.th-reject-box h3, .th-reject-log h3 {
  margin: 0 0 10px; font-size: .95rem; font-weight: 700;
}
.th-reject-log h3 span { color: var(--th-muted); font-weight: 500; font-size: .82rem; }
.th-reject-box textarea { min-height: 88px; }
.th-reject-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.th-reject-list li {
  border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px; padding: 10px 12px;
}
.th-reject-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-size: .76rem; color: var(--th-muted); margin-bottom: 6px;
}
.th-reject-reason {
  font-size: .9rem; line-height: 1.5; color: var(--th-text); white-space: pre-wrap;
}
.th-reject-snap {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f6d89a;
  font-size: .78rem; color: var(--th-muted);
}
.th-reject-snap b { font-weight: 600; display: block; margin-bottom: 4px; }
.th-reject-snap pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  background: #fff; border: 1px solid #f5e0a8; border-radius: 6px; padding: 8px 10px;
  font: inherit; color: var(--th-text);
}

.th-submit-box { margin-top: 12px; }
.th-submit-box h3 { margin: 0 0 8px; font-size: .95rem; font-weight: 700; }
.th-submit-box .th-approve-head { margin-bottom: 8px; }
.th-submit-box .th-approve-head h3 { margin: 0; }
.th-submit-form { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.th-submit-form .row { display: block; width: 100%; }
.th-submit-form label { display: block; margin-bottom: 6px; }
.th-submit-form textarea {
  display: block; width: 100%; min-height: 140px; resize: vertical;
  box-sizing: border-box;
}
.th-submit-hint {
  font-size: .78rem; color: var(--th-muted); margin-bottom: 10px;
  padding: 6px 10px; background: #f3faf7; border-radius: 6px; border: 1px solid #d8eee4;
}
.th-submit-log { margin-top: 12px; }
.th-submit-log-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.th-submit-log-head h3 { margin: 0; font-size: .95rem; font-weight: 700; }
.th-submit-log h3 span { color: var(--th-muted); font-weight: 500; font-size: .82rem; }
.th-tag-me {
  display: inline-flex !important; align-items: center;
  margin-left: 4px; padding: 1px 7px !important;
  background: #ecfdf5 !important; color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, .28) !important;
  font-size: .72rem !important; font-weight: 700 !important;
  vertical-align: middle;
}
.th-tag-cs-open {
  background: #fff7ed !important; color: #c2410c !important;
  border: 1px solid rgba(234, 88, 12, .35) !important; font-weight: 700 !important;
  text-decoration: none; display: inline-flex; align-items: center;
}
.th-tag-cs-closed {
  background: #f1f5f9 !important; color: #475569 !important;
  border: 1px solid #e2e8f0 !important; text-decoration: none;
  display: inline-flex; align-items: center;
}
.th-cs-box { margin-top: 12px; }
.th-cs-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.th-cs-head-actions {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.th-cs-box h3 { margin: 0; font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.th-cs-box.is-collapsed .th-cs-panel { display: none; }
.th-cs-box.is-collapsed:target .th-cs-panel,
.th-cs-box.is-open .th-cs-panel { display: block; }
.th-cs-box.is-collapsed:target .th-cs-head .th-cs-open-link,
.th-cs-box.is-open .th-cs-head .th-cs-open-link { display: none; }
.th-cs-panel { margin-top: 12px; }
.th-cs-empty { margin: 0 0 12px; font-size: .88rem; }
.th-approve-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.th-approve-head h3 { margin: 0; }
.th-cs-timeline { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.th-cs-msg {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--th-line);
  background: #f8fafc;
}
.th-cs-msg.role-admin { background: #eff6ff; border-color: #bfdbfe; }
.th-cs-msg.role-publisher { background: #f0fdf4; border-color: #bbf7d0; }
.th-cs-msg.role-worker { background: #fffbeb; border-color: #fde68a; }
.th-cs-msg-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  font-size: .78rem; color: var(--th-muted); margin-bottom: 6px;
}
.th-cs-role {
  font-weight: 700; color: #0f766e; padding: 1px 7px; border-radius: 999px;
  background: rgba(15, 118, 110, .08);
}
.th-cs-msg.role-admin .th-cs-role { color: #1d4ed8; background: rgba(29, 78, 216, .08); }
.th-cs-msg.role-worker .th-cs-role { color: #c2410c; background: rgba(194, 65, 12, .08); }
.th-cs-body {
  margin: 0; white-space: pre-wrap; font: inherit; font-size: .9rem; line-height: 1.55;
  color: var(--th-text);
}
.th-cs-apply-form, .th-cs-post-form, .th-cs-close-form {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--th-line);
}
#th-cs-post-form { scroll-margin-top: 72px; }
.th-cs-compose .th-cs-post-form { margin-top: 0; padding-top: 0; border-top: 0; }
.th-cs-compose .th-cs-flash + .th-cs-post-form { margin-top: 10px; }
.th-cs-close-form { border-top-style: solid; }
.th-cs-flash { margin: 12px 0 0; }
.th-cs-flash + .th-cs-post-form,
.th-cs-flash + .th-cs-apply-form { margin-top: 10px; }
.th-deposit-dispose {
  border: 1px solid var(--th-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}
.th-deposit-dispose-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--th-muted);
  margin-bottom: 6px;
}
.th-deposit-dispose-radios {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.th-deposit-dispose-radios .th-check {
  font-size: .88rem;
  color: var(--th-text);
}
.th-submit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.th-submit-list li {
  border: 1px solid var(--th-line); background: #f8fafc; border-radius: 8px; padding: 10px 12px;
}
.th-submit-list li.th-submit-latest {
  border-color: #9ad7c3; background: #f3faf7;
}
.th-submit-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  font-size: .76rem; color: var(--th-muted); margin-bottom: 6px;
}
.th-submit-ver { font-weight: 700; color: var(--th-accent-2); }
.th-submit-body {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font: inherit; font-size: .88rem; line-height: 1.5; color: var(--th-text);
}

.th-tag-reject { background: #fef2f2; color: #b91c1c; }
.th-submit-list li.th-submit-rejected {
  border-color: #f6d89a; background: #fffdf7;
}
.th-submit-reject {
  margin-top: 8px; padding: 8px 10px;
  border-radius: 6px; background: #fff7ed; border: 1px solid #fed7aa;
}
.th-submit-reject-meta {
  font-size: .72rem; color: #9a3412; margin-bottom: 4px; font-weight: 600;
}
.th-submit-reject-reason {
  font-size: .86rem; line-height: 1.45; color: var(--th-text); white-space: pre-wrap;
}

.th-tag-ok { background: #ecfdf5; color: #047857; }
.th-tag-admin-ok { background: #eff6ff; color: #1d4ed8; }
.th-tag-admin-warn { background: #fff7ed; color: #c2410c; }
.th-admin-mark-meta { color: #64748b; font-size: 12px; }
.th-admin-act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.th-admin-act-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: #64748b; }
.th-admin-act-note { margin-top: 4px; font-size: 13px; color: #475569; }
.th-submit-list li.th-submit-approved {
  border-color: #6ee7b7; background: #f0fdf8;
}

.th-private-tip {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed var(--th-line);
  color: var(--th-muted);
  font-size: .9rem;
}

.th-approve-box { margin-top: 12px; }
.th-approve-box h3 {
  margin: 0 0 10px; font-size: .95rem; font-weight: 700;
}
.th-approve-box .th-approve-head h3 { margin: 0; }
.th-approve-box input[type="password"] {
  max-width: 240px; letter-spacing: .2em;
}
.th-btn.sm { padding: 5px 10px; font-size: .82rem; }

.th-account-panel { padding: 12px 14px; margin-bottom: 12px; }
.th-account-panel > .th-account-ids { margin-bottom: 12px; }
.th-account-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1.15fr) minmax(240px, 1fr);
  gap: 0 18px;
  align-items: start;
}
.th-account-col-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--th-muted);
  margin: 0 0 10px;
  letter-spacing: .02em;
  line-height: 1.2;
}
.th-account-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 14px 0 0;
  border-right: 1px solid var(--th-line);
}
.th-account-side .th-account-col-title {
  align-self: stretch;
  text-align: left;
}
.th-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--th-line);
  background: #eef2f6;
  margin-bottom: 6px;
}
.th-avatar-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.th-avatar-hint {
  font-size: .68rem;
  color: var(--th-muted);
  line-height: 1.35;
  margin: 0 0 8px;
}
.th-avatar-form,
.th-avatar-clear {
  margin: 0;
  width: 100%;
}
.th-avatar-form input[type="file"][hidden] { display: none !important; }
.th-avatar-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  margin-bottom: 6px;
}
.th-avatar-btns .th-btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  justify-content: center;
  min-height: 32px;
}
.th-avatar-clear .th-btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  justify-content: center;
  min-height: 32px;
}

.th-account-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 18px 0 0;
  border-right: 1px solid var(--th-line);
}
.th-account-secure {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}
.th-account-secure .th-secure-item {
  margin-bottom: 0;
}
.th-account-secure .th-secure-summary {
  padding: 8px 10px;
  gap: 8px;
}
.th-account-secure .th-secure-summary-main {
  gap: 4px 8px;
}
.th-account-secure .th-secure-summary-main strong { font-size: .86rem; }
.th-account-secure .th-secure-tip { width: 100%; }
.th-account-secure .th-secure-fields {
  grid-template-columns: 1fr;
  gap: 8px;
}
.th-account-secure .th-secure-actions { margin-top: 8px; }
.th-account-secure .th-secure-body { padding: 0 10px 10px; }
.th-account-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f7faf9;
  border: 1px solid var(--th-line);
}
.th-account-id {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.th-account-id span {
  font-size: .74rem;
  color: var(--th-muted);
  white-space: nowrap;
}
.th-account-id code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .88rem;
  font-weight: 700;
  color: var(--th-text);
  background: transparent;
  padding: 0;
  word-break: break-all;
}
.th-account-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.th-account-main .th-account-tips { margin-top: 10px; }
.th-account-field { margin: 0; }
.th-account-field > label {
  display: block;
  font-size: .8rem;
  color: var(--th-muted);
  margin-bottom: 5px;
}
.th-account-field > label .th-muted {
  font-size: .72rem;
  margin-left: 4px;
}
.th-account-field-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.th-account-field-ctrl input {
  flex: 1 1 160px;
  min-width: 0;
  max-width: none;
}
.th-account-field-ctrl .th-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
}
.th-account-field-ctrl .th-secure-badge {
  flex: 0 0 auto;
}
.th-account-tips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.th-account-tips p,
.th-account-tip {
  margin: 0;
  font-size: .74rem;
  color: var(--th-muted);
  line-height: 1.45;
}
.th-account-tips strong,
.th-account-tip strong {
  color: var(--th-accent-2);
  font-weight: 700;
}
.th-input-locked,
.th-account-field-ctrl input.th-input-locked,
.th-form input.th-input-locked {
  background: #f1f5f9 !important;
  color: #334155 !important;
  cursor: not-allowed;
  border-style: dashed !important;
}
@media (max-width: 980px) {
  .th-account-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0 14px;
  }
  .th-account-secure {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid var(--th-line);
    margin-top: 4px;
  }
  .th-account-main { border-right: 0; padding-right: 0; }
}
@media (max-width: 720px) {
  .th-account-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .th-account-side {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--th-line);
  }
  .th-account-side .th-account-col-title { width: 100%; margin-bottom: 4px; }
  .th-avatar-preview { margin-bottom: 0; }
  .th-avatar-hint { width: 100%; margin: 0; }
  .th-avatar-form { width: auto; flex: 1 1 auto; }
  .th-avatar-btns { margin-bottom: 0; max-width: 200px; }
  .th-avatar-clear { width: auto; }
  .th-account-main {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--th-line);
  }
  .th-account-secure { padding: 14px 0 0; }
}

.th-secure-panel { padding: 12px 14px; margin-bottom: 12px; }
.th-secure-title {
  font-size: .82rem; font-weight: 700; color: var(--th-muted);
  margin: 0 0 8px; letter-spacing: .02em;
}
.th-secure-item {
  border: 1px solid var(--th-line);
  border-radius: 8px;
  background: #fbfcfd;
  margin-bottom: 8px;
  overflow: hidden;
}
.th-secure-item:last-child { margin-bottom: 0; }
.th-secure-item.is-open { background: #fff; border-color: #9ad7c3; }
.th-secure-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 12px;
}
.th-secure-summary-main {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0;
}
.th-secure-summary-main strong { font-size: .92rem; font-weight: 700; }
.th-secure-tip { font-size: .76rem; color: var(--th-muted); }
.th-secure-badge {
  font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #fff7ed; color: #c2410c;
}
.th-secure-badge.ok { background: #ecfdf5; color: #047857; }
.th-secure-body {
  padding: 0 12px 12px;
  border-top: 1px dashed var(--th-line);
}
.th-secure-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}
.th-paypass-form, .th-loginpass-form { display: block; }
.th-paypass-form input[type="password"] { letter-spacing: .18em; }
.th-paypass-form input, .th-loginpass-form input { width: 100%; max-width: none; }
.th-secure-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.th-secure-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
@media (max-width: 720px) {
  .th-secure-fields { grid-template-columns: 1fr; }
  .th-secure-summary { align-items: flex-start; }
}


.th-worker-rank {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
  border: 1px solid #1a3d36;
  background: linear-gradient(165deg, #0b1f1c 0%, #12352e 45%, #0e2a24 100%);
  color: #e8f5f1;
  box-shadow: 0 8px 28px rgba(11, 31, 28, .28);
}
.th-meteor-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 0;
}
.th-worker-rank-inner {
  position: relative; z-index: 1;
  padding: 12px;
}
.th-worker-rank .th-rank-head h2 { color: #f0fdf9; }
.th-worker-rank .th-rank-head span { color: rgba(232, 245, 241, .65); }
.th-worker-rank .th-rank-empty { color: rgba(232, 245, 241, .7); }
.th-worker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.th-worker-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.th-worker-top { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .12); }
.th-worker-1 { border-color: rgba(245, 158, 11, .65); box-shadow: 0 0 0 1px rgba(245, 158, 11, .15); }
.th-worker-2 { border-color: rgba(203, 213, 225, .45); background: rgba(255,255,255,.1); }
.th-worker-3 { border-color: rgba(253, 186, 116, .5); }
.th-crown {
  position: absolute;
  top: -7px;
  left: -6px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  line-height: 1;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
  pointer-events: none;
}
.th-worker-1 .th-crown {
  top: -9px; left: -8px; width: 22px; height: 22px; font-size: 1.05rem;
}
.th-worker-2 .th-crown {
  top: -8px; left: -7px; width: 18px; height: 18px; font-size: .88rem;
  filter: grayscale(.35) drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.th-worker-3 .th-crown {
  top: -6px; left: -6px; width: 15px; height: 15px; font-size: .72rem;
  filter: sepia(.55) saturate(1.4) hue-rotate(-10deg) drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.th-worker-no {
  width: 22px; height: 22px; margin: 0 auto;
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #d1fae5; background: rgba(255,255,255,.12);
}
.th-worker-top .th-worker-no {
  background: rgba(251, 191, 36, .22);
  color: #fde68a;
}
.th-worker-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.th-worker-name {
  display: inline-block; max-width: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; text-align: left;
  font: inherit; font-size: .86rem; font-weight: 700; color: #f8fffc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; text-decoration: underline; text-decoration-color: rgba(248, 255, 252, .35);
  text-underline-offset: 2px;
}
.th-worker-name:hover { color: #fde68a; text-decoration-color: #fde68a; }
.th-worker-nick {
  font-size: .68rem; color: rgba(232, 245, 241, .55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.th-worker-sub { font-size: .7rem; color: rgba(232, 245, 241, .7); }
.th-worker-amt { font-size: .86rem; font-weight: 800; color: #fbbf24; white-space: nowrap; }

.th-publish-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.th-rank-side { display: flex; flex-direction: column; gap: 12px; }
.th-rank-side .th-worker-rank { margin-bottom: 0; }
.th-merchant-rank-tag {
  font-size: .72rem !important;
  font-weight: 800 !important;
  color: #ecfdf5 !important;
  background: rgba(16, 185, 129, .28);
  border: 1px solid rgba(110, 231, 183, .45);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: .04em;
}
@media (max-width: 900px) {
  .th-publish-layout { grid-template-columns: 1fr; }
}

.th-field-tip { margin-top: 4px; font-size: .76rem; color: var(--th-muted); }
.th-desc-guide {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7faf9;
  border: 1px dashed var(--th-line);
}
.th-desc-guide-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--th-text);
  margin: 0 0 6px;
}
.th-desc-guide ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
}
.th-desc-guide li {
  font-size: .76rem;
  color: var(--th-muted);
  line-height: 1.55;
  margin: 0 0 2px;
}
.th-desc-guide li strong {
  color: var(--th-accent-2);
  font-weight: 700;
}
#th-assign-user.th-assign-flash {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .22);
  transition: box-shadow .2s, border-color .2s;
}
.th-tag-assign { background: #fff7ed; color: #c2410c; }

.th-private-wrap,
.th-assign-wrap {
  border: 1px dashed var(--th-line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  margin-top: 10px;
}
.th-private-wrap.is-open,
.th-assign-wrap.is-open {
  border-style: solid;
  border-color: #9ad7c3;
  background: #fff;
}
.th-private-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--th-text);
}
.th-private-toggle:hover { background: rgba(15, 110, 86, .04); }
.th-private-toggle-label {
  font-size: .88rem;
  font-weight: 600;
}
.th-private-toggle-label::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  margin-right: 4px;
  color: var(--th-accent);
  font-weight: 700;
}
.th-private-wrap.is-open .th-private-toggle-label::before { content: "–"; }
.th-private-toggle-hint {
  font-size: .74rem;
  color: var(--th-muted);
  white-space: nowrap;
}
.th-private-body { padding: 0 12px 12px; }
.th-private-body label .th-muted {
  font-size: .72rem;
  margin-left: 6px;
  color: #c2410c;
}
.th-private-block .th-private-content {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--th-text);
}
.th-private-locked {
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed var(--th-line);
}
.th-private-locked p {
  margin: 0 0 10px;
  font-size: .86rem;
  color: var(--th-muted);
  line-height: 1.5;
}
.th-private-locked p strong { color: #c2410c; font-weight: 700; }
.th-private-locked .th-btn { margin: 0; }
.th-assign-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--th-text);
}
.th-assign-toggle:hover { background: rgba(15, 110, 86, .04); }
.th-assign-toggle-label {
  font-size: .88rem;
  font-weight: 600;
}
.th-assign-toggle-label::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  margin-right: 4px;
  color: var(--th-accent);
  font-weight: 700;
}
.th-assign-wrap.is-open .th-assign-toggle-label::before { content: "–"; }
.th-assign-toggle-hint {
  font-size: .74rem;
  color: var(--th-muted);
  white-space: nowrap;
}
.th-assign-body { padding: 0 12px 12px; }

.th-fee-box {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d8eee4;
  background: #f3faf7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.th-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .84rem;
  color: var(--th-muted);
}
.th-fee-row b { color: var(--th-text); font-weight: 700; }
.th-fee-row.total {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed #c6e9dc;
  font-size: .9rem;
  color: var(--th-text);
}
.th-fee-row.total b { color: var(--th-warn); font-size: 1rem; }
.th-fee-amt { color: #c2410c !important; }
.th-fee-note { font-size: .72rem; color: var(--th-muted); line-height: 1.4; }

.th-field-count { float: right; font-weight: 400; color: #94a3b8; font-size: .75rem; }
.th-field-count.is-over { color: var(--th-warn); }
.th-images-box {
  border: 1px dashed var(--th-line); border-radius: 8px; padding: 10px;
  background: #fafbfc; outline: none; transition: border-color .15s, background .15s;
}
.th-images-box:focus, .th-images-box.is-drag { border-color: #9ad7c3; background: #f7fcfa; }
.th-images-box.is-full .th-images-pick { opacity: .45; pointer-events: none; }
.th-images-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.th-images-list:empty { display: none; margin: 0; }
.th-images-item {
  position: relative; width: 88px; height: 88px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--th-line); background: #fff;
}
.th-images-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-images-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(15,23,42,.72); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.th-images-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.th-images-tip { font-size: .78rem; color: var(--th-muted); }

.th-files-box {
  border: 1px dashed var(--th-line); border-radius: 8px; padding: 10px;
  background: #fafbfc; transition: border-color .15s, background .15s;
}
.th-files-box.is-drag { border-color: #9ad7c3; background: #f7fcfa; }
.th-files-box.is-full .th-files-pick { opacity: .45; pointer-events: none; }
.th-files-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.th-files-list:empty { display: none; margin: 0; }
.th-files-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--th-line); background: #fff;
}
.th-files-ext {
  flex-shrink: 0; min-width: 40px; padding: 3px 6px; border-radius: 6px;
  background: #ecfdf5; color: #0f766e; font-size: .68rem; font-weight: 800;
  text-align: center; letter-spacing: .02em;
}
.th-files-name {
  flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; color: var(--th-text);
  display: flex; flex-direction: column; gap: 2px;
}
.th-files-name i { font-style: normal; font-weight: 500; font-size: .75rem; color: var(--th-muted); }
.th-files-del {
  flex-shrink: 0; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: #f1f5f9; color: #64748b; font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.th-files-del:hover { background: #fee2e2; color: #b91c1c; }
.th-files-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.th-files-tip { font-size: .78rem; color: var(--th-muted); }
.th-task-files { display: flex; flex-direction: column; gap: 8px; }
.th-task-file {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--th-line); background: #f8fafc;
}
.th-task-file-ico {
  flex-shrink: 0; min-width: 42px; padding: 4px 7px; border-radius: 6px;
  background: #ecfdf5; color: #0f766e; font-size: .7rem; font-weight: 800; text-align: center;
}
.th-task-file-meta {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.th-task-file-meta b {
  font-size: .9rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-task-file-meta i { font-style: normal; font-size: .75rem; color: var(--th-muted); }
.th-task-file-lock { font-size: .8rem; white-space: nowrap; }
.th-extend-ctrl {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.th-extend-ctrl input[type=number] {
  width: 96px; max-width: 100%;
}
.th-extend-hint { margin-top: 4px; }
.th-btn.sm { padding: 5px 10px; font-size: .8rem; }
.th-task-images { display: flex; flex-wrap: wrap; gap: 8px; }
.th-task-image {
  display: block; width: 120px; height: 120px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--th-line); background: #fff;
  padding: 0; cursor: zoom-in; font: inherit;
}
.th-task-image:hover { border-color: #9ad7c3; }
.th-task-image img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@media (max-width: 720px) {
  .th-task-image { width: calc(33.33% - 6px); height: auto; aspect-ratio: 1; }
}

body.th-lightbox-open { overflow: hidden; }
.th-lightbox[hidden] { display: none !important; }
.th-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.th-lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .72);
  cursor: zoom-out;
}
.th-lightbox-panel {
  position: relative; z-index: 1; max-width: min(960px, 100%);
  max-height: 100%; display: flex; align-items: center; justify-content: center;
}
.th-lightbox-img {
  max-width: 100%; max-height: calc(100vh - 48px);
  border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,.35);
  background: #0f172a; object-fit: contain;
}
.th-lightbox-close {
  position: absolute; top: -12px; right: -12px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #fff; color: #0f172a; font-size: 22px; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: inline-flex; align-items: center; justify-content: center;
}
.th-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #0f172a; font-size: 28px;
  line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2);
  display: inline-flex; align-items: center; justify-content: center;
}
.th-lightbox-nav.prev { left: -8px; }
.th-lightbox-nav.next { right: -8px; }
.th-lightbox-counter {
  position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
  color: #e2e8f0; font-size: .82rem; white-space: nowrap;
}
@media (max-width: 720px) {
  .th-lightbox-nav.prev { left: 4px; }
  .th-lightbox-nav.next { right: 4px; }
  .th-lightbox-close { top: 8px; right: 8px; }
}

.th-merchant-panel { margin-bottom: 14px; }
.th-merchant-panel-bottom {
  margin-top: 20px; margin-bottom: 0;
  border-top: 3px solid #d8efe7;
  background:
    linear-gradient(180deg, #f7fcfa 0%, #fff 48px);
}
.th-merchant-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.th-merchant-panel-head h2 { margin: 0; font-size: 1rem; }
.th-merchant-panel-head span { font-size: .78rem; color: var(--th-muted); }
.th-merchant-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
  font-size: .82rem; color: var(--th-muted); align-items: center;
}
.th-merchant-meta > span:not(.th-tag) {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid var(--th-line);
}
.th-merchant-meta b { color: var(--th-text); font-weight: 650; }
.th-merchant-form { margin: 0; }
.th-merchant-form textarea[readonly] {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
  resize: none;
}
.th-merchant-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.th-merchant-ops {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--th-line);
}
.th-merchant-ops-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.th-merchant-ops-tip {
  font-size: .78rem; color: var(--th-muted);
}
.th-merchant-refresh-form {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
}
.th-merchant-refresh-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  margin-bottom: 10px;
}
.th-merchant-refresh-head strong {
  font-size: .92rem; color: var(--th-text);
}
.th-merchant-refresh-head span {
  font-size: .78rem; color: var(--th-muted);
}
.th-merchant-refresh-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px;
}
.th-merchant-paypass {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1; min-width: 160px; max-width: 280px;
  font-size: .78rem; color: var(--th-muted);
}
.th-merchant-paypass input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--th-line);
  border-radius: 6px;
  font-size: .9rem;
  background: #fff;
  color: var(--th-text);
}
.th-merchant-paypass input:focus {
  outline: none;
  border-color: #9ad7c3;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, .12);
}
.th-merchant-refresh-row .th-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
}
.th-merchant-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 0 12px;
}
.th-merchant-list-head h2 { margin: 0; font-size: 1.08rem; letter-spacing: .01em; }
.th-merchant-list-head span { font-size: .8rem; color: var(--th-muted); }
.th-merchant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.th-merchant-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0; padding: 0; overflow: hidden;
  min-width: 0;
}
.th-merchant-item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 12px 8px;
}
.th-merchant-item-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.th-merchant-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; object-position: center;
  background: #e8efeb;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .1);
  flex-shrink: 0;
}
.th-merchant-avatar-letter {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #1a9b78 0%, #0b5340 100%);
  object-fit: unset;
}
.th-merchant-item-main { min-width: 0; flex: 1; }
.th-merchant-name-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 2px;
}
.th-merchant-login {
  font-size: .9rem; font-weight: 700; color: var(--th-accent-2);
}
.th-merchant-nick { font-size: .74rem; color: var(--th-muted); }
.th-merchant-intro {
  font-size: .8rem; color: var(--th-text); line-height: 1.4; margin-bottom: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; white-space: normal;
}
.th-merchant-skills-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px dashed #e2ebe7;
}
.th-merchant-skills-label {
  flex-shrink: 0;
  font-size: .72rem; color: var(--th-muted); font-weight: 550;
}
.th-merchant-skills-foot .th-skill-tags {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0;
}
.th-merchant-item .th-skill-tags { margin-bottom: 0; }
.th-merchant-item .th-skill-tags .th-tag,
.th-merchant-skills-foot .th-tag {
  font-size: .68rem; padding: 1px 6px;
}
.th-merchant-item-side {
  display: flex; flex-direction: column; gap: 0;
  background: #f8fbfa;
  min-width: 0;
  border-top: 1px solid #e8efeb;
  margin-top: auto;
}
.th-merchant-side-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px dashed #d7e5df;
}
.th-merchant-stats {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  font-size: .7rem; color: var(--th-muted); line-height: 1.3;
}
.th-merchant-stats em {
  font-style: normal; font-weight: 700; color: var(--th-text); font-size: .82rem;
}
.th-merchant-assign {
  white-space: nowrap;
  padding: 4px 10px;
  font-size: .74rem;
  background: var(--th-accent);
  border-color: var(--th-accent);
  color: #fff;
}
.th-merchant-assign:hover {
  background: var(--th-accent-2);
  border-color: var(--th-accent-2);
  color: #fff;
}
.th-merchant-recent {
  padding: 8px 12px 10px;
}
.th-merchant-recent-head {
  font-size: .68rem; font-weight: 650; color: var(--th-muted);
  letter-spacing: .04em; margin-bottom: 6px;
}
.th-merchant-recent-empty {
  font-size: .76rem; color: #94a3b8; padding: 2px 0;
}
.th-merchant-recent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.th-merchant-recent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "st title pay"
    "st time  time";
  gap: 1px 5px;
  align-items: center;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid #e2ebe7;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.th-merchant-recent-row:hover {
  border-color: #9ad7c3;
  box-shadow: 0 1px 4px rgba(15, 110, 86, .08);
}
.th-merchant-recent-row .th-tag {
  grid-area: st;
  font-size: .64rem; padding: 1px 5px;
  align-self: start;
}
.th-merchant-recent-title {
  grid-area: title;
  font-size: .76rem; font-weight: 600; color: var(--th-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-merchant-recent-row:hover .th-merchant-recent-title { color: var(--th-accent-2); }
.th-merchant-recent-pay {
  grid-area: pay;
  font-size: .72rem; font-weight: 700; color: var(--th-accent-2);
  flex-shrink: 0;
}
.th-merchant-recent-time {
  grid-area: time;
  font-size: .66rem; color: var(--th-muted);
}
.th-skill-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px;
}
.th-skills-panel { margin-bottom: 12px; }
.th-skill-pick {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.th-skill-opt {
  display: inline-flex; align-items: center; gap: 0;
  cursor: pointer; user-select: none;
}
.th-skill-opt input {
  position: absolute; opacity: 0; pointer-events: none;
}
.th-skill-opt span {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--th-skill-bg, #99f6e4);
  background: #fff;
  color: #334155;
  font-size: .86rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.th-skill-opt.is-on span,
.th-skill-opt input:checked + span {
  background: var(--th-skill-bg, #0f766e);
  border-color: var(--th-skill-bg, #0f766e);
  color: var(--th-skill-fg, #fff);
}
.th-skill-opt input:disabled + span {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .th-merchant-list {
    grid-template-columns: 1fr;
  }
  .th-merchant-recent-list {
    grid-template-columns: 1fr;
  }
  .th-merchant-side-head {
    flex-wrap: wrap;
  }
}
