:root {
  --bg: #f4f0e7;
  --surface: #fbfaf6;
  --surface-soft: #efebe2;
  --fg: #1c211c;
  --muted: #697068;
  --line: #ddd8cd;
  --accent: #315b43;
  --accent-2: #b55f3a;
  --danger: #9f4038;
  --line-brand: #06c755;
  --line-brand-hover: #05b84e;
  --shadow: 0 1px 2px rgba(28, 33, 28, 0.04);
  --radius: 10px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", system-ui, sans-serif;
  --font-display: "Noto Serif TC", "Iowan Old Style", "PMingLiU", Georgia, serif;
  --mono: "JetBrains Mono", Consolas, "SFMono-Regular", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.hidden { display: none !important; }
.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 245px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--surface);
  font-weight: 900;
}
.brand strong { display: block; font-size: 18px; letter-spacing: 0; }
.brand span:last-child { display: block; color: var(--muted); font-size: 12px; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  min-height: 34px;
  padding: 6px 11px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.tab.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 4px rgba(35, 37, 33, 0.10);
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.session-label {
  color: var(--muted);
  font-size: 13px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: calc(100vh - 64px);
}
.side {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: auto;
  border-right: 1px solid var(--line);
  border-radius: 0;
}
.workspace { min-width: 0; padding: 22px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(35, 37, 33, 0.03);
}
.stack { display: grid; gap: 16px; align-content: start; }
.small-gap { gap: 10px; }
.two-col { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr); gap: 16px; align-items: start; }
.worker-sections, .employer-sections { display: grid; gap: 16px; max-width: 820px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.status-card span { color: var(--muted); font-size: 13px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.view { display: none; }
.view.active { display: grid; gap: 16px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.section-head h2, .panel h2 { font-size: 24px; line-height: 1.25; letter-spacing: 0; }
.panel h3 { font-size: 18px; line-height: 1.3; letter-spacing: 0; }
.panel h4 { font-size: 14px; color: var(--muted); margin-top: 4px; }
.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.toolbar { display: flex; gap: 8px; align-items: center; }
.field-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.field {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  padding: 8px 10px;
  outline: 0;
}
.field.compact { width: 220px; }
.field.area { min-height: 100px; resize: vertical; }
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.toggle {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 700;
}
.toggle input { accent-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  padding: 8px 12px;
  font-weight: 800;
  font-size: 14px;
}
.btn:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn.line-login {
  background: var(--line-brand);
  border-color: var(--line-brand);
  color: var(--surface);
}
.btn.line-login:hover { background: var(--line-brand-hover); }
.btn.ghost { background: transparent; }
.btn.icon { width: 38px; padding: 0; font-family: var(--mono); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }

.chip-list, .skill-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.collapsed .skill-picker,
.collapsed #saveWorkerSkillsBtn {
  display: none;
}
.chip, .skill-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  padding: 5px 9px;
  font-size: 13px;
}
.chip strong { font-weight: 850; }
.skill-choice input, .skill-choice select { accent-color: var(--accent); }
.skill-choice small {
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 6px;
  font-size: 12px;
}
.skill-choice select {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding-left: 6px;
  outline: 0;
}
.skill-choice.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.card-list { display: grid; gap: 10px; }
.card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card:hover, .card.selected {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card h3 { font-size: 18px; letter-spacing: 0; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.badge.open { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.badge.score { background: color-mix(in srgb, var(--accent-2) 15%, var(--surface)); color: color-mix(in srgb, var(--accent-2) 76%, black); }
.pay { font-family: var(--mono); font-weight: 900; color: var(--accent); white-space: nowrap; }
.mini-list { display: grid; gap: 8px; }
.mini-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-size: 13px;
}
.thread-box {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
}
.message {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
}
.message .meta-row { margin-bottom: 4px; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
}
.toast.show { display: block; }

@media (max-width: 1120px) {
  .topbar { flex-wrap: wrap; }
  .account { margin-left: 0; }
  .layout { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar, .workspace { padding: 12px; }
  .brand { min-width: 0; }
  .tabs { width: 100%; overflow: auto; }
  .section-head, .toolbar, .card-head { flex-direction: column; align-items: stretch; }
  .field.compact { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ─── 復興區公開商家地圖 ─────────────────────────────────────────── */
body[data-current-view="explore"] { overflow: hidden; }
body[data-current-view="explore"] .layout { display: block; }
body[data-current-view="explore"] .side { display: none; }
body[data-current-view="explore"] .workspace { padding: 0; }
#exploreView.active { display: block; }

.guide-shell {
  min-height: calc(100vh - 64px);
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(340px, 410px) 1fr;
  background: var(--surface-soft);
}

.guide-panel {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 30px 24px 40px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.guide-intro { padding: 10px 4px 24px; }
.guide-intro h1 {
  max-width: 9ch;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.guide-intro > p:not(.eyebrow) {
  max-width: 30ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.demo-note {
  display: inline-flex;
  margin-top: 14px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
}

.business-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.business-search-wrap:focus-within {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
.business-search-wrap svg {
  width: 18px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}
.business-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
}

.category-filters {
  display: flex;
  gap: 7px;
  margin: 13px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filters::-webkit-scrollbar { display: none; }
.category-chip {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.category-chip:hover,
.category-chip.active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--surface);
}

.guide-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 3px;
}
.guide-results-head strong { font-family: var(--font-display); font-size: 17px; }
.guide-results-head span { color: var(--muted); font-size: 12px; }
.business-list { display: grid; gap: 10px; }

.business-card {
  width: 100%;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--fg);
  text-align: left;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.business-card:hover,
.business-card.selected {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--fg) 35%, var(--line));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--fg) 9%, transparent);
}
.business-card-visual,
.business-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-soft));
  color: color-mix(in srgb, var(--accent) 85%, var(--fg));
}
.business-card-visual { min-height: 88px; border-radius: 10px; }
.business-card-visual::before,
.business-cover::before,
.business-card-visual::after,
.business-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .14;
}
.business-card-visual::before,
.business-cover::before { width: 130%; height: 90%; left: -55%; top: 35%; }
.business-card-visual::after,
.business-cover::after { width: 110%; height: 70%; right: -54%; top: -25%; }
.business-card-visual span { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.business-card-copy { min-width: 0; padding: 3px 2px; }
.business-card-kicker {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}
.business-card h3 {
  margin-top: 4px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-card p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.business-card-job {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.map-stage { position: relative; min-width: 0; height: 100%; overflow: hidden; }
.business-map { width: 100%; height: 100%; background: var(--surface-soft); }
.business-marker {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid var(--surface);
  border-radius: 50% 50% 50% 8px;
  background: #1e5aa8;
  color: var(--surface);
  box-shadow: 0 6px 18px rgba(30, 90, 168, 0.35);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  transform: rotate(-45deg);
}
.business-marker span { transform: rotate(45deg); }
.business-marker:hover,
.business-marker.active { background: #d97706; transform: rotate(-45deg) scale(1.12); }

.map-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}
.map-action {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--fg);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--fg) 10%, transparent);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}
.mobile-only { display: none; }

