/* 호스트(라이트 DOM) + 섀도 내부 보드 모두 컬럼 전폭 기준 — Elementor 박스(~1140px)에 맞춤 */
:host {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fb-board-host {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fb-board-root {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fb-board {
  font-family: "Noto Sans KR", sans-serif;
  color: #222;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.fb-board-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
  min-height: 34px;
}

.fb-board * {
  box-sizing: border-box;
}

.fb-footer-auth {
  display: inline-block !important;
  visibility: visible !important;
  white-space: nowrap;
  margin-left: 6px;
  position: relative;
  z-index: 10;
}
.fb-footer-auth-link {
  display: inline-block !important;
  color: rgba(0, 0, 0, 0.06) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  font-weight: 600 !important;
  background: transparent !important;
  text-decoration: none !important;
}
.fb-footer-auth-link:hover {
  opacity: 0.65 !important;
}

.fb-btn {
  display: inline-block;
  padding: 7px 16px;
  background: #4a90d7;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: none !important;
}
.fb-btn:hover {
  background: #4a90d7;
  color: #fff;
}
.fb-btn-primary {
  background: #2c5bbd;
  color: #fff;
  border-color: #2c5bbd;
}
.fb-btn-primary:hover {
  background: #244fa3;
  border-color: #244fa3;
  color: #fff;
}
.fb-btn-danger {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.fb-btn-danger:hover {
  background: #c0392b;
  color: #fff;
}
.fb-btn-sm {
  padding: 3px 10px;
  font-size: 12px;
}
.fb-btn-text {
  background: transparent;
  border: none;
  color: #2c5bbd;
  padding: 4px 8px;
  text-decoration: underline;
}
.fb-btn-text:hover {
  background: transparent;
  color: #244fa3;
}
.fb-btn-login {
  background: #333;
  color: #fff;
  border-color: #333;
}
.fb-btn-login:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* 보조 버튼(모달 목록·취소 등) — 퀵링크 톤 */
.fb-btn-secondary {
  background: #fff !important;
  color: #305794 !important;
  border: 1px solid #98abca !important;
  box-shadow: 0 1px 3px rgba(45, 58, 74, 0.08);
}
.fb-btn-secondary:hover {
  background: #eef3fb !important;
  color: #244068 !important;
  border-color: #7d98c9 !important;
}

.fb-btn-danger-outline {
  background: #fff !important;
  color: #a93226 !important;
  border: 1px solid #e0aaa5 !important;
  box-shadow: 0 1px 2px rgba(192, 57, 43, 0.08);
}
.fb-btn-danger-outline:hover {
  background: #fdf2f2 !important;
  color: #922b21 !important;
  border-color: #c0392b !important;
}

.fb-user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fb-badge-admin {
  display: inline-block;
  padding: 2px 8px;
  background: #2c5bbd;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}

.fb-board-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
}

.fb-pagination {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
}
.fb-pagination-row {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.fb-pagination-batch {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}
.fb-pagination-batch .fb-batch-delete-btn {
  margin: 0;
}
.fb-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3c3c3c;
}
.fb-page-size-label {
  white-space: nowrap;
  font-weight: bold;
  color: #3c3c3c;
}
.fb-page-size-wrap {
  position: relative;
  display: inline-block;
  min-width: 72px;
  vertical-align: middle;
}
.fb-page-size-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 72px;
  min-height: 28px;
  padding: 0 26px 0 10px;
  border: 1px solid #98abca;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #f7f9fb;
  cursor: pointer;
  color: #2d3a4a;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fb-page-size-trigger-text {
  text-align: center;
  pointer-events: none;
}
.fb-page-size-trigger::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border: solid #5a6f8f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.fb-page-size-trigger[aria-expanded="true"]::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}
.fb-page-size-trigger:hover {
  border-color: #6b8cc4;
  background: #fff;
}
.fb-page-size-trigger:focus {
  outline: none;
}
.fb-page-size-trigger:focus-visible {
  border-color: #2c5bbd;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.18);
}
.fb-page-size-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 72px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #98abca;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(44, 91, 189, 0.14);
  z-index: 200;
  box-sizing: border-box;
}
.fb-page-size-menu[hidden] {
  display: none !important;
}
.fb-page-size-menu [role="option"] {
  margin: 0;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  color: #2d3a4a;
  cursor: pointer;
  user-select: none;
}
.fb-page-size-menu [role="option"]:hover {
  background: #eef3fb;
}
.fb-page-size-menu [role="option"][aria-selected="true"] {
  background: #2c5bbd;
  color: #fff;
}
.fb-page-size-menu [role="option"][aria-selected="true"]:hover {
  background: #244fa3;
  color: #fff;
}
.fb-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  width: 100%;
  box-sizing: border-box;
}

.fb-page-nav .fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.fb-page-nav .fb-page-prev.fb-btn-light::before {
  content: "\2039";
  margin-right: 5px;
  font-size: 1.15em;
  line-height: 1;
  opacity: 0.9;
}
.fb-page-nav .fb-page-next.fb-btn-light::after {
  content: "\203A";
  margin-left: 5px;
  font-size: 1.15em;
  line-height: 1;
  opacity: 0.9;
}

.fb-page-nav .fb-page-prev.fb-btn-light,
.fb-page-nav .fb-page-next.fb-btn-light {
  background: #f7f9fb !important;
  border: 1px solid #98abca !important;
  color: #2d3a4a !important;
  box-shadow: 0 1px 2px rgba(44, 91, 189, 0.07) !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:hover:not(:disabled),
.fb-page-nav .fb-page-next.fb-btn-light:hover:not(:disabled) {
  background: #fff !important;
  border-color: #4a90d7 !important;
  color: #2c5bbd !important;
  box-shadow: 0 2px 8px rgba(44, 91, 189, 0.14) !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:active:not(:disabled),
.fb-page-nav .fb-page-next.fb-btn-light:active:not(:disabled) {
  background: #eef3fb !important;
  box-shadow: 0 1px 3px rgba(44, 91, 189, 0.1) !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:focus-visible,
.fb-page-nav .fb-page-next.fb-btn-light:focus-visible {
  outline: 2px solid rgba(44, 91, 189, 0.45);
  outline-offset: 2px;
}
.fb-page-nav .fb-page-prev.fb-btn-light:disabled,
.fb-page-nav .fb-page-next.fb-btn-light:disabled {
  cursor: not-allowed;
  background: #f2f4f7 !important;
  border-color: #d8dee8 !important;
  color: #97a3b4 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.fb-page-nav .fb-page-prev.fb-btn-light:disabled::before,
.fb-page-nav .fb-page-next.fb-btn-light:disabled::after {
  opacity: 0.55;
}

.fb-page-info {
  --fb-page-num-width: 34px;
  --fb-page-num-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}
.fb-page-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--fb-page-num-width);
  min-width: var(--fb-page-num-width);
  flex-shrink: 0;
  height: var(--fb-page-num-height);
  line-height: var(--fb-page-num-height);
  box-sizing: border-box;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fb-page-info-unit {
  font-weight: bold;
  color: #3c3c3c;
}
.fb-page-current-input {
  width: var(--fb-page-num-width);
  min-width: var(--fb-page-num-width);
  flex-shrink: 0;
  height: var(--fb-page-num-height);
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  line-height: var(--fb-page-num-height);
  background: transparent;
  color: #3c3c3c;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: none;
  transition: color 0.15s ease;
}
.fb-page-current-input:hover:not(:disabled) {
  background: transparent;
  color: #2c5bbd;
}
.fb-page-current-input::-webkit-outer-spin-button,
.fb-page-current-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fb-page-current-input:focus {
  outline: 1px solid rgba(44, 91, 189, 0.45);
  outline-offset: 1px;
}
.fb-page-current-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fb-page-info-sep {
  color: #666;
}

.fb-search {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 520px;
}
.fb-search[hidden] {
  display: none !important;
}
.fb-search select {
  flex: 0 0 100px;
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  color: #222;
  text-align: center;
  text-align-last: center;
}
.fb-search select option {
  text-align: center;
}
.fb-search select:focus {
  outline: none;
  border-color: #2c5bbd;
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.15);
}
.fb-search input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  color: #222;
}
.fb-search input:focus {
  outline: none;
  border-color: #2c5bbd;
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.15);
}
.fb-admin-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.fb-admin-actions .fb-btn {
  padding: 8px 32px;
}
.fb-batch-delete-btn {
  font-size: 14px;
  padding-inline: 22px;
}
.fb-batch-delete-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fb-btn-light {
  background: #f7f9fb;
  color: #3c3c3c;
  border-radius: 50px;
  border: 1px solid #98abca;
  box-shadow: none !important;
  font-size: 15px;
  transition: all 0.4s ease-in-out;
}

.fb-btn-light:hover {
  background: #f7f9fb;
  color: #4a90d7 !important;
  border: 1px solid #98abca;
}

.fb-board-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.fb-board-table {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

/* colgroup: colspan 로딩 행에서도 thead 전폭 유지 + 제목 열 과도 확장 완화 */
.fb-board-table col.fb-board-col-no {
  width: 50px;
}
.fb-board-table col.fb-board-col-title {
  width: 34%;
}
.fb-board-table col.fb-board-col-author {
  width: 220px;
}
.fb-board-table col.fb-board-col-date {
  width: 100px;
}
.fb-board-table col.fb-board-col-view {
  width: 70px;
}
.fb-board-table col.fb-board-col-action {
  width: 54px;
}
.fb-board-table col.fb-board-col-select {
  width: 40px;
}
.fb-board-table:not(.fb-board-admin) col.fb-board-col-action,
.fb-board-table:not(.fb-board-admin) col.fb-board-col-select {
  width: 0;
  min-width: 0;
}
.fb-board-table thead th {
  background: #f7f9fb;
  border-top: 1px solid #676767;
  border-bottom: 1px solid #676767;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.fb-board-table tbody td {
  border-bottom: 1px solid #eee;
  padding: 9px 6px;
  font-size: 13px;
  text-align: center;
}
.fb-board-table tbody tr:hover {
  background: #f9fbff;
}
.fb-board-table .fb-col-no {
  width: 50px;
  font-weight: bold;
}
.fb-board-table .fb-col-select {
  width: 40px;
  max-width: 40px;
  padding: 8px 4px;
  text-align: center;
  vertical-align: middle;
}
.fb-board-table thead th.fb-col-select {
  vertical-align: middle;
}
.fb-board-table .fb-col-select input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}
.fb-board-table thead th.fb-col-title {
  text-align: left;
  /* No 열과 제목 내용 간 시각 간격(+10px) */
  padding: 8px 6px 8px 16px;
}
.fb-board-table tbody td.fb-col-title {
  text-align: left;
  padding: 9px 6px 9px 16px;
}
.fb-board-table .fb-col-title-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 100%;
}
.fb-board-table .fb-col-title-inner a {
  min-width: 0;
}
.fb-board-table .fb-new-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
  background: #ff9500;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
}
.fb-board-table .fb-col-title a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}
.fb-board-table .fb-col-title a:hover {
  color: #2c5bbd;
  text-decoration: underline;
}
.fb-board-table .fb-col-author {
  width: 220px;
  max-width: 220px;
  color: #555;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.fb-board-table .fb-col-date {
  width: 100px;
  max-width: 100px;
  color: #666;
  text-align: center;
  vertical-align: middle;
}
.fb-board-table .fb-col-view {
  width: 70px;
  color: #666;
}
.fb-board-table thead th.fb-col-action,
.fb-board-table tbody td.fb-col-action {
  width: 54px;
  max-width: 54px;
  padding-left: 3px;
  padding-right: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
}
.fb-board-table .fb-col-action .fb-btn {
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.2;
}
.fb-board-table .fb-empty td {
  padding: 40px;
  color: #999;
}

