/* Shared member, board and editor components. */
.join-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.join-types article,.application-panel { padding: 28px; border: 1px solid var(--line); border-radius: 12px; }
.join-types h3,.application-panel h3 { font-size: 23px; margin-bottom: 16px; }
.join-types ul { padding-left: 20px; color: var(--sub); line-height: 2; margin-bottom: 22px; }
.join-types button { border: 0; }
.join-note { color: var(--sub); font-size: 14px; margin-block: 24px; }
.application-panel p { margin-block: 12px; }
.join-fee { margin-bottom: 20px; font-size: 14px; color: var(--sub); }
.application-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.application-fields label { display: grid; gap: 8px; font-size: 14px; }
.application-fields input,.application-fields select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; background: #fff; }
.application-fields input:disabled { background: #f4f5f6; color: #606a75; }
.payment-guide { margin-block: 26px; padding: 22px; border-radius: 10px; background: #f4f5f6; font-size: 15px; }
.join-privacy { margin-block: 20px; color: var(--sub); font-size: 14px; }
.join-privacy summary { cursor: pointer; }
.join-consent { display: flex; gap: 12px; align-items: flex-start; margin-block: 20px; font-size: 14px; }
.join-consent input { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
#joinSubmit { border: 0; }
@media(max-width:600px) { .application-fields { grid-template-columns: 1fr; } }
@media(max-width:600px) { .join-types { grid-template-columns: 1fr; }.join-types article,.application-panel { padding: 22px; } }
.board-page .hero,.board-page .latest-section,.board-page .board-nav,.board-page .boards>.wrap>.section-heading,.board-page .contact { display: none; }
.board-page .boards { min-height: 65vh; background: #fff; padding-block: 30px 64px; }
.board-context { display: flex; gap: 12px; align-items: center; color: var(--sub); font-size: 14px; }
.board-context a { text-decoration: underline; text-underline-offset: 4px; }
.menu a[aria-current="page"] { color: #ad503d; }
.board-page #boardView,.board-page #adminPanel { border: 0; padding: 0; border-radius: 0; }
.bv-head h2 { font-size: 30px; line-height: 1.5; }
.board-description { color: var(--sub); font-size: 17px; }
.board-permission { color: #65707d; margin-top: 8px; font-size: 13px; }
.board-list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-block: 28px 14px; }
.board-list-toolbar input { width: min(100%,280px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.post-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.post-table th { text-align: left; padding: 13px 16px; background: #f2f4f6; font-size: 14px; color: #5e6873; font-weight: 500; }
.post-table th:first-child { width: 70px; }
.post-table th:nth-child(3) { width: 170px; }
.post-table th:last-child { width: 125px; }
.post-table td { padding: 20px 16px; border-bottom: 1px solid #edf0f3; font-size: 14px; color: var(--sub); overflow-wrap: anywhere; }
.post-table .post-title-cell { color: var(--ink); font-size: 17px; }
.post-table .post-title-cell button { border: 0; background: transparent; color: inherit; text-align: left; font-weight: 600; line-height: 1.7; }
.post-table .post-title-cell button:hover { text-decoration: underline; text-underline-offset: 5px; }
.account-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.account-admin-actions button { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:600px) {
  .bv-head h2 { font-size: 25px; }
  .board-list-toolbar { flex-wrap: wrap; }
  .board-list-toolbar label { width: 100%; }
  .board-list-toolbar input { width: 100%; }
  .post-table thead { display: none; }
  .post-table,.post-table tbody { display: block; }
  .post-table .board-data-row { display: grid; grid-template-columns: 1fr auto; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .post-table td { display: block; padding: 0; border: 0; font-size: 12px; }
  .post-table .board-data-row td:first-child { display: none; }
  .post-table .post-title-cell { grid-column: 1 / -1; margin-bottom: 9px; font-size: 17px; }
}
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.btn-p { background: var(--blue); color: #fff; }
.btn-k { background: #f7ce54; color: #24282d; }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.modal-bg { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; background: #161b246b; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: 90dvh; overflow-y: auto; border-radius: 16px; padding: 32px; background: #fff; }
.modal h3 { padding-right: 24px; margin: 0 0 12px; font-size: 24px; line-height: 1.5; }
.modal .m-x { position: absolute; top: 24px; right: 24px; border: 0; background: transparent; color: #727c88; font-size: 20px; }
.modal .m-sub { color: var(--sub); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.modal label { display: block; margin: 15px 0 7px; color: #505963; font-size: 14px; }
.modal input { width: 100%; border: 1px solid #cbd1d8; border-radius: 8px; padding: 12px 13px; font-size: 16px; color: var(--ink); background: #fff; }
.modal input:focus { outline: 2px solid #d6dce4; outline-offset: 1px; border-color: #697789; }
.modal .m-btn { display: block; width: 100%; margin-top: 22px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; padding: 13px 16px; font-size: 16px; font-weight: 600; text-align: center; }
.modal .m-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 20px; font-size: 14px; }
.modal .m-msg { margin-top: 14px; min-height: 20px; color: #ad3b32; font-size: 14px; white-space: pre-line; }
.modal .m-msg.success { color: #286c4d; }
.password-field { position: relative; }
.modal .password-field input { padding-right: 74px; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 5px; background: #eef1f4; color: #465363; font-size: 12px; }
.account-info { padding: 18px; margin-block: 16px; border-radius: 10px; background: var(--bg); overflow-wrap: anywhere; }
.account-help { font-size: 14px; color: var(--sub); }
.account-help ol { padding-left: 22px; }
.account-help li { margin-block: 10px; }
.account-help p { margin-top: 18px; font-size: 13px; }
.site-status { padding: 12px 24px; background: var(--warm-bg); color: #724a20; text-align: center; font-size: 14px; }
#boardView,#adminPanel { margin-top: 32px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: #fff; scroll-margin-top: 24px; }
.bv-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.bv-head h3 { font-size: 26px; line-height: 1.6; }
.bv-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bv-actions button { border: 1px solid #bdc5ce; border-radius: 7px; padding: 9px 16px; background: #fff; color: #35404c; font-size: 14px; font-weight: 600; }
.bv-actions .primary { border-color: var(--blue); background: var(--blue); color: #fff; }
#boardView>ul { list-style: none; }
.post-row { padding: 20px 0; border-bottom: 1px solid #e9ecf0; font-size: 16px; }
.post-row button { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.post-row button b { font-weight: 600; }
.post-row .meta { color: var(--sub); font-size: 13px; white-space: nowrap; }
.post-title { overflow-wrap: anywhere; }
.post-meta { color: var(--sub); font-size: 14px; margin-block: 12px 20px; }
.post-body { font-size: 16px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body a { text-decoration: underline; }
.empty { padding: 40px 20px; color: var(--sub); text-align: center; }
.content-empty { min-height: 230px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--sub); font-size: 15px; }
#latestFeed .content-empty { min-height: 350px; }
.member-gate { padding: 32px; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #f2f4f6; color: var(--ink); text-align: center; border-radius: 10px; }
.member-gate h4 { font-size: 23px; }
.member-gate p { font-size: 15px; color: var(--sub); }
.mini-label { font-size: 12px; color: var(--sub); }
.field-label { display: block; margin: 18px 0 8px; font-size: 15px; font-weight: 600; }
.t-in,#boardView textarea { width: 100%; border: 1px solid #cbd1d8; border-radius: 8px; padding: 12px 14px; font-size: 16px; color: var(--ink); background: #fff; }
#boardView textarea { resize: vertical; min-height: 180px; line-height: 1.8; }
#boardView form>.bv-actions { margin-top: 20px; }
.form-note,.board-status { color: var(--sub); font-size: 14px; line-height: 1.8; margin-block: 12px; }
.board-status { white-space: pre-line; }
.editor-preview { padding: 24px; margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-preview img { max-height: 320px; margin-top: 16px; object-fit: contain; }
.managed-images { display: grid; gap: 20px; margin-block: 24px; }
.managed-images img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.managed-files { list-style: none; }
.managed-files a { display: block; padding: 14px; margin: 10px 0; border-radius: 6px; background: var(--bg); text-decoration: underline; overflow-wrap: anywhere; }
.file-retain { display: flex; gap: 10px; font-size: 14px; padding-block: 8px; }
#mcFiles { width: 100%; padding-block: 12px; font-size: 14px; }
#adminPanel { overflow-x: auto; }
#adminPanel h4 { font-size: 24px; }
#adminPanel table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; }
#adminPanel th,#adminPanel td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
#adminPanel select { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.webapp-card { margin-block: 20px; }
.webapp-window { position: relative; height: 320px; margin-block: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.webapp-window iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.webapp-window>a { position: absolute; inset: 0; }
.webapp-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; list-style: none; }
.webapp-entry { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.webapp-entry h3 { font-size: 21px; overflow-wrap: anywhere; }
.webapp-entry .webapp-window { height: 230px; }
.webapp-entry img { max-height: 230px; object-fit: contain; }
.webapp-entry>button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; color: var(--blue); }
@media(max-width:700px) { .webapp-grid { grid-template-columns: 1fr; } .webapp-window { height: 240px; } }
@media(max-width:600px) {
  .modal-bg { padding: 12px; }
  .modal { padding: 26px 24px; }
  .modal h3 { font-size: 23px; }
  .modal .m-x { top: 20px; right: 20px; }
  #boardView,#adminPanel { padding: 22px 18px; }
  .bv-head h3 { font-size: 23px; }
  .post-row button { flex-direction: column; gap: 6px; }
  .post-row .meta { white-space: normal; }
  .post-body { font-size: 15px; }
  .member-gate { padding: 26px 18px; }
  .member-gate h4 { font-size: 21px; }
}

