/* Lakeze catch dashboard — relaxed reading layout.
   Bigger type, more breathing room, key facts first, details expandable. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #2b2620;
  --muted: #7a7268;
  --line: #e8e1d6;
  --accent: #2f6f4f;
  --accent-soft: #e7f2ec;
  --warn: #9a6a12;
  --warn-soft: #fdf3dd;
  --danger-soft: #fdeceb;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 20px;
  margin-bottom: 28px;
}
.site-header h1 { margin: 0; font-size: 30px; letter-spacing: 0.02em; }
.subtitle { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-top: 8px; }
.whoami { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.error { color: #b3261e; }

/* Buttons — roomy touch targets */
.btn {
  font: inherit;
  font-size: 16px;
  padding: 10px 18px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; font-size: 18px; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 15px; }

/* Login */
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 460px;
  margin: 40px auto;
}
.login-card h2 { margin-top: 0; }
.login-card label { display: block; margin: 18px 0 6px; font-size: 16px; }
.login-card input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 6px;
}

/* Stats strip — quiet summary, replied in green */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px;
  margin-bottom: 24px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 30px; font-weight: 700; line-height: 1.3; }
.stat-num.green { color: var(--accent); }
.stat-label { font-size: 15px; color: var(--muted); }

/* Filters in three calm layers */
.filters { margin-bottom: 8px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  font: inherit; font-size: 16px;
  padding: 8px 18px; min-height: 44px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer;
}
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }
.filter-row label { font-size: 15px; color: var(--muted); }
.filter-row select, .filter-row input {
  font: inherit; font-size: 16px;
  padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); margin-top: 4px;
}
.search-label input { min-width: 220px; }

/* Opened-post banner */
.opened-banner {
  position: sticky; top: 12px; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between;
  background: #fff8e6; border: 1px solid #f0d48a;
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.card.opened {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.author { font-size: 19px; font-weight: 700; }
.posted { color: var(--muted); font-size: 15px; }
.badge {
  display: inline-block; font-size: 14px; padding: 3px 10px;
  border-radius: 999px; background: #f0ebe2; margin-left: 8px;
}
.badge.opened { background: var(--accent-soft); color: var(--accent); }
.badge.hot { background: var(--warn-soft); color: var(--warn); }
.countdown { font-size: 17px; font-weight: 700; margin: 10px 0 2px; }
.demand { font-size: 20px; line-height: 1.7; margin: 10px 0; }
.meta-line { color: var(--muted); font-size: 16px; margin: 4px 0; }
.listing-line { font-size: 16px; margin: 4px 0; }
.listing-line a { color: var(--accent); }
.availability { font-size: 18px; font-weight: 700; margin: 12px 0 4px; }
.availability.ok { color: var(--accent); }
.availability.warn { color: var(--warn); }
.availability.muted { color: var(--muted); }
.note { background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; font-size: 16px; margin: 12px 0 0; }
details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details summary { cursor: pointer; font-size: 16px; color: var(--accent); }
details p, details pre { font-size: 16px; }
.draft-text {
  white-space: pre-wrap; word-break: break-word;
  background: #f7f4ee; border-radius: 10px; padding: 14px; font-size: 16px;
}
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.card-actions .btn { flex: 0 0 auto; }
.link-btn { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.footnote { color: var(--muted); font-size: 15px; margin: 40px 0 48px; }
.footnote p { margin: 6px 0; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 20px; }
}