/* 데스크톱: 제목 안 모바일 메타 줄 숨김 */
.fb-board-table .fb-board-meta-mobile {
  display: none;
  margin: 0;
}

html.fb-modal-open,
body.fb-modal-open {
  overflow: hidden;
}
body.fb-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.fb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  z-index: 99999;
  animation: fb-fade 0.15s ease-out;
}

/* 호스트 페이지(테마 hestia 등) button:hover { color:#fff; background:#d92a2a } 무효화 */
.fb-modal-backdrop button {
  box-shadow: none !important;
}

.fb-modal-backdrop .fb-detail-nav-btn {
  background-color: #f7f9fb !important;
  background-image: none !important;
  color: #3c3c3c !important;
}

.fb-modal-backdrop .fb-detail-nav-btn:hover:not(.fb-detail-nav-btn--disabled),
.fb-modal-backdrop .fb-detail-nav-btn:focus-visible:not(.fb-detail-nav-btn--disabled) {
  background-color: #f9fbff !important;
  background-image: none !important;
  color: #2c5bbd !important;
}

.fb-modal-backdrop .fb-detail-nav-btn .fb-detail-nav-btn__meta,
.fb-modal-backdrop .fb-detail-nav-btn .fb-detail-nav-btn__label,
.fb-modal-backdrop .fb-detail-nav-btn .fb-detail-nav-btn__arrow,
.fb-modal-backdrop .fb-detail-nav-btn:hover:not(.fb-detail-nav-btn--disabled) .fb-detail-nav-btn__meta,
.fb-modal-backdrop .fb-detail-nav-btn:hover:not(.fb-detail-nav-btn--disabled) .fb-detail-nav-btn__label,
.fb-modal-backdrop .fb-detail-nav-btn:hover:not(.fb-detail-nav-btn--disabled) .fb-detail-nav-btn__arrow {
  color: inherit !important;
}

