:root {
  --bg: #f2f5f3;
  --bg-deep: #e4ebe7;
  --ink: #0f1916;
  --ink-secondary: #3d4f47;
  --muted: #5c6b63;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f9f7;
  --line: rgba(15, 25, 22, 0.08);
  --line-strong: rgba(15, 25, 22, 0.14);
  --accent: #0b6b5c;
  --accent-strong: #085447;
  --accent-soft: #d8f0ea;
  --accent-ink: #fff;
  --brand-deep: #0a1612;
  --brand-mid: #12382f;
  --urgent: #c23b2e;
  --ok: #1f7a54;
  --warning: #c45f12;
  --info: #0b6b5c;
  --danger: #c23b2e;
  --matched: #9a5b24;
  --shadow: 0 1px 2px rgba(15, 25, 22, 0.04), 0 10px 28px rgba(15, 25, 22, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 25, 22, 0.1), 0 2px 6px rgba(15, 25, 22, 0.04);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --font: "Noto Sans TC", "Sora", system-ui, sans-serif;
  --display: "Sora", "Noto Sans TC", system-ui, sans-serif;
  --fs-h1: 1.5rem;
  --fs-h2: 1.2rem;
  --fs-body: 1rem;
  --fs-caption: 0.8125rem;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --hero-from: #0a1612;
  --hero-mid: #12382f;
  --hero-to: #0b6b5c;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #f5f7f5 0%, var(--bg) 42%, #e8ece9 100%);
  min-height: 100dvh;
  padding-bottom: calc(88px + var(--safe-b));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 12px;
  backdrop-filter: none;
  background: rgba(245, 247, 245, 0.96);
  border-bottom: 1px solid rgba(16, 25, 22, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0a1612, #12382f);
  color: #d8f0ea; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.02em; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(10, 22, 18, 0.22);
  font-family: var(--display);
}
.brand-mark {
  font-family: var(--display);
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-actions {
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
.topbar-actions .btn {
  padding: 8px 12px; font-size: 0.84rem; white-space: nowrap;
}
.topbar-actions .top-auth.btn-ghost { padding: 8px 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  font-size: 0.85rem; overflow: hidden; font-weight: 700; color: var(--muted);
}
.nav-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.nav-fallback {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #14241c; color: #fff; font-weight: 800; font-size: 0.9rem;
}

.view { max-width: 560px; margin: 0 auto; padding: 12px 16px 32px; }

.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr;
  align-items: end; gap: 2px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  padding: 8px 6px 6px;
  box-shadow: 0 10px 36px rgba(15, 25, 22, 0.12);
}
.tab {
  position: relative;
  text-align: center; padding: 8px 4px 6px; border-radius: 14px;
  color: var(--muted); font-weight: 700; font-size: 0.72rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: color var(--dur), transform var(--dur);
  min-height: 48px; justify-content: center;
}
.tab:active { transform: scale(0.94); }
.tab-ico { font-size: 1.08rem; line-height: 1; transition: transform var(--dur) var(--ease); }
.tab.on { color: var(--accent-strong); }
.tab.on .tab-ico { transform: translateY(-1px) scale(1.08); }
.tab.on::after {
  content: ""; position: absolute; bottom: 3px;
  width: 14px; height: 3px; border-radius: 999px;
  background: var(--accent);
}
.tab-fab {
  width: 56px; height: 56px; margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #12382f, #0b6b5c);
  color: #fff; font-size: 1.85rem;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(10, 22, 18, 0.3);
  transform: translateY(-18px);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.tab-fab:hover { box-shadow: 0 16px 36px rgba(11, 107, 92, 0.35); }
.tab-fab:active { transform: translateY(-18px) scale(0.9); }
.tab-fab span { line-height: 1; margin-top: -2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: 0; border-radius: 999px; padding: 12px 18px;
  cursor: pointer; font-weight: 700;
  transition: transform .15s, box-shadow .2s, opacity .15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 107, 92, 0.22);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--urgent); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-threads { background: #111; color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.home-stack { display: flex; flex-direction: column; gap: 12px; animation: rise .4s both; }
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 16px; box-shadow: var(--shadow);
}
.search-ico { opacity: 0.5; }
.search-wrap input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 0.95rem; }

.chips {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
  padding: 2px 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1.5px solid #dbe3ef; background: #fff;
  border-radius: 999px; padding: 9px 14px; cursor: pointer;
  font-size: 0.84rem; font-weight: 700; color: var(--muted);
  transition: all .2s;
}
.chip.active, .lb-tabs .chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(11,107,92,.28);
}
.sort-row { display: flex; gap: 8px; align-items: center; }
.sort-pill {
  flex: 1; border: 1.5px solid #dbe3ef; background: #fff;
  border-radius: 999px; padding: 10px 14px; font-weight: 700; color: var(--muted);
}

