.board__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.board__head .ttl {
  margin: 0;
}

.board__note {
  margin: 4px 0 0;
  color: var(--s-muted);
  font-size: 12.5px;
}

.board__switch {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.board__switch a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--s-ink-2);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(27, 42, 85, 0.08);
}

.board__switch a.is-on {
  color: var(--s-navy);
  box-shadow: inset 0 0 0 1.5px var(--s-navy);
}

.board__switch a[data-board="notice"].is-on {
  background: #fef0ec;
  color: var(--s-red);
  box-shadow: inset 0 0 0 1.5px var(--s-red);
}

.board__switch a[data-board="free"].is-on {
  background: #ecf6ef;
  color: var(--s-green);
  box-shadow: inset 0 0 0 1.5px var(--s-green);
}

.board__switch a[data-board="ask"].is-on {
  background: #f1f3f8;
  color: var(--s-navy);
}

.board__write {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--s-navy);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.board__write:hover {
  background: var(--s-navy-dark);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board-table th,
.board-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--s-line);
  text-align: left;
  vertical-align: middle;
}

.board-table th {
  background: #fffaf1;
  color: var(--s-navy);
  font-size: 12px;
  font-weight: 800;
}

.board-table .num,
.board-table .when {
  font-family: var(--s-num);
  font-weight: 800;
  color: var(--s-navy);
  white-space: nowrap;
}

.board-table .num { width: 52px; text-align: center; }
.board-table .who { width: 96px; color: var(--s-ink-2); }
.board-table .when { width: 64px; text-align: right; }

.board-table tbody tr:hover td {
  background: #fff3ef;
}

.board-table a.subject {
  color: var(--s-ink);
  font-weight: 800;
  text-decoration: none;
}

.board-table a.subject:hover {
  color: var(--s-navy);
}

.board-chip {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--s-red-soft);
  color: var(--s-red);
  font-size: 11px;
  font-weight: 800;
  vertical-align: 1px;
}

.board-count {
  margin-left: 4px;
  color: var(--s-muted);
  font-family: var(--s-num);
  font-weight: 800;
  font-size: 12px;
}

.board-mine {
  margin-left: 6px;
  color: var(--s-green);
  font-size: 11px;
  font-weight: 800;
}

.board-read__back,
.board-form__cancel {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--s-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.board-read h1 {
  margin: 0;
  font-family: var(--s-head);
  font-size: 28px;
  font-weight: 400;
  color: var(--s-navy);
  line-height: 1.35;
}

.board-read__meta {
  margin: 8px 0 16px;
  color: var(--s-ink-2);
  font-size: 13px;
}

.board-read__body {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--s-line);
  white-space: pre-wrap;
  line-height: 1.7;
}

.board-comments {
  margin-top: 16px;
}

.board-comments h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.board-comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--s-line);
}

.board-comment b {
  color: var(--s-navy);
}

.board-comment span {
  margin-left: 6px;
  color: var(--s-muted);
  font-family: var(--s-num);
  font-size: 12px;
  font-weight: 800;
}

.board-comment p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.board-form,
.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.board-form label,
.comment-form label {
  font-size: 12px;
  font-weight: 800;
  color: var(--s-navy);
}

.board-form input,
.board-form textarea,
.comment-form input {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #fffaf1;
  color: var(--s-ink);
  font: inherit;
  padding: 12px 14px;
}

.board-form input[type="file"] {
  padding: 8px 0;
  background: transparent;
  border-radius: 0;
}

.board-error {
  margin: 0;
  color: var(--s-red);
  font-size: 13px;
  font-weight: 800;
}

.inq-status {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.inq-status--new {
  background: var(--s-red-soft);
  color: var(--s-red);
}

.inq-status--read {
  background: var(--s-green-soft);
  color: var(--s-green);
}

.ask-file {
  margin-top: 16px;
}

.ask-file img {
  display: block;
  max-width: min(420px, 100%);
  margin-top: 8px;
  border-radius: 12px;
}

.ask-file a {
  color: var(--s-navy);
  font-weight: 800;
}

.board-form textarea {
  min-height: 180px;
  resize: vertical;
}

.board-form__row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.board-soon {
  margin: 72px 0 56px;
  text-align: center;
  font-family: "Jua", "Pretendard Variable", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: rgba(124, 129, 152, 0.55);
}

@media (max-width: 720px) {
  .board-soon {
    margin: 48px 0 36px;
    font-size: 28px;
  }
}

.board-empty {
  padding: 28px 8px;
  color: var(--s-muted);
  text-align: center;
}

.board-del {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--s-red);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-menu {
  display: grid;
  gap: 10px;
}

.admin-menu a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--s-ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(27, 42, 85, 0.12);
}

.admin-menu a b {
  color: var(--s-navy);
  font-size: 18px;
}

