:root{
  --border:#e5e7eb;
  --bg:#f9fafb;
  --card:#fff;
  --muted:#6b7280;
  --text:#111;

  --gt-topnav-h: 0px;
  --gt-bottomnav-h: 72px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: "Pretendard","Noto Sans KR",system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
}

#swipe-root{
  position:relative;
  min-height:100vh;
  width:100%;
  overflow-x:hidden;
}

.wrap{
  max-width:1100px;
  margin:14px auto 90px;
  padding:0 14px;
  padding-top: calc(var(--gt-topnav-h) + 8px);
  padding-bottom: calc(var(--gt-bottomnav-h) + 8px);
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow:0 1px 0 rgba(0,0,0,0.02);
}

.top-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.title{ font-size:28px; font-weight:900; }
.subtitle{ margin-top:6px; color:var(--muted); font-size:13px; font-weight:800; }

.top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  border:1px solid var(--border);
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:900;
  font-size:14px;
}

.btn.secondary{
  background:#fff;
  color:#111;
}

.searchbar{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.searchbar input{
  flex:1;
  min-width:260px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  font-size:14px;
  outline:none;
}

.kw-panel{
  margin-top:14px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:16px;
  padding:12px;
}

.kw-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.kw-userline{
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}

.kw-row{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
  align-items:center;
}

.kw-row input{
  flex:1;
  min-width:220px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  font-weight:900;
  outline:none;
  background:#fff;
}

.kw-chips{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.kw-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  background:#f9fafb;
  color:#111;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
  line-height:1;
}

.kw-chip.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.kw-del{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:#111;
  font-weight:900;
  font-size:14px;
  line-height:1;
}

.kw-chip.active .kw-del{ border-color:#fff; }

.kw-status{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}

.meta{
  margin-top:14px;
  color:var(--muted);
  font-weight:900;
  font-size:13px;
}

.posts{ margin-top:10px; }

.post{
  padding:14px 0;
  border-bottom:1px solid var(--border);
}
.post:last-child{ border-bottom:none; }

.post .h{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.post .t{
  margin:0;
  font-weight:900;
  font-size:16px;
  line-height:1.35;
  flex:1;
  min-width:0;
}

.post .t a{
  color:#111;
  text-decoration:none;
}
.post .t a:hover{ text-decoration:underline; }

.post .d{
  color:#777;
  font-size:12px;
  white-space:nowrap;
  margin-top:2px;
}

.post .s{
  margin-top:6px;
  color:#555;
  font-size:13px;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  padding:4px 10px;
  border-radius:999px;
  background:#f9fafb;
  font-size:12px;
  font-weight:900;
  color:#111;
}

.errbox{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#7f1d1d;
  font-weight:900;
  white-space:pre-wrap;
  word-break:break-word;
}