.fb-modal-backdrop .fb-detail-nav-btn .fb-detail-nav-btn__title,
.fb-modal-backdrop .fb-detail-nav-btn:hover:not(.fb-detail-nav-btn--disabled) .fb-detail-nav-btn__title {
  color: #666 !important;
}

.fb-modal-backdrop .fb-detail-nav-btn--disabled,
.fb-modal-backdrop .fb-detail-nav-btn--disabled:hover {
  background-color: #fff !important;
  color: #666 !important;
}

.fb-board .fb-page-nav .fb-page-prev.fb-btn-light,
.fb-board .fb-page-nav .fb-page-next.fb-btn-light {
  box-shadow: 0 1px 2px rgba(44, 91, 189, 0.07) !important;
}

.fb-board .fb-page-nav .fb-page-prev.fb-btn-light:hover:not(:disabled),
.fb-board .fb-page-nav .fb-page-next.fb-btn-light:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(44, 91, 189, 0.14) !important;
}

.fb-board .fb-page-nav .fb-page-prev.fb-btn-light:active:not(:disabled),
.fb-board .fb-page-nav .fb-page-next.fb-btn-light:active:not(:disabled) {
  box-shadow: 0 1px 3px rgba(44, 91, 189, 0.1) !important;
}

.fb-board .fb-page-size-trigger:focus-visible {
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.18) !important;
}

@keyframes fb-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fb-modal-login-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fb-modal {
  /* 헤더(.fb-modal-header) 높이는 아래 두 값으로 조절 — 숫자를 키우면 헤더가 높아짐 */
  --fb-modal-header-padding-y: 0px;
  --fb-modal-header-padding-x: 12px;
  /* 게시판(.fb-board-table · .fb-btn-light)과 동일 토큰 */
  --fb-board-accent: #2c5bbd;
  --fb-board-accent-soft: #4a90d7;
  --fb-board-head-bg: #f7f9fb;
  --fb-board-border-strong: #676767;
  --fb-board-border: #eee;
  --fb-board-btn-border: #98abca;
  --fb-board-text: #222;
  --fb-board-text-muted: #666;
  --fb-board-radius: 3px;

  background: #fff;
  border-radius: var(--fb-board-radius);
  max-width: 1100px;
  width: min(80vw, 1100px);
  height: min(800px, 92vh) !important;
  max-height: 92dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14) !important;
  border: 1px solid var(--fb-board-border-strong);
  top: 0;
  bottom: 0;
  margin: auto;
}

.fb-modal.fb-modal-sm {
  max-width: 300px;
  height: 380px !important;
}

.fb-modal.fb-modal-sm.fb-modal-login {
  max-width: min(304px, 80vw);
  width: min(304px, calc(100vw - 32px));
  height: auto !important;
  min-height: 0;
  border-radius: var(--fb-board-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14) !important;
  animation: fb-modal-login-in 0.22s ease-out both;
}

.fb-modal.fb-modal-sm .fb-modal-header {
  padding: 14px 18px;
  flex-shrink: 0;
}

