.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-actions,
.guest-actions {
  display: none;
  gap: 8px;
  align-items: center;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  right: 18px;
  top: 52px;
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 50;
}

.dropdown-menu a {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--txt);
  text-decoration: none;
  border-bottom: 1px solid var(--bd);
}

.dropdown-menu a:last-child {
  border-bottom: 0;
}

.dropdown-menu a:hover {
  background: #f3f4f6;
}

.dropdown-menu.show {
  display: flex;
}

/* Mobile */
@media (max-width: 640px) {
  header .top {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .dropdown-menu {
    right: 12px;
    top: auto;
    margin-top: 8px;
  }
}
@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #f6f7f9;
  --card: #fff;
  --bd: #e5e7eb;
  --txt: #111827;
  --muted: #6b7280;
  --primary: #111827;
  --btn: #3b3b43;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Pretendard, Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--txt);
  word-break: keep-all;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--bd);
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

header .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
header .sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 10px;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}
.filters .title {
  font-size: 13px;
  font-weight: 600;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.filter-row.start {
  align-items: start;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
.field label {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}
input::placeholder,
select::placeholder,
textarea::placeholder {
  font-size: 14px;
  color: #bbbbbb;
}
.field.keyword {
  flex: 1;
  min-width: 280px;
}

.btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: var(--btn);
  white-space: nowrap;
}
button.ghost {
  font-size: 13px;
  color: var(--txt);
  background: transparent;
  border: 1px solid var(--bd);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}

.status {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
  border-bottom: 1px dashed var(--bd);
}

.label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.help-btn {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.help-btn:hover {
  border-color: #9ca3af;
  color: var(--txt);
}

.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.help-overlay.show {
  display: flex;
}

.help-modal {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.help-modal .hd {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.help-modal .hd .ttl {
  font-weight: 600;
  font-size: 14px;
}

.help-modal .bd {
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.help-close {
  border: 1px solid var(--bd);
  background: #fff;
  color: var(--txt);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.tbl-wrap {
  overflow: auto;
  border-top: 1px solid var(--bd);
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.tbl-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.tbl-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.tbl-wrap::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
}
.tbl-wrap::-webkit-scrollbar-thumb:hover {
  background: #444;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* keep column widths stable */
}
th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--bd);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  background: #fbfbfc;
  z-index: 5;
  color: var(--muted);
  font-weight: 700;
}
.right {
  text-align: right;
}

#postContainer {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 15px;
}
