.support-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.support-sidebar { position: sticky; top: 94px; padding: 22px 15px; }
.support-sidebar h2 { margin: 0 10px 15px; color: var(--navy); font-size: 18px; }
.support-sidebar nav { display: grid; gap: 6px; }
.support-sidebar a { padding: 12px; border-radius: 7px; color: #526177; font-size: 14px; font-weight: 700; }
.support-sidebar a:hover { color: var(--blue); background: var(--blue-soft); }
.support-sidebar a[aria-current] { color: #fff; background: var(--blue); }
.support-content { min-width: 0; }
.support-panel { padding: 30px; scroll-margin-top: 130px; }
.support-panel h2 { margin-bottom: 8px; font-size: 26px; color: var(--navy); }
.support-panel header p { color: var(--muted); font-size: 14px; }
.support-list-heading { display: flex; justify-content: space-between; padding: 14px 16px; border-block: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.support-panel .empty-state { padding: 65px 15px; text-align: center; }
@media (max-width: 1050px) { .support-sidebar { top: 138px; } }
@media (max-width: 640px) {
  .support-layout { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .support-sidebar { padding: 16px 7px; top: 128px; }
  .support-sidebar h2 { margin-inline: 7px; font-size: 16px; }
  .support-sidebar a { padding: 11px 7px; font-size: 12px; }
  .support-panel { padding: 20px 14px; }
  .support-panel h2 { font-size: 22px; }
  .support-panel header p { font-size: 13px; }
  .support-panel .empty-state { padding: 38px 0; }
  .support-panel .empty-state strong { font-size: 15px; }
}
.support-status:empty, .support-account:empty { display: none; }
.support-status, .support-account { margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #435775; font-size: 14px; overflow-wrap: anywhere; }
.support-panel { overflow-wrap: anywhere; }
.support-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.support-heading > div { flex: 1 1 230px; min-width: 0; }
.support-panel button { min-height: 40px; padding: 9px 14px; border: 1px solid #cbdaf0; border-radius: 7px; background: #fff; color: var(--navy); font: inherit; font-size: 14px; cursor: pointer; max-width: 100%; }
.support-panel button.primary-button { background: var(--blue); color: #fff; border-color: var(--blue); }
.support-panel button:disabled { cursor: not-allowed; opacity: .6; }
.support-panel button:focus-visible, .support-panel a:focus-visible, .support-panel input:focus-visible, .support-panel textarea:focus-visible { outline: 3px solid #8cb9ff; outline-offset: 3px; }
.support-panel .empty-state p { margin-bottom: 16px; }
.support-post-list { border-top: 1px solid var(--line); }
.post-meta { font-size: 12px; color: var(--muted); }
.support-table-list { overflow-x: auto; }
.support-board-table { width: 100%; min-width: 510px; border-collapse: collapse; table-layout: fixed; color: var(--navy); }
.support-board-table th, .support-board-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; font-size: 13px; }
.support-board-table th { background: #f5f8fd; font-weight: 700; }
.support-board-table .board-date { width: 105px; white-space: nowrap; }
.support-board-table .board-author { width: 105px; overflow-wrap: anywhere; }
.support-board-table .board-title-cell { overflow-wrap: anywhere; }
.support-board-table td.board-title-cell { text-align: left; }
.support-board-table .board-title-cell > a, .support-board-table .board-title-cell > span { color: var(--navy); font-weight: 600; }
.support-board-table a:hover { color: var(--blue); text-decoration: underline; }
.support-pagination, .support-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.support-pagination { justify-content: center; font-size: 13px; }
.post-info { margin: 0; border-top: 1px solid var(--line); }
.post-info-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); min-height: 54px; border-bottom: 1px solid var(--line); }
.post-info-meta-row { grid-template-columns: 104px minmax(0, 1fr) 104px minmax(0, 1fr); }
.post-info-meta-row dt:nth-of-type(2) { border-left: 1px solid var(--line); }
.post-info-row dt { display: flex; align-items: center; padding: 12px 14px; background: #f5f8fd; color: #526177; font-size: 13px; font-weight: 700; }
.post-info-row dd { min-width: 0; margin: 0; padding: 12px 18px; align-self: center; font-size: 13px; }
#post-title { margin: 0; color: var(--navy); font-size: 13px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
#post-date { color: #526177; font-variant-numeric: tabular-nums; white-space: nowrap; }
.private-lock { display: inline-block; position: relative; width: 12px; height: 14px; margin-left: 6px; vertical-align: -2px; color: #526177; }
.private-lock::before { content: ''; position: absolute; top: 0; left: 2px; width: 8px; height: 8px; box-sizing: border-box; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.private-lock::after { content: ''; position: absolute; bottom: 0; left: 0; width: 12px; height: 9px; border-radius: 2px; background: currentColor; }
.post-content { min-height: 150px; margin: 0; padding: 30px 18px 38px; border-bottom: 1px solid var(--line); background: #fff; }
.post-body { margin: 0; color: var(--navy); font-size: 15px; white-space: pre-wrap; line-height: 1.85; }
.post-images figure { margin: 0 0 26px; }
.post-images img { display: block; max-width: 100%; max-height: 520px; object-fit: contain; }
.post-images figcaption { margin-top: 8px; color: #526177; font-size: 12px; overflow-wrap: anywhere; }
.post-attachments { display: grid; grid-template-columns: 104px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.post-attachments h4 { display: flex; align-items: center; margin: 0; padding: 14px; background: #f5f8fd; color: #526177; font-size: 13px; }
#post-attachment-links { display: grid; gap: 8px; min-width: 0; padding: 14px 18px; font-size: 13px; }
#post-attachment-links a { color: var(--blue-dark); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
#post-attachment-status { grid-column: 2; margin: 0; padding: 0 18px 12px; color: #526177; font-size: 12px; }
#post-attachment-status:empty { display: none; }
#back-to-list { margin-top: 24px; }
.support-reply { padding: 22px; background: #f3f7ff; border-radius: 10px; margin-top: 18px; }
.support-reply h4 { margin-bottom: 12px; }
.support-reply p { white-space: pre-wrap; }
.post-comments { margin-top: 32px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.discussion-detail .post-comments { margin-top: 28px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.post-comments h4 { margin: 0 0 16px; color: var(--navy); font-size: 18px; }
.comments-list { display: grid; gap: 10px; }
.comments-list .empty-state { margin: 0; padding: 18px 0; text-align: left; }
.support-comment { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; }
.support-comment-reply { margin-left: calc(var(--comment-depth, 1) * 16px); border-left: 3px solid #9abce9; }
.comment-reply-label { color: #52647b; font-size: 12px; }
.comment-reply-target { margin: 0; padding: 10px 12px; border-radius: 6px; background: #eef5ff; color: #173e70; font-size: 13px; }
#cancel-comment-reply:not([hidden]) { justify-self: start; }
.comment-content { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 4px; min-width: 0; }
.comment-private-title { color: var(--navy); font-size: 13px; font-weight: 600; }
.support-comment .comment-body { min-width: 0; margin: 0; text-align: left; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.7; }
.comment-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: left; }
.comment-side { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.support-comment .post-meta { margin: 0; text-align: right; overflow-wrap: anywhere; }
.support-comment .comment-side button { min-height: 30px; padding: 4px 9px; font-size: 12px; }
.comment-edit-form { width: 100%; }
.comment-edit-actions { display: flex; gap: 8px; }
.comment-edit-status { margin: 0; color: #435775; font-size: 13px; }
.comment-edit-status:empty { display: none; }
#comments-status:empty { display: none; }
#comments-status { color: #435775; font-size: 13px; margin: 12px 0; }
#comment-login { margin: 22px 0 0; font-size: 14px; }
#comment-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
#comment-form > button { justify-self: start; }
#more-comments { margin-top: 16px; }
@media (max-width: 640px) {
  .post-info-row, .post-attachments { grid-template-columns: 70px minmax(0, 1fr); }
  .post-info-meta-row { grid-template-columns: 60px minmax(0, 1fr) 60px minmax(0, 1fr); }
  .post-info-row dt, .post-attachments h4 { padding-inline: 10px; }
  .post-info-row dd, #post-attachment-links { padding-inline: 12px; }
  .post-info-meta-row dt, .post-info-meta-row dd { padding-inline: 8px; font-size: 12px; }
  .post-content { padding: 24px 12px 30px; }
  .post-comments { padding: 16px; }
}
.support-form { display: grid; gap: 12px; }
.support-form[hidden], .support-panel [hidden] { display: none !important; }
.support-form h3 { font-size: 22px; margin-bottom: 8px; }
.support-form > p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.support-form label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.support-form input:not([type="checkbox"]):not([type="radio"]), .support-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #bfd1ec; border-radius: 7px; color: var(--navy); background: #fff; font: inherit; }
.support-form textarea { resize: vertical; line-height: 1.7; }
.post-file-field { display: grid; gap: 8px; margin-top: 8px; }
.post-file-field > p { margin: 0; color: #526177; font-size: 12px; line-height: 1.6; }
#existing-attachments { display: grid; gap: 8px; }
.existing-attachment { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.existing-attachment span { overflow-wrap: anywhere; }
.existing-attachment button { flex: 0 0 auto; }
.support-visibility-field { display: grid; gap: 10px; margin: 8px 0 0; padding: 14px 16px; border: 1px solid #bfd1ec; border-radius: 7px; }
.support-visibility-field legend { padding: 0 5px; font-size: 14px; font-weight: 600; }
.support-visibility-field label { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; cursor: pointer; }
.support-visibility-field input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.support-visibility-field span { color: #526177; font-size: 13px; font-weight: 400; }
.comment-visibility-field { display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; padding: 10px 14px; }
.comment-visibility-field label { flex: 0 0 auto; white-space: nowrap; }
.support-visibility-field input:focus-visible { outline: 3px solid #8cb9ff; outline-offset: 3px; }
.support-checkbox { display: flex; gap: 8px; align-items: center; }
.support-checkbox input { width: 18px; height: 18px; }
#reply-form { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
#reply-form button { justify-self: start; }
#course-view > h3 { font-size: 22px; margin: 24px 0 12px; line-height: 1.5; }
#course-description, .course-materials p, .course-curriculum p { color: #526177; line-height: 1.85; white-space: pre-wrap; }
.course-draft { display: inline-block; padding: 5px 10px; border-radius: 5px; background: #edf4ff; color: #1555a6; font-size: 12px; }
.course-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 24px; margin-block: 28px 36px; background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px; }
.course-summary dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.course-summary dd { margin: 0; font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.course-curriculum { list-style: none; padding: 0; display: grid; gap: 14px; }
.course-curriculum li { padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.course-curriculum span { color: var(--blue); font-size: 12px; font-weight: 700; }
.course-curriculum h4 { margin: 10px 0 8px; font-size: 17px; }
.course-curriculum p { font-size: 14px; }
.course-materials { margin-block: 32px; }
.course-materials h3 { margin-bottom: 12px; font-size: 19px; }
.course-payment { padding: 26px; background: #f5f8ff; border: 1px solid #c8dbff; border-radius: 12px; }
.course-payment h3 { font-size: 22px; margin-bottom: 10px; }
.course-payment > p { font-size: 14px; color: #526177; }
.payment-quantity { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 24px; font-size: 14px; }
.payment-quantity input { width: 72px; min-width: 0; padding: 8px; border: 1px solid #bfd1ec; border-radius: 6px; background: #fff; color: var(--navy); font: inherit; }
.course-payment fieldset { margin: 0; padding: 18px 0; border: 0; border-block: 1px solid var(--line); min-width: 0; }
.course-payment legend { font-size: 14px; padding: 0 0 12px; }
.course-payment fieldset label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; }
.course-payment input[type="radio"] { accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.course-payment .payment-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-block: 22px; color: var(--navy); }
.payment-total strong { font-size: 24px; }
.course-payment > button { width: 100%; }
.course-payment .payment-preview-note { font-size: 12px; margin-top: 12px; line-height: 1.7; }
.course-lesson-field { display: grid; gap: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.course-lesson-field legend { padding: 0 8px; color: var(--blue); font-weight: 700; }
.course-lesson-field button, #add-lesson { justify-self: start; }
@media (max-width: 900px) { .course-summary { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .support-heading { gap: 12px; margin-bottom: 20px; padding-bottom: 18px; }
  .support-heading > div { flex-basis: 100%; }
  .support-panel button { font-size: 12px; padding: 8px 10px; }
  #course-view > h3, .course-payment h3 { font-size: 19px; }
  .course-summary, .course-curriculum li, .course-payment, .support-reply, .course-lesson-field { padding: 14px; }
  .course-summary { gap: 18px; }
  .course-curriculum h4 { font-size: 15px; }
  .course-curriculum p, #course-description, .course-materials p { font-size: 13px; }
  .support-form input:not([type="checkbox"]), .support-form textarea { font-size: 16px; padding: 8px; }
  .payment-total strong { font-size: 20px; }
}

.board-search { display: grid; gap: 8px; margin-bottom: 12px; }
.board-search label { font-weight: 600; font-size: 14px; }
.board-search-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.board-search input { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border: 1px solid #a9b7ca; border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-size: 16px; }
.board-search-summary { margin-bottom: 16px; color: #526177; font-size: 14px; }
.board-page-numbers { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.support-pagination { flex-wrap: wrap; }
.board-page-numbers [aria-current="page"] { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 640px) { .board-search input { flex-basis: 100%; } .support-pagination { gap: 6px; } }

.board-search select { min-height: 44px; min-width: 90px; padding: 10px 12px; border: 1px solid #a9b7ca; border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-size: 16px; }

#board-pagination { gap: 4px; margin-top: 28px; }
#board-pagination .board-page-numbers { gap: 4px; }
#board-pagination button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 4px 8px; border: 1px solid #d6dce5; border-radius: 0; background: #f1f3f6; color: #526177; font-size: 15px; font-variant-numeric: tabular-nums; }
#board-pagination > button { background: #fff; font-size: 24px; }
#board-pagination button[aria-current="page"] { border-color: #102c50; background: #102c50; color: #fff; font-weight: 700; }
#board-pagination button:hover:not(:disabled):not([aria-current="page"]) { background: #e7effa; color: #075bcc; }
#board-pagination button:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 640px) {
  #board-pagination { display: grid; grid-template-columns: repeat(4, 44px); justify-content: center; gap: 8px; }
  #board-pagination[hidden] { display: none; }
  #board-pagination .board-page-numbers { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  #board-pagination button { min-width: 0; height: 44px; padding: 4px; }
}

/* 게시판 검색 바와 결과 안내 */
.board-search { gap: 10px; margin-bottom: 8px; }
.board-search-controls { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; padding: 5px; border: 1px solid #ccd8e8; border-radius: 14px; background: #f8fafc; }
.board-search-controls:focus-within { border-color: #0b63d8; box-shadow: 0 0 0 3px #0b63d814; }
.board-search-controls :is(select, input):focus-visible { outline: none; }
.board-search-controls select { flex: 0 0 94px; min-width: 0; width: 94px; border: 0; border-right: 1px solid #dce5f2; border-radius: 0; padding: 10px; background: transparent; }
.board-search-controls input { flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; border: 0; border-radius: 6px; background: transparent; padding: 10px 12px; }
.board-search-controls input::placeholder { color: #748398; }
.board-search-controls .board-search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-width: 78px; min-height: 44px; border-radius: 10px; padding: 10px 14px; }
.board-search-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.board-search-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 16px; }
.board-search-meta .board-search-summary { margin: 0; font-size: 13px; color: #526177; }
.board-search-meta #clear-board-search { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: #526177; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.board-search-meta #clear-board-search:hover { color: #0b63d8; }
@media (max-width: 640px) {
  .board-search > label { font-size: 13px; color: #526177; }
  .board-search-controls select { flex-basis: 76px; width: 76px; padding: 10px 6px; }
  .board-search-controls input { flex-basis: 0; padding: 10px 8px; }
  .board-search-controls .board-search-submit { width: 44px; min-width: 44px; padding: 10px; }
  .board-search-submit span { display: none; }
  .board-search-meta { gap: 0 6px; }
  .board-search-meta .board-search-summary, .board-search-meta #clear-board-search { font-size: 12px; }
}

.support-sidebar h2, .support-sidebar nav a { text-align: left; }
@media (max-width: 640px) {
  .support-sidebar h2, .support-sidebar nav a { text-align: center; }
}

.comment-edit-form { grid-column: 1 / -1; }
#comment-body, .comment-edit-form textarea { min-height: 72px; padding: 8px 10px; }