.admin-menu a span {
  color: var(--s-ink-2);
  font-size: 13px;
}

.admin-menu a:hover {
  background: #fff3ef;
}

.admin-save-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-save-summary span {
  border-radius: 999px;
  background: var(--s-card-2);
  color: var(--s-ink-2);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.admin-save-summary .is-saved {
  background: #e8f7ec;
  color: #287a3d;
}

.admin-save-summary .is-missing {
  background: #fff0ec;
  color: #c94f3d;
}

.survey-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.survey-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(27, 42, 85, 0.12);
}

.survey-stat h2 {
  margin: 0 0 8px;
  color: var(--s-navy);
  font-size: 16px;
}

.survey-stat p,
.survey-stat li {
  margin: 0;
  color: var(--s-ink-2);
  font-size: 13px;
  font-weight: 700;
}

.survey-stat ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.survey-stat li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  color: var(--s-ink);
}

.survey-stat small {
  min-width: 36px;
  color: var(--s-ink-2);
  text-align: right;
}

.survey-raw-table {
  min-width: 1680px;
}

.survey-raw-table td {
  white-space: pre-wrap;
  vertical-align: top;
}

.admin-save-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: #fff;
}

.admin-save-table {
  min-width: 1730px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-save-table th,
.admin-save-table td {
  border-right: 1px solid var(--s-line);
  text-align: center;
}

.admin-save-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.admin-save-table .save-round {
  background: #eee9ff;
  color: var(--s-navy);
}

.admin-save-table .save-game-head {
  width: 66px;
  padding: 7px 4px;
  line-height: 1.15;
}

.admin-save-table .save-game-head span,
.admin-save-table .save-game-head small {
  display: block;
}

.admin-save-table .save-game-head small {
  margin-top: 3px;
  color: var(--s-ink-2);
  font-size: 10px;
}

.admin-save-table .save-game-head em {
  display: block;
  margin-top: 4px;
  color: #9a9389;
  font-size: 9px;
  font-style: normal;
}

.admin-save-table .save-game-head.is-held em {
  color: #287a3d;
}

.admin-save-table .save-game-head.is-unplayed em {
  color: #a8a29a;
}

.admin-save-table .save-team,
.admin-save-table .save-owner {
  position: sticky;
  z-index: 2;
  background: #fff;
  text-align: left;
}

.admin-save-table thead .save-team,
.admin-save-table thead .save-owner {
  z-index: 5;
  background: #fffaf1;
}

.admin-save-table .save-team {
  left: 0;
  width: 128px;
  min-width: 128px;
  font-weight: 900;
}

.admin-save-table .save-owner {
  left: 128px;
  width: 96px;
  min-width: 96px;
  color: var(--s-ink-2);
}

.admin-save-table .save-game-cell {
  width: 66px;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 900;
}

.admin-save-table .save-game-cell.is-saved {
  background: #e8f7ec;
  color: #287a3d;
}

.admin-save-table .save-game-cell.is-missing {
  background: #fff0ec;
  color: #c94f3d;
}

.admin-save-table .save-game-cell.is-scheduled {
  background: #fffaf1;
  color: #9a9389;
  font-size: 10px;
}

.admin-save-table .save-game-cell.is-scheduled.is-saved {
  background: #eef8f0;
  color: #287a3d;
  font-size: 15px;
}

.admin-save-table .save-game-cell.is-unplayed {
  background: #f2f0ec;
  color: #c7c1b8;
}

.admin-save-table .save-total {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 96px;
  min-width: 96px;
  background: #fff7da;
  color: var(--s-navy);
  white-space: nowrap;
}

.admin-save-table thead .save-total {
  z-index: 5;
}

body.lineup-sian .bd.is-here {
  box-shadow: inset 0 0 0 2px var(--s-navy), 0 4px 0 rgba(120, 85, 45, 0.12);
}

@media (max-width: 1099px) {
  .board-table thead { display: none; }
  .board-table,
  .board-table tbody,
  .board-table tr,
  .board-table td { display: block; width: auto; }
  .board-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--s-line);
  }
  .board-table td {
    padding: 0;
    border: 0;
  }
  .board-table .num { display: none; }
  .board-table .who,
  .board-table .when {
    display: inline-block;
    width: auto;
    margin-top: 4px;
    margin-right: 8px;
    text-align: left;
    font-size: 12px;
  }

  .admin-save-table {
    display: table;
    width: 1730px;
  }

  .admin-save-table thead {
    display: table-header-group;
  }

  .admin-save-table tbody {
    display: table-row-group;
  }

  .admin-save-table tr {
    display: table-row;
    padding: 0;
    border: 0;
  }

  .admin-save-table th,
  .admin-save-table td {
    display: table-cell;
    width: auto;
    padding: 9px 7px;
    border-bottom: 1px solid var(--s-line);
  }
}