.cta-card {
  position: relative; display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, #eef8f5, #d8f0ea);
  border: 1px solid #b8e0d6; border-radius: 18px; padding: 16px;
  animation: rise .45s .05s both;
}
.cta-x {
  position: absolute; top: 8px; right: 10px;
  border: 0; background: transparent; font-size: 1.2rem;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.cta-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: #fff; display: grid; place-items: center; font-size: 1.4rem;
  flex-shrink: 0; box-shadow: var(--shadow);
}
.cta-body b { display: block; margin-bottom: 4px; }
.cta-body p { margin: 0 0 10px; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.h-section-title {
  display: flex; align-items: center; gap: 6px;
  font-weight: 900; margin: 4px 0 10px; font-size: 1rem;
}
.h-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-card {
  flex: 0 0 220px;
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.h-card:active { transform: scale(0.98); }
.h-card-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #12382f; color: #fff;
  font-size: 0.75rem; font-weight: 700;
}
.h-card-top.urgent { background: linear-gradient(90deg, #ef4444, #f97316); }
.h-pill { background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 8px; font-size: 0.68rem; }
.h-card-body { padding: 12px; }
.h-tag { color: var(--muted); font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; }
.h-title {
  font-weight: 900; font-size: 0.98rem; line-height: 1.35; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.h-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.h-user { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; }

.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card {
  display: flex; flex-direction: column; gap: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 0; box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
  contain: layout paint style;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(11, 107, 92, 0.2);
}
.job-card:active { transform: scale(0.99); }
.job-card-main {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 14px 14px 10px; color: inherit;
}
.job-card-body { min-width: 0; }
.job-card-top {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px;
}
.pest-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface-soft); border: 1px solid var(--line);
  font-size: 0.7rem; font-weight: 800; color: var(--accent-strong);
}
.job-excerpt {
  margin: 0 0 8px; color: var(--muted); font-size: 0.82rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-card-actions {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px 12px; border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.job-action-link {
  flex: 1; font-size: 0.82rem; font-weight: 800; color: var(--accent-strong);
  padding: 8px 4px;
}
.job-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 1rem; cursor: pointer;
  display: grid; place-items: center;
  transition: transform var(--dur), background var(--dur), color var(--dur), border-color var(--dur);
}
.job-icon-btn:hover { border-color: rgba(11,107,92,.3); color: var(--accent); }
.job-icon-btn:active { transform: scale(0.92); }
.job-icon-btn.on { color: #c45f12; background: #fff6eb; border-color: #f0d2a8; }
.job-list .job-card:nth-child(1),
.job-list .job-card:nth-child(2),
.job-list .job-card:nth-child(3) { animation: rise .35s both; }
.job-thumb {
  width: 92px; height: 92px; border-radius: 16px;
  background: linear-gradient(145deg, #d4e8e2, #b8d9cf);
  display: grid; place-items: center; color: var(--muted); font-size: 0.72rem;
  overflow: hidden; font-weight: 700; align-content: center; gap: 2px;
}
.job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.job-thumb .pest-emoji { font-size: 1.6rem; line-height: 1; }
.job-thumb .pest-label { font-size: 0.68rem; font-weight: 800; color: #d8f0ea; }
.job-title {
  font-weight: 800; font-size: 1rem; margin: 0 0 6px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 0.78rem; align-items: center; }
.job-meta .meta-strong { color: var(--accent-strong); font-weight: 800; font-size: 0.88rem; }
.job-meta .meta-dist { font-weight: 700; color: var(--ink-secondary); }
.job-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 4px 9px;
  font-size: 0.72rem; font-weight: 800; animation: popIn .35s both;
}
.badge-urgent { background: #ffe3de; color: var(--urgent); }
.badge-open { background: #d8f0ea; color: var(--info); }
.badge-applying {
  background: #fff0e0; color: #c45f12;
}
.badge-matched { background: #f3ebe0; color: var(--matched); }
.badge-done { background: #dff5ea; color: var(--ok); }
.badge-cancel { background: #eceff2; color: var(--muted); }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 12px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 14px; padding: 13px 14px; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(11,107,92,.5); box-shadow: 0 0 0 4px rgba(11,107,92,.12);
}
.hint { color: var(--muted); font-size: 0.8rem; margin-top: 6px; line-height: 1.45; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 130px; }

.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar {
  border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle;
  background: var(--bg-deep); border: 2.5px solid #fff; box-shadow: 0 4px 14px rgba(26,35,50,.1);
}
.avatar-fallback {
  display: inline-grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, #2a3746, #1c242e);
  color: #fff; font-weight: 800; vertical-align: middle;
  border: 2.5px solid #fff;
}
.avatar-edit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.points-card {
  background: linear-gradient(135deg, #12382f 0%, #0b6b5c 70%, #2a9f8a 130%);
  color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px;
  position: relative; overflow: hidden; animation: rise .5s .05s both;
}
.points-card::before {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.08); right: -30px; top: -40px;
}
.points-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; position: relative; }
.points-big { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; }
.points-sub { opacity: 0.85; font-size: 0.82rem; margin-top: 2px; }
.level-bar {
  height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; margin-top: 12px; overflow: hidden;
}
.level-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #7dd3c0, #fff);
  border-radius: 999px; transition: width .8s cubic-bezier(.22,1,.36,1);
}

.milestone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.milestone {
  border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  background: #fff; animation: rise .4s both;
}
.milestone.on {
  border-color: rgba(11,107,92,.35);
  box-shadow: 0 8px 22px rgba(11,107,92,.12);
  background: linear-gradient(180deg, #fff 0%, #eef8f5 100%);
}
.milestone .ico { font-size: 1.35rem; display: block; margin-bottom: 4px; }
.milestone .t { font-weight: 800; font-size: 0.88rem; }
.milestone .d { color: var(--muted); font-size: 0.72rem; margin-top: 2px; }
.m-bar { height: 5px; background: #e3ebe5; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.m-bar > i {
  display: block; height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .7s cubic-bezier(.22,1,.36,1);
}

.stat-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.stat-mini > div {
  text-align: center; background: #f4f8f5; border-radius: 14px; padding: 10px 6px; border: 1px solid var(--line);
}
.stat-mini b { display: block; font-size: 1.15rem; font-weight: 900; }

.list-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start;
}
.list-item:last-child { border-bottom: 0; }

.chat { display: flex; flex-direction: column; height: calc(100dvh - 160px); min-height: 400px; }
.chat-msgs {
  flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, #eef5f2, #fff);
  border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px;
}
.bubble {
  max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: 0.94rem;
  white-space: pre-wrap; word-break: break-word; animation: bubbleIn .28s both;
}
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #d8f0ea, #b8e0d6); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: 0.8rem; }
.bubble img { max-width: 100%; border-radius: 10px; display: block; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; }
.chat-compose textarea { flex: 1; min-height: 46px; max-height: 120px; resize: vertical; }

.stars { display: flex; gap: 8px; font-size: 1.8rem; cursor: pointer; }
.star { opacity: 0.28; transition: transform .15s, opacity .15s; }
.star.on { opacity: 1; transform: scale(1.1); }

.empty { text-align: center; color: var(--muted); padding: 48px 12px; animation: rise .4s both; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.stat { background: var(--bg-deep); border-radius: 14px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b));
  transform: translateX(-50%);
  background: rgba(26, 35, 50, 0.94); color: #fff;
  padding: 12px 18px; border-radius: 999px; z-index: 100;
  font-weight: 700; box-shadow: var(--shadow);
  animation: toastIn .35s both; max-width: calc(100vw - 32px); text-align: center;
}
.publish-time { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); margin: 10px 0 4px; }
.publish-time strong { color: var(--ink); }
.detail-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }

.lb-panel { padding: 0 !important; overflow: hidden; }
.lb-hero {
  background: linear-gradient(145deg, #12382f 0%, #0b6b5c 60%, #2a9f8a 120%);
  color: #fff; padding: 22px 18px 18px; text-align: center;
}
.lb-emoji { font-size: 2rem; margin-bottom: 6px; }
.lb-tabs { display: flex; gap: 8px; padding: 14px 14px 0; overflow-x: auto; }
.lb-list { padding: 10px 14px 18px; }
.lb-row {
  display: grid; grid-template-columns: 42px 46px 1fr auto;
  gap: 10px; align-items: center;
  padding: 12px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  animation: rise .35s both;
}
.lb-row.top { background: linear-gradient(180deg, #fff 0%, #eef8f5 100%); border-color: #b8e0d6; }
.lb-rank { font-weight: 900; text-align: center; font-size: 1rem; }
.lb-name { font-weight: 800; }
.lb-score { font-weight: 900; color: var(--accent); font-size: 1.05rem; }

.v-badge {
  display: inline-grid; place-items: center;
  width: 1.05em; height: 1.05em; border-radius: 50%;
  background: linear-gradient(145deg, #0b6b5c, #085447);
  color: #fff; font-size: 0.65em; font-weight: 900;
  box-shadow: 0 2px 8px rgba(11, 107, 92, 0.35);
  vertical-align: middle; margin-left: 4px;
  line-height: 1;
}
.v-badge.lg { width: 42px; height: 42px; font-size: 1.2rem; margin: 0; }
.a-badge {
  display: inline-grid; place-items: center;
  width: 1.15em; height: 1.15em; border-radius: 6px;
  background: linear-gradient(145deg, #0f172a, #334155);
  color: #f8fafc; font-size: 0.55em; font-weight: 900;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
  vertical-align: middle; margin-left: 4px;
  line-height: 1;
  letter-spacing: 0;
}
.a-badge.lg { width: 42px; height: 42px; font-size: 0.95rem; margin: 0; border-radius: 12px; }
.a-tag {
  display: inline-flex; align-items: center;
  background: #0f172a; color: #f8fafc;
  border: 1px solid #334155; border-radius: 999px;
  padding: 2px 8px; font-size: 0.72rem; font-weight: 800;
  margin-left: 4px;
}
.v-tag {
  display: inline-flex; align-items: center;
  background: #eef8f5; color: #085447;
  border: 1px solid #b8e0d6; border-radius: 999px;
  padding: 2px 8px; font-size: 0.72rem; font-weight: 800;
  margin-left: 4px;
}
.verify-ok {
  display: flex; gap: 14px; align-items: center;
  background: #eef8f5; border: 1px solid #b8e0d6;
  border-radius: 16px; padding: 16px; margin: 12px 0 16px;
}
.verify-ways { display: grid; gap: 8px; margin: 12px 0; }
.verify-way {
  padding: 12px 14px; border-radius: 14px;
  background: #f4f8f5; border: 1px solid var(--line);
}
.verify-way b { display: block; margin-bottom: 4px; }
.verify-way p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.verify-progress {
  margin: 14px 0 4px; padding: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #eef8f5, #fff);
  border: 1px solid #b8e0d6;
}
.verify-progress-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.88rem; margin-bottom: 8px;
}
.verify-bar {
  height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.verify-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #0b6b5c, #2a9f8a);
}

.top-auth {
  padding: 8px 14px !important;
  font-size: 0.86rem !important;
}
.icon-btn[hidden], .top-auth[hidden] { display: none !important; }

.land-hero {
  position: relative;
  border-radius: 24px;
  padding: 22px 18px 20px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(45,212,191,.35), transparent 55%),
    linear-gradient(145deg, #042f2e 0%, #0f766e 55%, #14b8a6 100%);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.28);
  animation: rise .5s both;
}
.land-hero::after {
  content: none;
}
.land-hero-pro {
  position: relative;
  min-height: min(58vh, 460px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px 24px 28px;
  border-radius: 0;
  margin: -12px -16px 0;
  width: calc(100% + 32px);
  background:
    radial-gradient(680px 320px at 88% 8%, rgba(42, 159, 138, 0.28), transparent 52%),
    radial-gradient(460px 280px at 0% 100%, rgba(154, 91, 36, 0.16), transparent 50%),
    linear-gradient(160deg, #070e0c 0%, #0f241f 42%, #0b6b5c 100%);
  box-shadow: none;
  overflow: hidden;
}
.land-hero-pro::before {
  content: none;
}
.land-hero-pro::after { content: none; }
.land-hero-glow {
  position: absolute; inset: -20% auto auto 40%;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,159,138,.28), transparent 70%);
  pointer-events: none;
  will-change: auto;
}
.land-hero-grid { display: none; }
.land-brand {
  position: relative; z-index: 1;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 6.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  animation: rise .5s both;
}
.land-brand-eyebrow {
  position: relative; z-index: 1;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 240, 234, 0.78);
}
.land-hero-pro h1 {
  position: relative; z-index: 1;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 16em;
  color: rgba(255,255,255,0.92);
  animation: rise .55s .05s both;
}
.land-hero-lead {
  position: relative; z-index: 1;
  margin: 0 0 18px;
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 28rem;
  animation: rise .55s .1s both;
}
.land-hero-badge {
  display: inline-flex;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.land-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.land-hero p { margin: 0 0 16px; opacity: 0.9; font-size: 0.92rem; line-height: 1.55; max-width: 28rem; }
.land-actions { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; animation: rise .55s .14s both; }
.land-hero .btn-ghost, .land-cta .btn-ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.btn-lg { padding: 12px 18px !important; font-size: 0.95rem !important; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-pill .stat-num {
  display: block;
  font-family: "Sora", var(--font);
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-pill .stat-label {
  display: block; margin-top: 2px;
  font-size: 0.72rem; color: var(--muted); font-weight: 700;
}
@media (max-width: 360px) {
  .stat-strip { grid-template-columns: 1fr; }
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  animation: rise .5s .06s both;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.stat-card.c1::before { background: #0b6b5c; }
.stat-card.c2::before { background: #10b981; }
.stat-card.c3::before { background: #f59e0b; }
.stat-card.c4::before { background: #0b6b5c; }
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.stat-num {
  font-size: 1.7rem; font-weight: 900; letter-spacing: -0.03em;
  margin: 4px 0 2px; color: var(--ink);
}
.stat-unit { font-size: 0.75rem; color: var(--muted); font-weight: 600; }

.auth-banner {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(135deg, #eef8f5, #d8f0ea);
  border: 1px solid #b8e0d6;
  border-radius: 18px;
  padding: 16px;
  animation: rise .5s .1s both;
}
.auth-banner b { font-size: 1rem; }
.auth-banner p { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.land-page { display: flex; flex-direction: column; gap: 14px; }
.land-section {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  animation: none;
  backdrop-filter: none;
}
.land-section-soft { background: linear-gradient(180deg, #f3f7f5 0%, #fff 60%); }
.land-section h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.land-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.land-kicker-light { color: rgba(191,219,254,.95); }
.land-section h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; }
.land-lead { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.land-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.land-more { color: var(--accent); font-weight: 800; font-size: 0.88rem; white-space: nowrap; }
.how-rail { display: grid; gap: 10px; }
.how-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px;
  padding: 14px; border-radius: 16px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
}
.how-n {
  grid-row: 1 / span 2; align-self: center;
  font-family: "Geist", var(--font);
  font-size: 1.05rem; font-weight: 800; color: #085447;
}
.how-step b { font-size: 0.98rem; }
.how-step p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; grid-column: 2; }
.trust-grid { display: grid; gap: 10px; }
@media (min-width: 520px) {
  .how-rail, .trust-grid { grid-template-columns: 1fr 1fr; }
}
.trust-item {
  padding: 14px; border-radius: 16px;
  background: #f4f8f5; border: 1px solid var(--line);
}
.trust-item b { display: block; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.fit-grid { display: grid; gap: 10px; }
@media (min-width: 520px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}
.fit-card {
  padding: 16px; border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f4f8f5);
  border: 1px solid var(--line);
}
.fit-card b { display: block; margin-bottom: 4px; }
.fit-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.land-cta {
  border-radius: 22px; padding: 22px 18px;
  background: linear-gradient(145deg, #12382f, #0b6b5c);
  color: #fff; text-align: left;
  box-shadow: 0 14px 32px rgba(11,107,92,.25);
  animation: rise .45s .12s both;
}
.land-cta-pro {
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(42,159,138,.35), transparent 50%),
    linear-gradient(145deg, #0a1612, #085447);
}
.land-cta b { display: block; font-size: 1.15rem; line-height: 1.35; margin-bottom: 6px; }
.land-cta p { margin: 0 0 14px; opacity: .9; font-size: 0.9rem; line-height: 1.45; }
.land-preview { gap: 8px; }

.land-footer {
  padding: 8px 4px 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.land-footer-brand { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.land-footer-links {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin: 12px 0 8px;
}
.land-footer-links a { color: #085447; font-weight: 700; }
.land-footer-copy { margin: 0; font-size: 0.75rem; opacity: .8; }

.legal-page h1 { margin: 4px 0 6px; font-size: 1.45rem; font-weight: 900; }
.legal-body { font-size: 0.92rem; line-height: 1.65; color: var(--ink); }
.legal-body h3 { margin: 18px 0 8px; font-size: 1rem; }
.legal-body p { margin: 0 0 10px; color: #3d5348; }
.legal-body ul { margin: 0 0 12px; padding-left: 1.2em; color: #3d5348; }
.legal-body li { margin-bottom: 6px; }
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 18px 0 12px;
}
.legal-nav a {
  padding: 8px 12px; border-radius: 999px;
  background: #f1f5f9; font-size: 0.82rem; font-weight: 700; color: var(--muted);
}
.legal-nav a.on { background: #d8f0ea; color: #085447; }
.legal-inline a { color: #085447; font-weight: 700; }

.jobs-page { display: flex; flex-direction: column; gap: 14px; }
.jobs-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 16px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(320px 140px at 100% 0%, rgba(42,159,138,.35), transparent 55%),
    linear-gradient(145deg, #0a1612, #085447);
  box-shadow: 0 14px 32px rgba(10, 22, 18, 0.22);
}
.jobs-hero-actions {
  display: flex; flex-direction: column; gap: 8px; align-self: center;
}
.jobs-hero .jobs-title { color: #fff; font-size: 1.4rem; }
.jobs-hero .jobs-sub { color: rgba(255,255,255,.82); }
.jobs-hero .btn-primary {
  background: #fff; color: #0f766e; border-color: #fff;
  white-space: nowrap; align-self: stretch;
}
.jobs-hero #btn-share-site {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  white-space: nowrap;
}
.jobs-toolbar {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.filter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.filter-field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em;
}
.filter-field .sort-pill { width: 100%; }
.filter-field .sort-pill:disabled { opacity: 0.45; }
.filter-hint {
  margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4;
}
.chips .chip:disabled {
  opacity: 0.38; cursor: not-allowed;
}
.loc-banner {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #eef8f5, #fff);
  border: 1px solid #b8e0d6;
}
.loc-banner-text b { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.loc-banner-text p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.loc-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jobs-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.jobs-title { margin: 0; font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; }
.jobs-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.job-card.is-done { opacity: 0.72; background: #f4f8f5; }
.job-card.is-urgent-card { border-color: rgba(239,68,68,.25); }
.job-thumb-empty {
  background: linear-gradient(145deg, #d8f0ea, #eef8f5);
  color: #085447; font-weight: 800;
}
.done-section { opacity: 0.95; }

.apps-page, .notif-page { display: flex; flex-direction: column; gap: 14px; }
.apps-hero {
  padding: 18px 16px; border-radius: 22px;
  background: linear-gradient(180deg, #f5f9f7, #fff);
  border: 1px solid var(--line);
}
.apps-hero h1 { margin: 0; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.apps-h { margin: 4px 0 10px; font-size: 0.92rem; font-weight: 800; color: var(--muted); }
.apps-list { display: flex; flex-direction: column; gap: 10px; }
.apps-sections { display: flex; flex-direction: column; gap: 16px; }
.app-card, .my-app-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; box-shadow: var(--shadow);
}
.app-card-top { display: flex; gap: 12px; align-items: flex-start; }
.app-card-who { flex: 1; min-width: 0; }
.app-name { font-weight: 800; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.app-msg {
  margin: 12px 0; padding: 12px; border-radius: 12px;
  background: #f2f7f4; color: var(--ink); font-size: 0.9rem; line-height: 1.5;
}
.app-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-status {
  font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 4px 8px; white-space: nowrap;
}
.app-status.wait, .status-wait .app-status { background: #fff0e0; color: #c45f12; }
.app-status.ok, .status-ok .app-status { background: #dff5ea; color: var(--ok); }
.app-status.no, .status-no .app-status { background: #eceff2; color: var(--muted); }
.my-app-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.my-app-card.status-ok { border-color: #a7f3d0; }
.my-app-card.status-wait { border-color: #fed7aa; }
.my-app-card.is-deleted { opacity: 0.85; background: #f4f8f5; }
.my-app-link { display: block; color: inherit; text-decoration: none; }
.my-app-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-sm { padding: 8px 12px; font-size: 0.82rem; }
.my-app-card.is-deleted { opacity: 0.85; background: #f4f8f5; }
.my-app-link { display: block; color: inherit; text-decoration: none; }
.my-app-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-sm { padding: 8px 12px; font-size: 0.82rem; }

.notif-actions { display: flex; justify-content: flex-end; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-card {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: flex-start;
  padding: 14px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.notif-card.unread { border-color: #b8e0d6; background: linear-gradient(180deg, #eef8f5, #fff); }
.notif-card.nearby.unread { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff); }
.notif-card.read { opacity: 0.7; }
.notif-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: #eef4f0; font-size: 1.1rem;
}
.notif-body b { display: block; margin-bottom: 4px; }
.notif-body p { margin: 0 0 4px; color: #3d5348; font-size: 0.88rem; line-height: 1.45; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #0b6b5c; margin-top: 8px;
}

body.is-land .view { max-width: 640px; }

@keyframes glowDrift {
  from { transform: translate(-10px, 0) scale(1); opacity: .7; }
  to { transform: translate(18px, 12px) scale(1.08); opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11,107,92,.25); }
  50% { box-shadow: 0 0 0 6px rgba(11,107,92,0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.a2hs-banner {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(72px + var(--safe-b));
  z-index: 45; /* 低於 tabbar(50)，避免擋住導覽；仍高於內容 */
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #042f2e, #0f766e); color: #fff;
  box-shadow: 0 14px 32px rgba(4, 47, 46, 0.35);
  animation: rise .35s both;
  pointer-events: auto;
}
.a2hs-banner[hidden] { display: none !important; }
.a2hs-banner-text { min-width: 0; padding-right: 4px; }
.a2hs-banner b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.a2hs-banner span { display: block; font-size: 0.78rem; opacity: .88; line-height: 1.35; }
.a2hs-banner .btn { flex-shrink: 0; padding: 10px 12px; font-size: 0.82rem; white-space: nowrap; }
.a2hs-banner-actions {
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
}
.a2hs-banner .a2hs-mini-x {
  border: 0; background: rgba(255,255,255,.14);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  border-radius: 999px; padding: 6px 10px; cursor: pointer; line-height: 1;
}
body.has-a2hs-banner {
  padding-bottom: calc(160px + var(--safe-b));
}
@media (min-width: 720px) {
  .a2hs-banner { bottom: 24px; max-width: 420px; margin: 0 auto; left: 0; right: 0; z-index: 60; }
  body.has-a2hs-banner { padding-bottom: 120px; }
}

.a2hs-sheet[hidden] { display: none !important; }
.a2hs-sheet {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: end center;
  padding: var(--safe-t) 0 0;
}
.a2hs-backdrop {
  position: absolute; inset: 0; background: rgba(4, 47, 46, 0.45);
  backdrop-filter: none;
}
.a2hs-panel {
  position: relative; z-index: 1;
  width: min(100%, 480px);
  max-height: min(calc(100dvh - var(--safe-t) - 12px), 720px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(20, 36, 28, 0.18);
  animation: rise .35s both;
  overflow: hidden;
}
.a2hs-panel-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0 18px;
}
.a2hs-panel-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 18px 12px;
  flex: 1; min-height: 0;
}
.a2hs-panel-actions {
  flex-shrink: 0;
  padding: 10px 18px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: #fff;
}
.a2hs-panel-actions .btn { margin-bottom: 8px; }
.a2hs-panel-actions .btn:last-child { margin-bottom: 0; }
.a2hs-x {
  position: static;
  border: 0; background: #f2f5f2;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.35rem; color: var(--muted); cursor: pointer; line-height: 1;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.a2hs-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(145deg, #ccfbf1, #f0fdfa);
  margin-bottom: 10px;
}
.a2hs-panel h2 { margin: 0; font-size: 1.2rem; font-weight: 900; flex: 1; min-width: 0; }
.a2hs-lead { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.a2hs-steps {
  margin: 0 0 12px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.a2hs-steps li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  font-size: 0.92rem; line-height: 1.45; font-weight: 600;
}
.a2hs-steps .n {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0f766e; color: #fff; font-size: 0.8rem; font-weight: 800;
}
.a2hs-steps .k {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; margin: 0 2px; border-radius: 8px;
  background: #e6f7f3; color: #0f766e; font-weight: 800; font-size: 0.86rem;
}
.a2hs-note { margin: 0 0 4px; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.install-card {
  margin: 12px 0 4px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #f0fdfa, #fff);
  border: 1px solid #99f6e4;
}
.install-card b { display: block; margin-bottom: 4px; }
.install-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.install-page { padding-bottom: 24px; }
.install-page .btn-block { position: relative; z-index: 1; }
.install-status {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px;
}
.install-pill {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800;
  background: #eef4f0; color: var(--muted);
  border: 1px solid var(--line);
}
.install-pill.on {
  background: #ccfbf1; color: #0f766e; border-color: #99f6e4;
}

.me-menu-label {
  margin: 16px 0 4px; padding: 0 2px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.me-menu-label:first-child { margin-top: 4px; }
.me-menu .list-item a {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  width: 100%;
}
.me-menu-sub {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); line-height: 1.35;
}


.a2hs-banner {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(72px + var(--safe-b));
  z-index: 45; /* 低於 tabbar(50)，避免擋住導覽；仍高於內容 */
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #042f2e, #0f766e); color: #fff;
  box-shadow: 0 14px 32px rgba(4, 47, 46, 0.35);
  animation: rise .35s both;
  pointer-events: auto;
}
.a2hs-banner[hidden] { display: none !important; }
.a2hs-banner-text { min-width: 0; padding-right: 4px; }
.a2hs-banner b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.a2hs-banner span { display: block; font-size: 0.78rem; opacity: .88; line-height: 1.35; }
.a2hs-banner .btn { flex-shrink: 0; padding: 10px 12px; font-size: 0.82rem; white-space: nowrap; }
.a2hs-banner-actions {
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
}
.a2hs-banner .a2hs-mini-x {
  border: 0; background: rgba(255,255,255,.14);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  border-radius: 999px; padding: 6px 10px; cursor: pointer; line-height: 1;
}
body.has-a2hs-banner {
  padding-bottom: calc(160px + var(--safe-b));
}
@media (min-width: 720px) {
  .a2hs-banner { bottom: 24px; max-width: 420px; margin: 0 auto; left: 0; right: 0; z-index: 60; }
  body.has-a2hs-banner { padding-bottom: 120px; }
}

.a2hs-sheet[hidden] { display: none !important; }
.a2hs-sheet {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: end center;
  padding: var(--safe-t) 0 0;
}
.a2hs-backdrop {
  position: absolute; inset: 0; background: rgba(4, 47, 46, 0.45);
  backdrop-filter: none;
}
.a2hs-panel {
  position: relative; z-index: 1;
  width: min(100%, 480px);
  max-height: min(calc(100dvh - var(--safe-t) - 12px), 720px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(20, 36, 28, 0.18);
  animation: rise .35s both;
  overflow: hidden;
}
.a2hs-panel-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0 18px;
}
.a2hs-panel-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 18px 12px;
  flex: 1; min-height: 0;
}
.a2hs-panel-actions {
  flex-shrink: 0;
  padding: 10px 18px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: #fff;
}
.a2hs-panel-actions .btn { margin-bottom: 8px; }
.a2hs-panel-actions .btn:last-child { margin-bottom: 0; }
.a2hs-x {
  position: static;
  border: 0; background: #f2f5f2;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.35rem; color: var(--muted); cursor: pointer; line-height: 1;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.a2hs-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(145deg, #ccfbf1, #f0fdfa);
  margin-bottom: 10px;
}
.a2hs-panel h2 { margin: 0; font-size: 1.2rem; font-weight: 900; flex: 1; min-width: 0; }
.a2hs-lead { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.a2hs-steps {
  margin: 0 0 12px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.a2hs-steps li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  font-size: 0.92rem; line-height: 1.45; font-weight: 600;
}
.a2hs-steps .n {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0f766e; color: #fff; font-size: 0.8rem; font-weight: 800;
}
.a2hs-steps .k {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; margin: 0 2px; border-radius: 8px;
  background: #e6f7f3; color: #0f766e; font-weight: 800; font-size: 0.86rem;
}
.a2hs-note { margin: 0 0 4px; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.install-card {
  margin: 12px 0 4px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #f0fdfa, #fff);
  border: 1px solid #99f6e4;
}
.install-card b { display: block; margin-bottom: 4px; }
.install-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.install-page { padding-bottom: 24px; }
.install-page .btn-block { position: relative; z-index: 1; }
.install-status {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px;
}
.install-pill {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800;
  background: #eef4f0; color: var(--muted);
  border: 1px solid var(--line);
}
.install-pill.on {
  background: #ccfbf1; color: #0f766e; border-color: #99f6e4;
}

.me-menu-label {
  margin: 16px 0 4px; padding: 0 2px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.me-menu-label:first-child { margin-top: 4px; }
.me-menu .list-item a {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  width: 100%;
}
.me-menu-sub {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); line-height: 1.35;
}


@media (min-width: 720px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  .view { max-width: 640px; padding-top: 22px; }
}

/* ===== commercial polish layer ===== */
.view { max-width: 600px; }
.panel {
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.job-card {
  border-radius: 20px;
  border: 1px solid rgba(16,25,22,0.07);
  contain: layout paint style;
}
.job-card:hover {
  border-color: rgba(11,107,92,0.22);
}
.tabbar {
  /* floating glass defined above — keep */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.job-thumb-empty {
  background: linear-gradient(145deg, #12382f, #0b6b5c);
  color: #d8f0ea;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.job-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.meta-strong { color: var(--accent-strong) !important; }
.stat-pill {
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  box-shadow: none;
  border: 1px solid rgba(16,25,22,0.06);
}
.stat-pill .stat-num { font-family: var(--display); color: var(--accent-strong); }
.jobs-hero {
  border-radius: 20px;
  background:
    radial-gradient(360px 160px at 100% 0%, rgba(42,159,138,.28), transparent 55%),
    linear-gradient(145deg, #0a1612, #12382f 55%, #0b6b5c);
}
.jobs-hero .btn-primary {
  background: #fff !important;
  color: var(--accent-strong) !important;
  box-shadow: none !important;
}
.chip.active, .lb-tabs .chip.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(11,107,92,.22);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(11,107,92,.45);
  box-shadow: 0 0 0 4px rgba(11,107,92,.12);
}
.points-card {
  background: linear-gradient(135deg, #0a1612 0%, #12382f 55%, #0b6b5c 120%);
}
.bubble.me {
  background: linear-gradient(135deg, #d8f0ea, #b8e0d6);
}
.me-menu .list-item a,
.list-item a {
  transition: color .15s;
}
.tabbar {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 36px rgba(15, 25, 22, 0.12);
}
.tab.on { color: var(--accent-strong); }
.h-card-top {
  background: linear-gradient(90deg, #0a1612, #12382f);
}
.h-card-top.urgent {
  background: linear-gradient(90deg, #9a2f26, #c23b2e);
}
.land-cta-pro {
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(42,159,138,.3), transparent 50%),
    linear-gradient(145deg, #0a1612, #0b6b5c);
  border-radius: 20px;
}
.land-footer-links a { color: var(--accent-strong); }
.legal-nav a.on { background: var(--accent-soft); color: var(--accent-strong); }
.btn-ghost {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(16,25,22,0.1);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(11,107,92,0.35); background: #fff; }
@media (min-width: 720px) {
  .land-hero-pro {
    margin: 0;
    width: 100%;
    border-radius: 24px;
    min-height: 420px;
  }
}

 
/* ===== 2026 Jobs marketplace polish ===== */
.jobs-page { gap: 16px; }
.jobs-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 22px 18px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(360px 160px at 100% 0%, rgba(42,159,138,.28), transparent 55%),
    linear-gradient(145deg, #0a1612, #12382f 55%, #0b6b5c);
  box-shadow: 0 14px 32px rgba(10, 22, 18, 0.18);
}
.jobs-hero-copy { flex: 1; min-width: 0; }
.jobs-kicker {
  margin: 0 0 6px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(216,240,234,.85);
}
.jobs-hero .jobs-title {
  margin: 0; color: #fff; font-size: clamp(1.25rem, 4vw, 1.45rem);
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
}
.jobs-hero .jobs-sub { margin: 6px 0 0; color: rgba(255,255,255,.78); font-size: 0.86rem; line-height: 1.45; max-width: 22rem; }
.jobs-hero-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex-shrink: 0;
}
.jobs-cta-primary {
  background: #fff !important; color: var(--accent-strong) !important;
  padding: 10px 16px !important; font-size: 0.88rem !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.15) !important; white-space: nowrap;
}
.jobs-cta-secondary {
  background: rgba(255,255,255,.12) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  padding: 8px 14px !important; font-size: 0.82rem !important; white-space: nowrap;
}
.stat-strip[hidden] { display: none !important; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.loc-banner {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px;
  align-items: start;
  padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #eef8f5, #fff);
  border: 1px solid #b8e0d6;
  box-shadow: var(--shadow);
}
.loc-banner-ico {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: #fff; border: 1px solid var(--line);
}
.loc-banner-actions {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px;
}
.btn-sm { padding: 8px 14px !important; font-size: 0.84rem !important; min-height: 40px; }

.jobs-toolbar { gap: 12px; padding: 14px; border-radius: 20px; }
.search-panel { position: relative; }
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 16px; padding: 10px 12px;
  box-shadow: var(--shadow);
  transition: border-color var(--dur, .22s), box-shadow var(--dur, .22s);
}
.search-wrap:focus-within {
  border-color: rgba(11,107,92,.45);
  box-shadow: 0 0 0 4px rgba(11,107,92,.12), var(--shadow);
}
.search-clear, .search-filter-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 0;
  background: var(--surface-soft, #f6f9f7); color: var(--muted);
  font-size: 1.05rem; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center;
}
.search-clear:hover, .search-filter-btn:hover { background: var(--accent-soft); color: var(--accent-strong); }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: var(--shadow-hover);
}
.suggest-group + .suggest-group { margin-top: 10px; }
.suggest-label {
  display: block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest-chip {
  border: 1px solid var(--line); background: var(--surface-soft, #f6f9f7);
  border-radius: 999px; padding: 7px 12px; font-size: 0.8rem; font-weight: 700;
  color: var(--ink-secondary, #3d4f47); cursor: pointer;
}
.suggest-chip:hover { border-color: rgba(11,107,92,.35); background: var(--accent-soft); color: var(--accent-strong); }

.filter-trigger {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 14px; padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
  font: inherit;
}
.filter-trigger:hover:not(:disabled) {
  border-color: rgba(11,107,92,.35);
  box-shadow: 0 0 0 3px rgba(11,107,92,.08);
}
.filter-trigger:disabled { opacity: 0.45; cursor: not-allowed; }
.ft-label { font-size: 0.68rem; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.ft-value { font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.sort-trigger { flex: 1; }
.pest-chip { display: inline-flex; align-items: center; gap: 6px; }
.chip {
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
  min-height: 40px;
}
.chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(11,107,92,.3);
  color: var(--accent-strong);
}
.chip:active:not(:disabled) { transform: scale(0.96); }
.seg-control {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; padding: 4px; border-radius: 14px;
  background: var(--bg-deep); border: 1px solid var(--line);
}
.seg {
  border: 0; background: transparent; border-radius: 11px;
  padding: 10px 6px; font-size: 0.78rem; font-weight: 800;
  color: var(--muted); cursor: pointer; min-height: 40px;
  transition: background .2s, color .2s, transform .2s;
}
.seg:hover { color: var(--accent-strong); }
.seg.active {
  background: #fff; color: var(--accent-strong);
  box-shadow: 0 2px 8px rgba(15,25,22,.08);
}
.seg:active { transform: scale(0.97); }

.empty-jobs {
  padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty-illu {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 1.6rem; margin-bottom: 4px;
}
.empty-jobs b { font-size: 1.02rem; }
.empty-jobs p { margin: 0 0 10px; font-size: 0.88rem; }

.na-picker {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 200ms cubic-bezier(.22,1,.36,1);
}
.na-picker.open { opacity: 1; pointer-events: auto; }
.na-picker-backdrop {
  position: absolute; inset: 0; background: rgba(15, 25, 22, 0.4);
  backdrop-filter: blur(2px);
}
.na-picker-panel {
  position: relative; z-index: 1; width: min(480px, 100%);
  max-height: min(72vh, 560px); overflow: auto;
  background: #fff; border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(15,25,22,.18);
  transform: translateY(24px); transition: transform 220ms cubic-bezier(.22,1,.36,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.na-picker.open .na-picker-panel { transform: none; }
.na-picker.is-pop { align-items: center; padding: 24px; }
.na-picker.is-pop .na-picker-panel {
  border-radius: 20px; transform: scale(0.96) translateY(8px);
  max-height: min(70vh, 520px);
}
.na-picker.is-pop.open .na-picker-panel { transform: none; }
.na-picker-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px; position: sticky; top: 0; background: #fff; z-index: 1;
}
.na-picker-head b { font-family: var(--display); font-size: 1.05rem; }
.na-picker-x {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #f6f9f7; font-size: 1.2rem; cursor: pointer;
}
.na-picker-list { padding: 4px 10px 16px; display: flex; flex-direction: column; gap: 4px; }
.na-picker-opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 14px 12px; border-radius: 14px; font-weight: 700; cursor: pointer;
  color: var(--ink); min-height: 48px;
}
.na-picker-opt:hover { background: #f6f9f7; }
.na-picker-opt.on { background: var(--accent-soft); color: var(--accent-strong); }
.na-check { color: var(--accent); font-weight: 900; }

body { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 720px) {
  .job-card-main { grid-template-columns: 110px 1fr; }
  .job-thumb { width: 110px; height: 110px; }
}
