/* 街坊想記錄（F7，2026-08-14）——/wish 提交頁同 /wishes 清單頁共用。
   跟 theme token，唔另定色值。 */
.wish-wrap { max-width: 720px; }
.wish-wrap .lead { font-size: 15px; line-height: 1.75; }
.field-label { display: block; font-size: 13px; font-weight: 800; color: var(--accent); margin: 18px 0 6px; }
.small { font-size: 12px; }
.text-input {
  width: 100%; box-sizing: border-box; font: inherit; padding: 11px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text);
}
textarea.text-input { min-height: 96px; line-height: 1.6; }

.wish-search { display: flex; gap: 8px; align-items: stretch; }
.wish-search .text-input { flex: 1 1 auto; }
.wish-search .btn { margin-bottom: 0; flex: 0 0 auto; width: auto; }
.wish-results {
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  margin-top: 6px; overflow: hidden;
}
.wish-result {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 10px 12px; min-height: 44px;
  font: inherit; color: var(--text); cursor: pointer;
}
.wish-result:last-child { border-bottom: 0; }
.wish-result:hover { background: var(--panel); }
.wish-result span { display: block; }

.wish-map, .wishes-map {
  height: 300px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; margin-bottom: 8px;
}
.wish-maprow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wish-maprow .btn { margin-bottom: 0; width: auto; }

.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reason-chip {
  font: inherit; font-size: 14px; padding: 9px 14px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--text); cursor: pointer;
}
.reason-chip.active { background: var(--accent); color: var(--on-solid); border-color: var(--accent); font-weight: 700; }

/* 蜜罐：正常人睇唔到，機械人會照填 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { margin: 16px 0 4px; }

.wish-msg { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--panel); font-size: 14px; }
.wish-msg.err { background: #FBE9E3; color: #8A3A1C; border: 1px solid var(--red); }

/* ---------- 清單頁 ---------- */
.wishes-list { display: flex; flex-direction: column; gap: 12px; }
.wish-card {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 12px; padding: 13px 15px;
}
.wish-card.claimed { border-left-color: var(--green); opacity: .85; }
.wish-card.pending { border-left-color: var(--warn); }
.wc-hdr { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.wc-name { font-size: 17px; }
.wb { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; color: #fff; }
.wb-open { background: var(--accent); }
.wb-done { background: var(--green); }
.wb-pend { background: var(--warn); }
.wb-rej { background: var(--muted); }
.wc-osm { margin-top: 2px; }
.wc-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.wc-r {
  font-size: 12px; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; color: var(--muted); background: var(--panel);
}
.wc-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; margin-bottom: 8px; }
.wc-edited { margin-bottom: 6px; }
.wc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wc-acts .btn { margin-bottom: 0; width: auto; }
.wc-contact { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

.wish-cta {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 22px 0 10px; padding: 14px 16px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); font-weight: 700;
}
.wish-cta .btn { margin-bottom: 0; width: auto; }

@media (max-width: 560px) {
  .wish-search { flex-direction: column; }
  .wish-search .btn { width: 100%; }
}