/* 로그인: 목록·상세 모달과 동일한 헤더/본문 톤 */
.fb-modal.fb-modal-login .fb-modal-header {
  min-height: 0;
  padding: 8px 12px;
  background: var(--fb-board-head-bg);
  border-bottom: 1px solid var(--fb-board-border-strong);
  box-shadow: none;
}

.fb-modal.fb-modal-login .fb-modal-header h3 {
  color: var(--fb-board-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-shadow: none;
}


.fb-modal.fb-modal-sm .fb-modal-body {
  padding: 22px 24px 20px;
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.fb-modal.fb-modal-login .fb-modal-body {
  padding: 14px 16px 16px;
  background: #fff;
}

.fb-modal.fb-modal-login .fb-form-login {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
}

.fb-modal.fb-modal-login .fb-login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.fb-modal.fb-modal-login .fb-login-logo {
  width: 112px;
  height: auto;
  display: block;
  margin: 20px auto 30px;
  filter: none;
}

.fb-modal.fb-modal-login .fb-login-tagline {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  font-weight: 500;
}

.fb-modal.fb-modal-login .fb-login-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.fb-modal.fb-modal-login .fb-login-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}

.fb-modal.fb-modal-login .fb-login-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.02em;
  text-align: center;
  width: 100%;
}

.fb-modal.fb-modal-login .fb-login-field input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #bbb;
  border-radius: var(--fb-board-radius);
  background: #fff;
  color: var(--fb-board-text);
  min-height: 40px;
  text-align: center;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.fb-modal.fb-modal-login .fb-login-field input::placeholder {
  color: #888;
}

.fb-modal.fb-modal-login .fb-login-field input:hover {
  border-color: var(--fb-board-btn-border);
}

.fb-modal.fb-modal-login .fb-login-field input:focus {
  outline: none;
  border-color: var(--fb-board-accent);
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.15);
}

.fb-modal.fb-modal-login .fb-form-login .fb-error {
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
}

.fb-modal.fb-modal-login .fb-form-login .fb-modal-actions {
  margin-top: 18px;
  width: 100%;
}

.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary {
  width: 100%;
  max-width: 100%;
  padding: 9px 22px;
  min-height: 42px;
  border-radius: var(--fb-board-radius);
  font-size: 14px;
  font-weight: 600;
  background: var(--fb-board-accent) !important;
  border: 1px solid var(--fb-board-accent);
  color: #fff;
  box-shadow: none !important;
}

.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary:hover,
.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary:focus {
  background: #244fa3 !important;
  border-color: #244fa3;
  color: #fff;
}

.fb-modal.fb-modal-login .fb-modal-actions-login .fb-btn.fb-btn-primary:active {
  background: #1f448c !important;
  border-color: #1f448c;
  color: #fff;
}

.fb-modal-actions-center {
  justify-content: center !important;
  gap: 10px;
}
.fb-modal-actions-center .fb-btn {
  min-width: 88px;
}
.fb-modal-header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 10px;
  padding: 8px calc(var(--fb-modal-header-padding-x) + 4px);
  border-bottom: 1px solid rgba(44, 90, 189, 0.089);
  min-height: 0;
  height: auto;
  flex-shrink: 0;
  background: var(--fb-board-head-bg);
  box-shadow: none;
}

.fb-modal-title {
  min-width: 0;
  flex: 1 1 auto;
  margin-left: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  padding-right: 4px;
}
.fb-modal-header h3 {
  display: block;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--fb-board-text);
}

