:root{
  --bg:#f4f8f9; --card:#fff; --ink:#17313a; --muted:#67818a; --line:#d9e5e8;
  --brand:#0f6b78; --brand2:#138fa2; --red:#e54b4b; --yellow:#f2b933; --green:#2eae69; --gray:#9ba8ad;
}
*{box-sizing:border-box} body{margin:0;font-family:system-ui,-apple-system,"Segoe UI","Noto Sans TC",sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}
.topbar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px max(18px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.brand{font-size:22px;font-weight:800}.sub{font-size:13px;color:var(--muted);margin-top:3px}
.wrap{max-width:1180px;margin:auto;padding:20px}
.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:white;border:0;border-radius:12px;padding:11px 16px;font-weight:700;cursor:pointer}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:15px;display:grid;grid-template-columns:auto 1fr;gap:4px 9px;align-items:center;box-shadow:0 6px 20px rgba(20,56,67,.04)}
.stat b{font-size:24px}.stat small{grid-column:2;color:var(--muted)}
.dot{width:13px;height:13px;border-radius:50%;display:inline-block;box-shadow:0 0 0 3px rgba(0,0,0,.04)}
.red{background:var(--red)} .yellow{background:var(--yellow)} .green{background:var(--green)} .gray{background:var(--gray)}
.toolbar{display:grid;grid-template-columns:1fr 180px auto;gap:10px;margin-bottom:16px}
.toolbar input,.toolbar select,.toolbar button,label input,label select,label textarea{border:1px solid var(--line);border-radius:11px;padding:10px 12px;background:#fff;color:var(--ink)}
.toolbar button{cursor:pointer}
.cards{display:grid;gap:12px}
.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;display:grid;grid-template-columns:18px 1fr auto;gap:12px;align-items:start;box-shadow:0 6px 20px rgba(20,56,67,.04)}
.card h3{margin:0 0 5px;font-size:18px}.meta{color:var(--muted);font-size:13px;display:flex;flex-wrap:wrap;gap:8px 14px}.inquiry{margin-top:10px;line-height:1.55}.follow{margin-top:10px;font-size:14px;font-weight:700}
.card-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.card-actions button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;cursor:pointer}
.empty{text-align:center;padding:50px 15px;color:var(--muted)}.hidden{display:none!important}
dialog{width:min(760px,calc(100vw - 24px));border:0;border-radius:18px;padding:0;box-shadow:0 24px 80px rgba(0,0,0,.25)}
dialog::backdrop{background:rgba(10,30,35,.45);backdrop-filter:blur(3px)}
dialog form{padding:20px}.dlg-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:15px}.dlg-head h2{margin:0}.dlg-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.icon{border:0;background:transparent;font-size:20px;cursor:pointer}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid label{display:grid;gap:6px;font-size:13px;font-weight:700}.wide{grid-column:1/-1} textarea{resize:vertical}
.legend{display:flex;flex-wrap:wrap;gap:10px 16px;background:#f6fafb;border:1px dashed var(--line);border-radius:12px;padding:10px;margin-top:14px;font-size:12px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}
.actions{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;margin-top:18px}.actions button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 14px;cursor:pointer}.actions .primary{border:0;background:linear-gradient(135deg,var(--brand),var(--brand2));color:white}.danger{color:#b61e1e!important;border-color:#f0bcbc!important;background:#fff7f7!important}
@media(max-width:720px){
 .topbar{padding:14px}.sub{display:none}.brand{font-size:19px}.wrap{padding:14px}
 .stats{grid-template-columns:1fr 1fr}.toolbar{grid-template-columns:1fr 1fr}.toolbar input{grid-column:1/-1}
 .card{grid-template-columns:18px 1fr}.card-actions{grid-column:2;justify-content:flex-start}
 .grid{grid-template-columns:1fr}.wide{grid-column:auto}.actions{grid-template-columns:auto 1fr auto}.actions span:nth-of-type(2){display:none}
}