:root {
  --ink: #16323a;
  --muted: #5c6b70;
  --line: #d5e0e2;
  --paper: #f7fbfb;
  --bg: #e7eef0;
  --accent: #0f5f63;
  --accent-ink: #fff;
  --soft: #e5f2f1;
  --amber: #c56a22;
  --miss: #9a3412;
  --ok: #1f6b4a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 17px; }
a { color: #0c5558; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 9; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1, .brand .sitetitle { font-size: 22px; margin: 0; line-height: 1.2; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.brand .sitetitle a { color: inherit; text-decoration: none; }
.logo { width: 40px; height: 40px; border-radius: 10px; background: var(--accent) url("favicon.svg") center / cover; flex: none; }
.top nav { display: flex; gap: 16px; font-size: 15px; }
.maker { padding: 20px 0 8px; display: grid; gap: 16px; }
.maker > *, .layout > *, .stage, .offers, .step, .card, .offer, .list, .slippy { min-width: 0; }
.step, .card, .offer { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.step h2 { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.step h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 15px; }
.privacy, .hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.bilingual { margin: 8px 0 0; padding: 10px 12px; background: var(--soft); border-radius: 12px; }
.bilingual p { margin: 0; }
.bilingual .zh { margin-top: 6px; }
.drop { border: 2px dashed #b7c9c8; border-radius: 14px; padding: 14px; background: #fff; }
.drop.hot { border-color: var(--accent); background: var(--soft); }
label { display: block; font-weight: 650; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="search"], textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #c5d4d4; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 88px; resize: vertical; }
button, .btn, input, select { min-height: 44px; }
input:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9fd0cc; outline-offset: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.btn { font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 10px; border: 1px solid #c5d4d4; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.file { position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.error { color: var(--miss); min-height: 1.2em; }
.layout { display: grid; gap: 16px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 460px; overflow: auto; }
.photo { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; min-height: 72px; }
.photo.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.photo canvas { width: 56px; height: 56px; border-radius: 8px; flex: none; background: #d7e6ea; }
.photo span { display: grid; min-width: 0; }
.photo strong { font-size: 16px; }
.photo small { color: var(--muted); font-size: 13px; }
.slippy { position: relative; height: 440px; border-radius: 16px; overflow: hidden; background: #c5d5dc; border: 1px solid var(--line); touch-action: none; }
.slippy-view, .slippy-pins, .slippy .route { position: absolute; inset: 0; }
.slippy .tile { position: absolute; width: 256px; height: 256px; background: #d5e3e6 center / 256px 256px no-repeat; }
.slippy .route { width: 100%; height: 100%; pointer-events: none; }
.slippy .route path { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pin { position: absolute; width: 32px; height: 32px; min-height: 32px; padding: 0; margin: -16px 0 0 -16px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; font: inherit; font-weight: 700; line-height: 28px; cursor: pointer; box-shadow: 0 2px 6px rgba(12, 32, 36, .3); }
.pin.on { background: var(--amber); }
.map-credit { position: absolute; left: 8px; bottom: 8px; margin: 0; background: rgba(255,255,255,.88); border-radius: 8px; padding: 2px 8px; font-size: 12px; z-index: 2; }
.map-wrap { position: relative; }
.map-tools { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; z-index: 3; }
.map-tools button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 22px; cursor: pointer; }
.candidates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.candidate { text-align: left; max-width: 100%; }
.stage { display: grid; gap: 12px; justify-items: center; }
.screen { width: min(100%, 340px); background: #102226; border-radius: 18px; padding: 10px; }
.screen canvas, .screen video { width: 100%; height: auto; border-radius: 12px; background: #d7e6ea; display: block; }
.seek { width: min(100%, 340px); }
.headrow { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.headrow h2, .offer h3 { margin: 0; }
.offer h3 { font-size: 28px; }
.offers { display: grid; gap: 12px; }
.offer.paid { background: var(--soft); }
.offer .kicker { font-size: 13px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.offer.on { outline: 2px solid var(--ok); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 650; margin: 8px 0; }
.check input { width: 20px; height: 20px; min-height: 0; }
.seo { padding-bottom: 28px; display: grid; gap: 16px; }
.seo h2 { margin-top: 0; }
.foot { color: var(--muted); font-size: 14px; padding-bottom: 28px; }
.hub-link { margin-top: 8px; }
[hidden] { display: none !important; }
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: start; }
  .offers { grid-template-columns: 1fr 1fr; }
  .slippy { height: 520px; }
}