.fb-modal-close {
  border: 1px solid #bbb;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  color: var(--fb-board-text-muted) !important;
  cursor: pointer;
  padding: 0;
  border-radius: var(--fb-board-radius);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  align-self: center;
  background: #fff;
  box-shadow: none !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.fb-modal-close:hover,
.fb-modal-close:focus {
  color: var(--fb-board-accent) !important;
  background: #f9fbff;
  border-color: var(--fb-board-btn-border);
  outline: none;
  box-shadow: none !important;
}

.fb-modal-close:focus-visible {
  outline: 2px solid rgba(44, 91, 189, 0.35);
  outline-offset: 1px;
}
.fb-modal-body {
  padding: 14px 16px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.fb-modal-body:has(.fb-form[data-form="edit"]) {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 8px;
}

.fb-form[data-form="edit"] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  /* overflow:hidden 이면 CKEditor 높이 + 툴바가 패널을 넘길 때 하단 버튼 영역까지 잘림 */
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

/* 에디터 래퍼만 남은 세로 공간을 차지하고, 내부에서 높이를 조절 가능하게 함 */
.fb-form[data-form="edit"] .cke.cke_chrome {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fb-form[data-form="edit"] .cke.cke_chrome > .cke_inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
}
.fb-form[data-form="edit"] .cke.cke_chrome .cke_contents {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow: hidden;
}

.fb-form[data-form="edit"] .fb-form-item-title,
.fb-form[data-form="edit"] .fb-form-item-meta {
  width: 98%;
  max-width: 100%;
  align-self: center;
  box-sizing: border-box;
  border: 1px solid #bbb;
  border-radius: var(--fb-board-radius);
  padding: 5px 14px;
  background: #fff;
  box-shadow: none;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-form[data-form="edit"] .fb-form-item-title {
  margin-bottom: 12px;
}

.fb-form[data-form="edit"] .fb-form-item-meta {
  margin-bottom: 12px;
}

.fb-form[data-form="edit"] .fb-form-item-title:focus-within,
.fb-form[data-form="edit"] .fb-form-item-meta:focus-within {
  border-color: var(--fb-board-accent);
  box-shadow: 0 0 0 2px rgba(44, 91, 189, 0.15);
}

.fb-form[data-form="edit"] .fb-form-item,
.fb-form[data-form="edit"] .fb-form-item-meta {
  flex-shrink: 0;
}

.fb-form[data-form="edit"] .fb-error {
  flex-shrink: 0;
}

.fb-form[data-form="edit"] .fb-modal-actions {
  flex-shrink: 0;
}

.fb-form[data-form="edit"] .fb-ckeditor-source {
  min-height: 0;
}

.fb-form[data-form="edit"] .cke {
  margin: 0 auto 4px;
}

.fb-modal-body:has(.fb-detail) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fb-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.fb-detail .fb-detail-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 16px 16px;
  border-radius: 0;
  background: #fff;
  border: none;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 91, 189, 0.35) transparent;
}

.fb-detail .fb-detail-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.fb-detail .fb-detail-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.0);
  border-radius: 999px;
}
.fb-detail .fb-detail-content::-webkit-scrollbar-thumb {
  background: rgba(44, 91, 189, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.fb-detail .fb-detail-content::-webkit-scrollbar-thumb:hover {
  background: rgba(44, 91, 189, 0.5);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.fb-detail > .fb-modal-actions {
  flex-shrink: 0;
}

/* 폼 */
.fb-form {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  height: 100%;
}
.fb-form-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.fb-form-item-title {
  flex-wrap: nowrap;
}

.fb-form-item-title .fb-form-label {
  flex: 0 0 auto;
  width: 4em;
  min-width: 4em;
  text-align: center;
}

.fb-form-item-title input[type="text"] {
  flex: 1;
  min-width: 0;
}

.fb-form-item-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 20px;
}

.fb-form-field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.fb-form-field input[type="text"] {
  flex: 1;
  min-width: 0;
}

/* 날짜는 브라우저 기본 폭 유지(늘리지 않음) */
.fb-form-field input[type="date"] {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
}

/* 편집 폼: 작성자 칸은 남는 폭 사용, 날짜 칸은 예전처럼 콘텐츠 크기 */
.fb-form[data-form="edit"] .fb-form-item-meta .fb-form-field-author {
  flex: 1;
  min-width: 0;
}

.fb-form[data-form="edit"] .fb-form-item-meta .fb-form-field-date {
  flex: 0 0 auto;
  min-width: 0;
}

.fb-form[data-form="edit"] .fb-form-field-author input[type="text"] {
  flex: 1 1 auto;
  min-width: 16rem;
  max-width: 90%;
}

.fb-form-item-meta .fb-form-label {
  flex: 0 0 auto;
  width: 4em;
  min-width: 4em;
  text-align: center;
}

@media (max-width: 520px) {
  .fb-form-item-meta {
    flex-direction: column;
    gap: 14px;
  }

  .fb-form-field {
    width: 100%;
  }

  .fb-form[data-form="edit"] .fb-form-field-author input[type="text"] {
    min-width: 0;
  }
}

.fb-form-label {
  font-weight: 500;
  color: #555;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}
.fb-form input[type="text"],
.fb-form input[type="email"],
.fb-form input[type="password"],
.fb-form input[type="date"] {
  display: block;
  max-width: 100%;
  padding: 2px 4px 2px 0;
  border: none;
  border-bottom: 1px solid #ccd5e5;
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: #676767;
  background: #ffffff;
}

.fb-form input[type="date"] {
  text-align: center;
  color: #676767;
}

.fb-form input[type="text"]:focus,
.fb-form input[type="email"]:focus,
.fb-form input[type="password"]:focus,
.fb-form input[type="date"]:focus {
  border: none;
  border-bottom: 1px solid #4a90d7;
  outline: none;
}

/* 편집 모달: 카드 배경과 이어지도록 입력 영역 흰색 제거 */
.fb-form[data-form="edit"] input[type="text"],
.fb-form[data-form="edit"] input[type="date"] {
  background: transparent;
}

.fb-form[data-form="edit"] input[type="text"]:focus,
.fb-form[data-form="edit"] input[type="date"]:focus {
  background: transparent;
}

.fb-form[data-form="edit"] input:-webkit-autofill,
.fb-form[data-form="edit"] input:-webkit-autofill:hover,
.fb-form[data-form="edit"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #676767;
  caret-color: #676767;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px #f0f2f6 inset;
}

.fb-form textarea:focus {
  border: 1px solid #4a90d7;
  outline: none;
}

.fb-edit-content-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.fb-ckeditor-source {
  min-height: 400px;
  width: 100%;
}
.fb-editor-status {
  color: #666;
  font-size: 13px;
  padding: 12px;
  margin-bottom: 10px;
  background: #f7f9fb;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  text-align: center;
}
.fb-form .cke,
.fb-form .ck-editor {
  color: #222;
  margin-bottom: 14px;
}
.fb-form .cke_chrome {
  border-color: #ccd5e5;
}
.fb-form .cke_top {
  background: #f7f9fb;
  border-bottom-color: #d8dde6;
}
.fb-form .cke_contents {
  min-height: 360px;
}

.fb-form[data-form="edit"] .cke_contents {
  min-height: 0 !important;
}
.fb-form .ck-editor__editable {
  min-height: 360px;
  max-height: 58vh;
  overflow-y: auto;
  font-family: "맑은 고딕", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.75;
}
.fb-form .ck-content table {
  border-collapse: collapse;
}
.fb-form .ck-content img {
  max-width: 100%;
  height: auto;
}
.cke_dialog_background_cover {
  z-index: 119990 !important;
}
.cke_dialog {
  z-index: 120010 !important;
}
.cke_panel,
.cke_combopanel {
  z-index: 120020 !important;
}
.fb-error {
  color: #c0392b;
  font-size: 13px;
  background: #fff5f4;
  padding: 9px 12px;
  border-left: 3px solid #c0392b;
  margin-bottom: 12px;
  border-radius: 2px;
}

.fb-modal-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fb-modal .fb-modal-actions {
  gap: 10px;
  padding-top: 10px;
}

.fb-modal .fb-modal-actions .fb-btn {
  height: 30px;
  border-radius: var(--fb-board-radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  box-shadow: none !important;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.fb-modal .fb-modal-actions .fb-btn:focus-visible {
  outline: 2px solid rgba(44, 91, 189, 0.35);
  outline-offset: 2px;
}

.fb-modal .fb-modal-actions .fb-btn:not(.fb-btn-primary):not(.fb-btn-danger):not(.fb-btn-secondary):not(.fb-btn-danger-outline) {
  background: #f7f9fb;
  color: #3c3c3c !important;
  border-color: var(--fb-board-btn-border);
}

.fb-modal .fb-modal-actions .fb-btn:not(.fb-btn-primary):not(.fb-btn-danger):not(.fb-btn-secondary):not(.fb-btn-danger-outline):hover,
.fb-modal .fb-modal-actions .fb-btn:not(.fb-btn-primary):not(.fb-btn-danger):not(.fb-btn-secondary):not(.fb-btn-danger-outline):active {
  background: #f9fbff;
  border-color: var(--fb-board-btn-border);
  color: var(--fb-board-accent-soft) !important;
}

.fb-modal .fb-modal-actions .fb-btn-primary {
  background: var(--fb-board-accent);
  border-color: var(--fb-board-accent);
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-primary:hover {
  background: #244fa3;
  border-color: #244fa3;
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-danger {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-danger:hover {
  background: #a93226;
  border-color: #a93226;
  color: #fff;
}

.fb-modal .fb-modal-actions .fb-btn-secondary {
  background: #f7f9fb !important;
  color: #3c3c3c !important;
  border-color: var(--fb-board-btn-border) !important;
}

.fb-modal .fb-modal-actions .fb-btn-secondary:hover,
.fb-modal .fb-modal-actions .fb-btn-secondary:active {
  background: #f9fbff !important;
  color: var(--fb-board-accent-soft) !important;
  border-color: var(--fb-board-btn-border) !important;
}

.fb-modal .fb-modal-actions .fb-btn-danger-outline {
  background: #fff !important;
  color: #a93226 !important;
  border-color: #d8a099 !important;
}

.fb-modal .fb-modal-actions .fb-btn-danger-outline:hover,
.fb-modal .fb-modal-actions .fb-btn-danger-outline:active {
  background: #fef5f5 !important;
  color: #922b21 !important;
  border-color: #c0392b !important;
}

.fb-modal .fb-modal-actions--detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 0 4px;
  margin-top: 0;
  border-top: 1px solid rgba(44, 90, 189, 0.089);
  background: var(--fb-board-head-bg);
}

.fb-detail-actions-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-items: stretch;
  column-gap: 10px;
  row-gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
}

.fb-detail-actions-nav__cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.fb-detail-actions-nav__cell--start {
  justify-content: flex-start;
  justify-self: start;
}

.fb-detail-actions-nav__cell--center {
  justify-content: center;
  justify-self: center;
  flex-shrink: 0;
}

.fb-detail-actions-nav__cell--end {
  justify-content: flex-end;
  justify-self: end;
}

.fb-detail-nav-btn {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--fb-board-btn-border);
  border-radius: var(--fb-board-radius);
  background: #f7f9fb;
  color: #3c3c3c;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  height: 32px;
}
/* 데스크톱: 이전/다음 버튼 고정 너비(한 줄 꽉 참 방지), 제목은 말줄임 */
.fb-detail-actions-nav__cell--start .fb-detail-nav-btn,
.fb-detail-actions-nav__cell--end .fb-detail-nav-btn {
  width: 260px;
  max-width: 260px;
  min-width: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.fb-detail-actions-nav__cell--start .fb-detail-nav-btn {
  justify-content: flex-start;
}

.fb-detail-actions-nav__cell--end .fb-detail-nav-btn {
  justify-content: flex-end;
}

.fb-detail-nav-btn:hover:not(.fb-detail-nav-btn--disabled) {
  border-color: var(--fb-board-btn-border);
  background: #f9fbff;
  color: var(--fb-board-accent);
}
.fb-detail-nav-btn:focus-visible {
  outline: 2px solid rgba(44, 91, 189, 0.35);
  outline-offset: 2px;
}
.fb-detail-nav-btn--disabled {
  cursor: default;
  opacity: 0.55;
  border-style: dashed;
  border-color: #bbb;
  background: #fff;
  color: var(--fb-board-text-muted);
}
.fb-detail-nav-btn__meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
}
.fb-detail-nav-btn__arrow {
  font-size: 0.95em;
  opacity: 0.92;
}
.fb-detail-nav-btn__label {
  letter-spacing: 0.03em;
  text-transform: none;
  color: inherit;
}
.fb-detail-nav-btn__title {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--fb-board-text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-modal .fb-modal-actions--detail .fb-detail-actions-nav__cell--center .fb-btn.fb-btn-secondary {
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 0;
  height: 32px;
  border-radius: var(--fb-board-radius);
}

.fb-detail-actions-admin {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--fb-board-border);
}

.fb-modal .fb-modal-actions--detail .fb-detail-actions-admin .fb-btn {
  padding: 5px 14px;
  font-size: 12px;
  line-height: 1.25;
  min-height: 0;
  border-radius: 6px;
}

/* 상세 모달 글 이동: 모바일 3열 — 동일 높이·고정 너비·가운데 정렬 */
@media (max-width: 768px) {
  .fb-detail-actions-nav {
    --fb-detail-nav-btn-h: 32px;
    --fb-detail-nav-btn-w: 8.85rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 6px;
    row-gap: 0;
    align-items: center;
    overflow: hidden;
  }

  .fb-detail-actions-nav__cell {
    min-width: 0;
    overflow: hidden;
  }

  .fb-detail-actions-nav__cell--start,
  .fb-detail-actions-nav__cell--end {
    justify-content: center;
    justify-self: center;
    width: auto;
    max-width: none;
  }

  .fb-detail-actions-nav__cell--center {
    justify-content: center;
    justify-self: center;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    padding-inline: 0;
  }

  .fb-detail-actions-nav__cell .fb-detail-nav-btn {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: var(--fb-detail-nav-btn-w);
    min-width: var(--fb-detail-nav-btn-w);
    max-width: var(--fb-detail-nav-btn-w);
    height: var(--fb-detail-nav-btn-h);
    min-height: var(--fb-detail-nav-btn-h);
    padding: 0 4px;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  .fb-detail-actions-nav__cell--start .fb-detail-nav-btn,
  .fb-detail-actions-nav__cell--end .fb-detail-nav-btn {
    width: var(--fb-detail-nav-btn-w);
    min-width: var(--fb-detail-nav-btn-w);
    max-width: var(--fb-detail-nav-btn-w);
  }

  .fb-detail-actions-nav__cell--end .fb-detail-nav-btn {
    justify-content: center;
  }

  .fb-detail-actions-nav__cell .fb-detail-nav-btn__meta {
    flex: 0 1 auto;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 모바일: 제목은 버튼 밖으로 나가지 않게 숨김(스크린리더·aria-label 유지) */
  .fb-detail-actions-nav__cell .fb-detail-nav-btn__title {
    display: none !important;
  }

  .fb-modal .fb-modal-actions--detail .fb-detail-actions-nav__cell--center .fb-btn.fb-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: var(--fb-detail-nav-btn-w);
    height: var(--fb-detail-nav-btn-h);
    min-height: var(--fb-detail-nav-btn-h);
    padding: 0 10px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--fb-board-radius);
  }

  .fb-detail-actions-admin {
    justify-content: center;
  }
}

.fb-modal .fb-modal-actions__lead,
.fb-modal .fb-modal-actions__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fb-modal .fb-modal-actions--edit {
  justify-content: space-between;
  gap: 10px;
  padding: 0px;
  margin-top: 0px;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.fb-detail-meta {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 0;
  align-items: center;
  margin: 0;
  width: auto;
  font-size: 13px;
  line-height: 1.35;
  color: var(--fb-board-text-muted);
}

.fb-detail-meta__chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: var(--fb-board-text-muted) !important;
  background: none;
  border: none;
  border-radius: 0;
  letter-spacing: 0;
  white-space: nowrap;
}

.fb-detail-meta__chip + .fb-detail-meta__chip::before {
  content: "·";
  margin: 0 6px;
  color: #bbb;
  font-weight: 400;
}

.fb-detail-meta__chip strong {
  font-weight: 600;
  color: #555;
  font-size: inherit;
}

.fb-detail-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family:
    "맑은 고딕", "Malgun Gothic", "Noto Sans KR", "Apple SD Gothic Neo",
    sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fb-detail-content p {
  margin: 0 0 10px;
}
.fb-detail-content img,
.fb-detail-content video,
.fb-detail-content iframe,
.fb-detail-content svg {
  max-width: 100%;
  height: auto;
}
.fb-detail-content pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
  max-width: 100%;
}

/* Word VML 도형(직인 박스·선 등): 브라우저에서 깨지며 가로 스크롤만 유발 → 숨김 */
.fb-detail-content [o\:gfxdata],
.fb-detail-content v\:rect,
.fb-detail-content v\:line,
.fb-detail-content v\:shape,
.fb-detail-content v\:roundrect,
.fb-detail-content v\:textbox {
  display: none !important;
}

.fb-detail-content table {
  box-sizing: border-box;
  border-collapse: collapse;
  border: 1px solid #d0d0d0;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 14px 0 20px;
  table-layout: fixed;
}

.fb-detail-content table td,
.fb-detail-content table th {
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  padding: 10px 14px;
  vertical-align: top;
  font-size: inherit;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal !important;
  min-width: 0;
  /* fixed 테이블에서 열이 컨테이너 안에 남도록 폭을 분배하고 긴 텍스트는 줄바꿈 */
  max-width: 0;
}

.fb-detail-content col {
  width: auto !important;
}

.fb-detail-content table th {
  background: #e9e9e9;
  font-weight: 700;
  text-align: center;
  color: #222;
}
.fb-detail-content table:not(:has(th)) tr:first-child > td {
  background: #e9e9e9;
  font-weight: 700;
  text-align: center;
  color: #222;
}
.fb-detail-content table[border]:not([border="0"]) td,
.fb-detail-content table[border]:not([border="0"]) th {
  border: 1px solid #d0d0d0;
}

.fb-detail-content h1,
.fb-detail-content h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #111;
}
.fb-detail-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #111;
}
.fb-detail-content h4,
.fb-detail-content h5,
.fb-detail-content h6 {
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #111;
}

/* Word 자동 생성 클래스 */
.fb-detail-content .MsoNormal,
.fb-detail-content .MsoBodyText {
  margin: 0 0 8px;
}
.fb-detail-content .WordSection1,
.fb-detail-content .WordSection2 {
  display: block;
}
.fb-detail-content b,
.fb-detail-content strong {
  font-weight: 700;
}

.fb-detail-content:not(:has(p)):not(:has(div)) {
  white-space: pre-wrap;
}

.fb-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

@media (max-width: 768px) {
  /* 목록: 컴팩트 카드 — 제목 강조 + 메타 한 줄(날짜 · 작성자 · 조회) */
  .fb-board-table-scroll {
    overflow: visible;
  }

  .fb-board-table {
    display: block;
    min-width: 0;
    width: 100%;
    table-layout: auto;
    border: none;
  }

  .fb-board-table colgroup,
  .fb-board-table thead {
    display: none;
  }

  .fb-board-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 0 10px;
  }

  .fb-board-table tbody tr:not(.fb-empty) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "no title";
    align-items: start;
    column-gap: 10px;
    row-gap: 0;
    padding: 12px 14px 10px;
    margin: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    transition:
      border-color 0.15s ease,
      background-color 0.15s ease;
  }

  .fb-board-table tbody tr:not(.fb-empty):hover,
  .fb-board-table tbody tr:not(.fb-empty):focus-within {
    border-color: #c5d4eb;
    background: #f9fbff;
  }

  .fb-board-table tbody td {
    display: block;
    width: auto !important;
    max-width: none !important;
    border: none;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
  }

  .fb-board-table tbody td.fb-col-no {
    grid-area: no;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 6px;
    font-size: 15px;
    font-weight: 500;
    color: #3c3c3c;
    background: #f2f4f7;
    border-radius: 4px;
    line-height: 1;
  }

  .fb-board-table tbody td.fb-col-title {
    grid-area: title;
    min-width: 0;
    padding: 0;
  }

  .fb-board-table tbody td.fb-col-title .fb-col-title-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    max-width: 100%;
    height: 3rem;
  }

  .fb-board-table tbody td.fb-col-title .fb-new-badge {
    flex-shrink: 0;
    align-self: center;
    vertical-align: middle;
  }

  .fb-board-table tbody td.fb-col-title a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .fb-board-table tbody td.fb-col-title a:hover {
    color: #333;
    text-decoration: underline;
  }

  .fb-board-table tbody td.fb-col-date,
  .fb-board-table tbody td.fb-col-author,
  .fb-board-table tbody td.fb-col-view {
    display: none !important;
  }

  .fb-board-table tbody td.fb-col-title .fb-board-meta-mobile {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 6px 0 0;
    padding: 0;
    width: 100%;
    min-height: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
  }

  .fb-board-meta-mobile__date {
    flex: 0 0 auto;
    color: #5c6573;
    letter-spacing: -0.01em;
  }

  .fb-board-meta-mobile__author {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
  }

  /* 작성자 뒤 · — 조회 뱃지와 분리 */
  .fb-board-meta-mobile__author + .fb-board-meta-mobile__sep {
    display: none;
  }

  .fb-board-meta-mobile__views {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: #6b7280;
    background: none;
    border: none;
    border-radius: 0;
    white-space: nowrap;
  }

  .fb-board-meta-mobile__sep {
    flex: 0 0 auto;
    margin: 0 6px;
    color: #c8ced8;
    font-size: 11px;
    user-select: none;
  }

  .fb-board-table tbody td.fb-col-action,
  .fb-board-table tbody td.fb-col-select {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 0;
    text-align: right;
  }

  .fb-board-table tbody td.fb-col-action[style*="display: none"],
  .fb-board-table tbody td.fb-col-select[style*="display: none"] {
    display: none !important;
    padding: 0;
  }

  .fb-board-table tbody tr.fb-empty {
    display: block;
    border: 1px dashed #e0e4ea;
    border-radius: 10px;
    background: #fafbfc;
    box-shadow: none;
  }

  .fb-board-table tbody tr.fb-empty td {
    display: block;
    text-align: center;
    padding: 36px 16px;
    color: #999;
  }

  .fb-board-toolbar {
    margin-bottom: 10px;
  }

  .fb-board-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .fb-search {
    max-width: none;
  }
  .fb-admin-actions {
    margin-left: 0;
    flex-direction: column;
    width: 100%;
  }
  .fb-pagination-batch {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    z-index: auto;
  }
  /* 모달 본문 영역 패딩 (데스크톱 .fb-modal-body: 14px 16px 16px) */
  .fb-modal-body {
    padding: 14px 16px 16px;
    border:none;
  }

  .fb-modal-body:has(.fb-detail) {
    padding: 0px 0px 0px 0px;
    border:none;
  }

  .fb-modal-body:has(.fb-form[data-form="edit"]) {
    padding: 0px 5px 5px 0px;
    border:none;
  }

  /* 상세 본문 박스 (데스크톱 .fb-detail-content: 16px 18px 18px) */
  .fb-detail .fb-detail-content {
    padding: 12px 8px 14px;
    border:none;
  }

  /* 게시판 상세/편집 모달 — 기존 “전체 크기” 토글과 동일한 너비를 기본값으로 */
  .fb-modal:not(.fb-modal-sm) {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
  }

  .fb-modal:has(.ck-editor),
  .fb-modal:has(.cke) {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
  }
}

.fb-modal:has(.ck-editor) {
  width: min(80vw, 1180px);
  max-width: none;
}

/* 메인 팝업 공지 전용 스타일은 styles/home-popup.css (index.js에서 로드) */
