/* 會員前台：手機優先 */
:root {
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f7f7f8;
  --accent: #d6336c;
  --accent-soft: #fdeef3;
  --ok-bg: #e9f8ee; --ok-text: #1a7f37;
  --err-bg: #fdecec; --err-text: #c62828;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: #fafafa;
}
a { color: var(--accent); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 8px; }
header.top .logo { font-weight: 700; letter-spacing: .5px; font-size: 18px; }
header.top .logo span { color: var(--accent); }
h1 { font-size: 24px; margin: 12px 0 6px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; }
input[type=email], input[type=search] {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; background: #fff;
}
input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.btn {
  display: inline-block; border: none; border-radius: 10px; padding: 11px 18px; font-size: 16px; font-family: inherit;
  background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; text-align: center;
}
.btn.block { width: 100%; margin-top: 10px; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.flash { padding: 11px 14px; border-radius: 10px; margin: 10px 0; font-size: 15px; }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); }
.flash.err { background: var(--err-bg); color: var(--err-text); }
.muted { color: var(--muted); font-size: 14px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: none; }
.list .who { flex: 1; min-width: 0; }
.list .name { font-weight: 600; }
.list .grp { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 10px; background: var(--soft); color: var(--muted); }
.tag.off { background: #eee; }
.row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }
.count { color: var(--muted); font-size: 14px; font-weight: normal; }
footer { margin-top: 36px; color: var(--muted); font-size: 13px; }
footer form { display: inline; }
.linkish { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer;
  font: inherit; font-size: 13px; padding: 0; }