.business-drawer {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1001;
  width: min(390px, calc(100% - 28px));
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--fg) 20%, transparent);
  backdrop-filter: blur(18px);
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .2s ease;
}
.business-drawer.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
}
.business-cover { min-height: 190px; color: var(--accent); }
.business-cover strong { font-family: var(--font-display); font-size: 72px; opacity: .8; }
.business-detail { padding: 24px; }
.business-detail .eyebrow { margin-bottom: 8px; }
.business-detail h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.business-detail-lead { margin-top: 8px; color: var(--accent-2); font-size: 14px; font-weight: 800; }
.business-detail-description { margin-top: 18px; color: var(--muted); line-height: 1.8; }
.detail-facts { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.detail-fact { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-fact span:first-child { color: var(--muted); }
.product-block { margin-top: 24px; }
.product-block h3 { font-size: 17px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.product-tag { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 12px; }
.job-callout {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
.job-callout span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.job-callout strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 17px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.detail-actions .btn { justify-content: center; text-decoration: none; }
.business-empty { padding: 28px 10px; color: var(--muted); text-align: center; }

@media (max-width: 1120px) {
  body[data-current-view="explore"] .topbar { flex-wrap: nowrap; }
  .guide-shell { height: calc(100vh - 64px); grid-template-columns: minmax(320px, 360px) 1fr; }
}

@media (max-width: 760px) {
  body[data-current-view="explore"] .topbar { padding: 9px 12px; }
  body[data-current-view="explore"] .brand span:last-child { display: none; }
  body[data-current-view="explore"] .account { display: none; }
  body[data-current-view="explore"] .tabs { width: auto; margin-left: auto; }
  body[data-current-view="explore"] .tab { display: none; }
  body[data-current-view="explore"] .tab[data-view="explore"],
  body[data-current-view="explore"] .tab[data-view="work"] { display: block; }
  .guide-shell {
    position: relative;
    height: calc(100vh - 57px);
    min-height: calc(100vh - 57px);
    display: block;
  }
  .guide-panel {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    padding: 20px 16px 90px;
    border: 0;
    transform: translateY(100%);
    transition: transform .28s ease;
  }
  .guide-shell.list-mode .guide-panel { transform: translateY(0); }
  .guide-intro h1 { font-size: 42px; }
  .guide-intro > p:not(.eyebrow) { font-size: 14px; }
  .map-stage { height: 100%; }
  .map-actions { top: 12px; right: 12px; }
  .mobile-only { display: inline-flex; }
  .guide-shell.list-mode .map-actions { position: fixed; top: auto; right: 16px; bottom: 18px; z-index: 8; }
  .guide-shell.list-mode .map-action:not(.mobile-only) { display: none; }
  .guide-shell.list-mode .mobile-only::after { content: "地圖"; }
  .guide-shell:not(.list-mode) .mobile-only::after { content: "清單"; }
  .guide-shell .mobile-only { font-size: 0; }
  .guide-shell .mobile-only::after { font-size: 12px; }
  .business-drawer { inset: auto 8px 8px; width: auto; max-height: min(76vh, 680px); transform: translateY(calc(100% + 20px)); }
  .business-drawer.open { transform: translateY(0); }
  .business-cover { min-height: 145px; }
  .business-detail { padding: 20px; }
  .business-detail h2 { font-size: 28px; }
}

/* ─── Editorial refresh · Fuxing field guide ─────────────────────── */
html { background: var(--bg); }

body {
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #dce8dc;
  color: var(--fg);
}

.app {
  grid-template-rows: 76px minmax(0, 1fr);
}

.topbar {
  top: 12px;
  width: calc(100% - 32px);
  height: 64px;
  min-height: 64px;
  margin: 12px auto 0;
  padding: 8px 10px 8px 14px;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.88);
  box-shadow: 0 1px 2px rgba(28, 33, 28, 0.04);
  backdrop-filter: saturate(130%) blur(18px);
  -webkit-backdrop-filter: saturate(130%) blur(18px);
}

.brand {
  min-width: 272px;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand span:last-child {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.tabs {
  gap: 2px;
  padding: 3px;
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(239, 235, 226, 0.72);
}

.tab {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tab:hover { color: var(--fg); }
.tab:active { transform: scale(0.98); }
.tab.active {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.session-label {
  font-family: var(--mono);
  font-size: 10px;
}

.layout { min-height: 0; }
.workspace { padding: 28px 32px 48px; }

.panel,
.card,
.status-card,
.mini-item,
.message,
.thread-box {
  border-color: var(--line);
  box-shadow: none;
}

.panel { background: var(--surface); }
.section-head { padding: 22px 0 10px; }
.section-head h2,
.panel h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.panel h3,
.card h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.field-label { font-weight: 600; }
.field {
  border-radius: 8px;
  background: var(--surface);
}

.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(49, 91, 67, 0.09);
}

.btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); }
.card:hover,
.card.selected { box-shadow: 0 2px 8px rgba(28, 33, 28, 0.04); }

body[data-current-view="explore"] .app { height: 100vh; }
body[data-current-view="explore"] .layout {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.guide-shell {
  height: calc(100vh - 76px);
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(390px, 440px) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.guide-panel {
  padding: 44px 30px 48px;
  background: var(--bg);
  border-right: 1px solid var(--line);
}

.guide-panel::-webkit-scrollbar { width: 7px; }
.guide-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.guide-intro {
  position: relative;
  padding: 4px 2px 34px;
}

.guide-intro::after {
  content: "FIELD NOTE 01  /  FUXING";
  position: absolute;
  top: 5px;
  right: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.guide-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.guide-intro .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.guide-intro h1 {
  max-width: 8.5ch;
  margin-top: 20px;
  font-size: clamp(46px, 4.3vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.guide-intro > p:not(.eyebrow) {
  max-width: 31ch;
  margin-top: 21px;
  font-size: 14px;
  line-height: 1.85;
}

.demo-note {
  margin-top: 18px;
  padding: 4px 8px;
  border-color: #e5d8bd;
  border-radius: 999px;
  background: #fbf3db;
  color: #805c19;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.business-search-wrap {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.business-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(49, 91, 67, 0.08);
}

.business-search-wrap input { font-size: 13px; }

.category-filters {
  gap: 6px;
  margin: 12px 0 30px;
  padding-bottom: 2px;
}

.category-chip {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--accent);
  background: #edf3ec;
  color: var(--accent);
}

.guide-results-head {
  margin-bottom: 0;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
}

.guide-results-head strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.guide-results-head span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.business-list {
  display: block;
  counter-reset: business-index;
}

.business-card {
  position: relative;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 15px;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  counter-increment: business-index;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}

.business-card::after {
  content: counter(business-index, decimal-leading-zero);
  position: absolute;
  right: 2px;
  top: 17px;
  color: #999b94;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.business-card:hover,
.business-card.selected {
  padding-left: 6px;
  padding-right: 6px;
  border-color: var(--line);
  background: rgba(251, 250, 246, 0.72);
  box-shadow: none;
  transform: none;
}

.business-card-visual {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf3ec;
  color: var(--accent);
}

.business-card-visual span {
  font-size: 28px;
  font-weight: 600;
}

.business-card-copy { padding: 1px 26px 0 0; }
.business-card-kicker {
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.business-card h3 {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 600;
}

.business-card p {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.65;
}

.business-card-job { font-size: 10px; }

.map-stage::before {
  content: "FUXING DISTRICT  ·  24.745°N / 121.368°E";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(251, 250, 246, 0.88);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.business-marker {
  width: 36px;
  height: 36px;
  border-width: 2px;
  border-radius: 50% 50% 50% 7px;
  background: #1e5aa8;
  box-shadow: 0 2px 8px rgba(30, 90, 168, 0.35);
  font-size: 12px;
  font-weight: 600;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}

.business-marker:hover,
.business-marker.active { background: #d97706; }

.map-actions { top: 18px; right: 18px; }
.map-action {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.9);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.map-action:active { transform: scale(0.98); }

.business-drawer {
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(400px, calc(100% - 36px));
  border-color: var(--line);
  border-radius: 12px;
  background: rgba(251, 250, 246, 0.97);
  box-shadow: 0 8px 24px rgba(28, 33, 28, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.drawer-close {
  top: 10px;
  right: 10px;
  border-color: var(--line);
  background: rgba(251, 250, 246, 0.9);
}

.business-cover {
  min-height: 178px;
  border-bottom: 1px solid var(--line);
  background: #edf3ec;
  color: var(--accent);
}

.business-cover strong {
  font-size: 68px;
  font-weight: 600;
}

.business-detail { padding: 28px; }
.business-detail h2 {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.business-detail-lead {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.business-detail-description {
  font-size: 14px;
  line-height: 1.85;
}

.detail-fact {
  grid-template-columns: 64px 1fr;
  padding: 13px 0;
  font-size: 12px;
}

.product-tag {
  border-radius: 999px;
  background: #fbf3db;
  color: #765616;
  font-size: 11px;
}

.job-callout {
  border-color: #cfdecf;
  border-radius: 8px;
  background: #edf3ec;
}

.detail-actions { margin-top: 26px; }

.editorial-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.editorial-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .topbar { flex-wrap: nowrap; }
  .brand { min-width: 220px; }
  .account { display: none; }
  .guide-shell { grid-template-columns: minmax(340px, 390px) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding-left: 10px;
  }
  .brand { min-width: auto; }
  .brand span:last-child { display: none; }
  .tabs { margin-left: auto; overflow-x: auto; }
  .tab { padding-inline: 11px; }
}

@media (max-width: 760px) {
  .app { grid-template-rows: 70px minmax(0, 1fr); }
  body[data-current-view="explore"] .topbar { padding: 7px 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 15px; }
  .guide-shell {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
  }
  .guide-panel {
    height: calc(100vh - 70px);
    padding: 30px 20px 92px;
  }
  .guide-intro { padding-bottom: 28px; }
  .guide-intro h1 { font-size: 46px; }
  .guide-intro::after { display: none; }
  .map-stage::before { display: none; }
  .business-drawer {
    inset: auto 8px 8px;
    width: auto;
    border-radius: 12px;
  }
  .business-cover { min-height: 138px; }
  .business-detail { padding: 22px; }
}

@media (max-width: 560px) {
  body[data-current-view="explore"] .brand div { display: none; }
  .topbar { gap: 8px; }
  .tabs { width: auto; }
  .tab { padding-inline: 10px; }
  .guide-intro h1 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .editorial-reveal { opacity: 1; transform: none; }
}

/* ─── Tile-free static district map ──────────────────────────────── */
.business-map {
  position: relative;
  overflow: hidden;
  background: #ebe9e1;
}

.static-map-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90%, 1050px);
  aspect-ratio: 4 / 3;
  max-height: 88%;
  transform: translate(-50%, -50%);
}

.static-map-art {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}

.static-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.static-business-marker {
  position: absolute;
  margin: 0;
  transform: translate(-50%, -100%) rotate(-45deg);
}

.static-business-marker:hover,
.static-business-marker.active {
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.12);
}

.static-map-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(251, 250, 246, 0.9);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (max-width: 760px) {
  .static-map-canvas {
    width: 108%;
    max-height: 78%;
  }
  .static-map-note {
    right: 10px;
    bottom: 10px;
  }
}
