.role-badge {
  --role-color: #5d5d5d;
  display: inline-grid; vertical-align: middle; flex: 0 0 auto; place-items: center; width: 22px; height: 24px;
  clip-path: polygon(50% 0,94% 23%,94% 77%,50% 100%,6% 77%,6% 23%);
  background: linear-gradient(150deg,#fff5 0%,transparent 55%),var(--role-color);
  color: #fff; font-size: 12px; line-height: 1;
}
.role-badge i { display: block; width: 12px; height: 12px; background: currentColor; }
.role-administrator { --role-color: #854b2e; }
.role-administrator i { clip-path: polygon(0 34%,25% 55%,50% 0,75% 53%,100% 31%,86% 90%,14% 90%); }
.role-operator { --role-color: #394b86; }
.role-operator i { clip-path: polygon(50% 0,92% 20%,88% 61%,71% 86%,50% 100%,29% 86%,12% 60%,8% 20%); }
.role-developer { --role-color: #246879; }
.role-developer i { background: transparent; width: auto; height: auto; font-style: normal; }
.role-developer i::before { content: '‹›'; letter-spacing: -.12em; font-size: 15px; font-weight: 900; }
.role-vip { --role-color: #9a5b23; }
.role-vip i { clip-path: polygon(50% 1%,66% 32%,100% 37%,76% 61%,80% 98%,50% 82%,20% 98%,24% 61%,0 37%,34% 32%); }
.role-verified { --role-color: #2c755e; }
.role-verified i { clip-path: polygon(0 48%,21% 28%,41% 51%,83% 7%,100% 27%,41% 89%); }
.role-member i { border-radius: 0; background: radial-gradient(circle at 50% 25%,currentColor 0 24%,transparent 27%),radial-gradient(ellipse 50% 42% at 50% 90%,currentColor 96%,transparent); }
.role-artist { --role-color: #874479; }
.role-artist i { clip-path: polygon(77% 0,100% 27%,53% 74%,39% 100%,0 100%,14% 72%,30% 65%); }
.role-name { font-size: .72rem; line-height: 1.2; font-weight: 750; opacity: .84; }
#header-account .role-badge { width: 17px; height: 19px; margin-inline-end: 5px; }
.post-author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: .84rem; }
.post-author > span:last-child { overflow-wrap: anywhere; }

.main-grid[data-no-banner] { margin-top: 60px; }

dialog.mobile-menu { width: min(460px,calc(100% - 16px)); max-width: none; max-height: min(760px,calc(100dvh - 24px)); margin: 12px 8px auto auto; border-radius: 19px; border-color: var(--line); }
body:has(.mobile-menu[open]) { overflow: hidden; }
.mobile-menu-head { min-height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; color: #fff8eb; background: linear-gradient(125deg,#2b2b2b,#484848); }
.mobile-menu-head a { display: flex; align-items: center; gap: 10px; border-radius: 7px; font-weight: 850; }
.mobile-menu-close { width: 39px; height: 39px; padding: 0; border: 1px solid #ffffff56; border-radius: 9px; background: #ffffff15; color: inherit; font-size: 1.65rem; line-height: 1; }
.mobile-menu-head :focus-visible { outline-color: #e2e2e2; outline-offset: 2px; }
.mobile-menu-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 13px; min-height: 46px; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--soft-surface); font-weight: 750; }
.mobile-menu-body { display: grid; grid-template-columns: minmax(88px,1fr) minmax(0,2.16fr); min-height: min(430px,58dvh); padding: 0 12px 12px; gap: 12px; }
.mobile-categories { display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 12px; background: var(--soft-surface); }
.mobile-categories button { display: flex; align-items: center; gap: 6px; text-align: left; min-height: 47px; padding: 4px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: .82rem; font-weight: 750; }
.mobile-categories button span { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; background: var(--surface); color: var(--accent); font-size: 1rem; }
.mobile-categories button[aria-pressed="true"] { background: #4a4a4a; color: #fff; }
.mobile-categories button[aria-pressed="true"] span { background: #ffffff27; color: #fff2d4; }
.mobile-links { padding: 5px 6px 9px 0; }
.mobile-links h2 { margin: 8px 0 5px; font-size: 1.2rem; }
.mobile-links a { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.46; }
.mobile-links a span { color: var(--accent); font-size: 1.15rem; }

.page-box:has(> #community-content) { padding: 0; background: transparent; border: 0; }
.board-surface, .post-detail, .post-editor, .support-form, .ticket-history, .ops-panel { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.hub-primary, .hub-secondary, .hub-danger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: .89rem; font-weight: 750; overflow-wrap: anywhere; }
.hub-primary { color: #fff; background: #4a4a4a; border-color: #4a4a4a; }
.hub-primary:hover { background: #383838; }
.hub-secondary { color: var(--ink); background: var(--soft-surface); }
.hub-secondary:hover { border-color: var(--accent); }
.hub-danger { color: #a13848; background: #fff3f4; border-color: #e7bfc6; }
[data-theme="night"] .hub-danger { color: #ffc8d1; background: #422636; border-color: #624155; }
.hub-primary:disabled, .hub-secondary:disabled, .hub-danger:disabled { opacity: .52; cursor: not-allowed; }
.hub-empty { display: grid; justify-items: center; gap: 9px; padding: clamp(32px,7vw,76px) 16px; text-align: center; color: var(--muted); }
.hub-empty p, .hub-status { margin: 0; overflow-wrap: anywhere; }
.hub-status:empty { display: none; }
.hub-status { color: var(--accent); padding: 7px 0; line-height: 1.6; }
.board-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.board-categories { display: flex; flex-wrap: wrap; gap: 5px; }
.board-categories a { padding: 9px 13px; min-height: 38px; display: flex; align-items: center; border-radius: 7px; font-weight: 750; font-size: .87rem; color: var(--muted); }
.board-categories a[aria-current="page"] { background: var(--soft-surface); color: var(--accent); }
.board-search { display: flex; gap: 6px; justify-content: flex-end; padding: 13px 19px; }
.board-search input { width: min(100%,330px); }
.board-search input, .hub-field input, .hub-field select, .hub-field textarea, .post-move select { min-width: 0; min-height: 45px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.board-columns, .board-items a { display: grid; align-items: center; gap: 14px; grid-template-columns: minmax(72px,.7fr) minmax(0,3fr) minmax(0,1.45fr) minmax(96px,1fr); padding: 11px 19px; }
.board-columns { color: var(--muted); background: var(--soft-surface); font-size: .83rem; font-weight: 750; }
.board-items { list-style: none; margin: 0; padding: 0; }
.board-items a { min-height: 65px; border-bottom: 1px solid var(--line); }
.board-items a:hover { background: var(--soft-surface); }
.board-items strong { font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.board-items time, .post-meta time, .ticket-item time { font-size: .8rem; color: var(--muted); }
.board-kind { margin: 0; color: var(--accent); font-size: .82rem; font-weight: 800; }
.hub-pages { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px; color: var(--muted); font-size: .85rem; }
.post-editor, .post-detail, .support-form, .ticket-history, .ops-panel { margin-inline: auto; padding: clamp(16px,3.1vw,36px); }
.post-editor, .post-detail, .support-form, .ticket-history { max-width: 1000px; }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.editor-header h2, .support-form h2, .ticket-history h2 { margin: 0 0 6px; font-size: 1.22rem; }
.editor-header p, .support-form p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.hub-form, .hub-field { display: grid; gap: 14px; min-width: 0; }
.hub-field { gap: 7px; font-size: .9rem; font-weight: 750; }
.hub-field input, .hub-field select, .hub-field textarea { width: 100%; font-weight: 400; }
.hub-field textarea { line-height: 1.64; resize: vertical; }
.editor-frame { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 7px; background: var(--soft-surface); border-bottom: 1px solid var(--line); }
.editor-toolbar :is(button, select) { width: auto; min-height: 35px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: .8rem; }
.editor-toolbar :is(button, select):hover { border-color: var(--accent); }
.editor-toolbar button[aria-pressed="true"] { color: #fff; background: #4a4a4a; }
.editor-color { display: inline-flex; align-items: center; gap: 5px; padding-inline: 3px; color: var(--ink); font-size: .8rem; }
.editor-color input[type="color"] { width: 30px; min-height: 35px; padding: 3px; border-radius: 5px; cursor: pointer; }
.editor-frame .rich-editable { min-height: 285px; padding: 12px 14px; background: var(--surface); }
.ops-form-wrap .editor-frame .rich-editable { min-height: 205px; }
.rich-editable:focus-visible { outline-offset: -3px; }
.rich-editable[aria-invalid="true"] + .editor-count { color: #a6374b; }
.editor-count { text-align: end; margin: 0; padding: 9px 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.editor-submit, .post-actions, .ops-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; justify-content: flex-end; }
.post-detail header { border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.post-detail h2 { margin: 9px 0; font-size: clamp(1.38rem,3vw,2rem); overflow-wrap: anywhere; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.post-body { min-height: 205px; padding: 20px 0; overflow-wrap: anywhere; white-space: pre-wrap; font-weight: 400; }
.post-body p { margin: 0 0 7px; color: var(--ink); line-height: 1.7; }
.post-body blockquote { margin: 0 0 8px; padding: 7px 12px; border-left: 3px solid var(--accent); background: var(--soft-surface); }
.post-body ul { margin: 0 0 8px; padding-inline-start: 1.5em; list-style: disc; }
.post-body li::marker { color: var(--accent); }
.post-cover, .post-gallery img { display: block; max-width: 100%; max-height: 720px; width: auto; height: auto; border-radius: 8px; }
.post-cover { margin-bottom: 18px; }
.post-body .post-gallery { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; white-space: normal; }
.post-gallery a { display: inline-block; max-width: 100%; border-radius: 8px; }
.post-images { min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 9px; }
.post-images legend { padding: 0 4px; font-weight: 750; }
.post-images .hub-field span { color: var(--muted); font-weight: 450; }
.post-images input::file-selector-button { padding: 4px 7px; margin-inline-end: 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface); }
.post-image-previews { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0 0; padding: 0; list-style: none; }
.post-image-previews:empty { display: none; }
.post-image-previews li { display: grid; gap: 4px; width: 91px; }
.post-image-previews img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--soft-surface); }
.post-image-previews .hub-secondary { min-height: 32px; padding: 4px 5px; }
.post-body [data-rich-bold="true"] { font-weight: 750; }
.post-body [data-rich-bold="false"] { font-weight: 400; }
.post-body [data-rich-font="default"] { font-family: var(--display); }
.post-body [data-rich-font="gothic"] { font-family: system-ui, "Malgun Gothic", sans-serif; }
.post-body [data-rich-font="serif"] { font-family: "Noto Serif KR", Batang, Georgia, serif; }
.post-body [data-rich-font="mono"] { font-family: ui-monospace, Consolas, monospace; }
.post-body [data-rich-shadow="none"] { text-shadow: none; }
.post-body [data-rich-shadow="soft"] { text-shadow: 1px 1px 2px #17171755; }
.post-body [data-rich-shadow="strong"] { text-shadow: 1px 2px 2px #171717a3, 0 0 5px #8c8c8c69; }
#news-write { margin-bottom: 12px; }
.post-actions { justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 16px; }
.post-move { display: flex; gap: 5px; }
.post-move select { max-width: 145px; padding: 5px 7px; }
.ticket-history { margin-top: 14px; }
.ticket-item { padding: 0; }
.ticket-item summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 7px 11px; align-items: center; padding: 14px 0; }
.ticket-item summary strong { overflow-wrap: anywhere; }
.ticket-detail { display: grid; gap: 10px; padding: 0 10px 18px; }
.ticket-meta { margin: 0; color: var(--muted); font-size: .82rem; }
.ticket-detail a, .support-form a { color: var(--accent); text-decoration: underline; }
.ticket-body, .ticket-reply { padding: 13px; border-radius: 8px; background: var(--soft-surface); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-reply p { margin: 5px 0 0; }
.ticket-state { padding: 5px 8px; border-radius: 6px; background: var(--soft-surface); color: var(--accent); font-size: .77rem; white-space: nowrap; }
.ticket-state.is-resolved { background: #1c846323; color: var(--ink); }
.ticket-answer button { justify-self: start; }

.ops-panel { max-width: 1160px; }
.ops-panel h2 { margin: 0 0 11px; font-size: 1.13rem; }
.ops-split { display: grid; grid-template-columns: minmax(160px,.75fr) minmax(0,1.7fr); gap: 20px; }
.ops-collection { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft-surface); align-self: start; }
.ops-collection-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 10px; }
.ops-collection-title h2 { margin: 0; }
.ops-item-list { display: grid; gap: 5px; max-height: 490px; overflow: auto; }
.ops-item-list button { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 41px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-align: left; font-size: .86rem; }
.ops-item-list button small { color: var(--muted); flex-shrink: 0; }
.ops-item-list button[aria-pressed="true"] { border: 2px solid var(--accent); color: var(--accent); }
.ops-form-wrap { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ops-field-pair, .ops-staff { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ops-image { display: grid; align-items: start; gap: 8px; }
.ops-image img { width: 100%; height: 180px; object-fit: cover; border-radius: 9px; }
.ops-image button { justify-self: start; }
.ops-check { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .89rem; }
.ops-check input { accent-color: #4b4b4b; width: 16px; height: 16px; }
.ops-permissions { display: grid; margin: 0; padding: 8px 12px; min-width: 0; border: 1px solid var(--line); border-radius: 9px; }
.ops-badge-select { display: flex; align-items: center; gap: 9px; }
.ops-badge-select .hub-field { flex: 1; }
.ops-staff form { align-self: start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.ops-staff-list { margin-top: 21px; }
.staff-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; }
.staff-row p { margin: 6px 0 0; color: var(--muted); font-size: .83rem; }
.ops-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; }
.ops-filters label { flex: 1 1 125px; max-width: 220px; }
.ops-mobile-settings { gap: 16px; }
.ops-mobile-section, .ops-mobile-video { display: grid; min-width: 0; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.ops-mobile-section { background: var(--soft-surface); }
.ops-mobile-section .ops-collection-title { margin-block-end: 0; }
.ops-mobile-section > .ops-image img { max-width: 480px; height: auto; aspect-ratio: 4 / 1; object-fit: contain; background: var(--surface); }
.ops-mobile-video { margin: 0; background: var(--surface); }
.ops-mobile-video > legend { padding-inline: 4px; color: var(--accent); font-size: .84rem; font-weight: 800; }
.ops-mobile-video .ops-image img { max-width: 300px; height: auto; aspect-ratio: 16 / 9; }
.ops-mobile-help { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.account-help-links, .recovery-tabs { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--accent); font-size: .86rem; font-weight: 750; }
.account-help-links a { margin: 0; }
.recovery-tabs { margin: 17px 0; }
.recovery-tabs a { padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); }
.recovery-tabs a[aria-current="page"] { background: var(--soft-surface); }
.back-to-top { position: fixed; z-index: 4; right: max(16px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); width: 45px; height: 45px; border-radius: 12px; border: 1px solid #8e8e8e; background: #2e2e2e; color: #fff6e1; box-shadow: 0 5px 20px #23232335; font-size: 1.42rem; line-height: 1; }

@media (max-width: 740px) {
  .board-header { padding: 10px; flex-wrap: wrap; }
  .board-categories { flex: 1 1 100%; }
  .board-categories a { padding-inline: 8px; min-height: 36px; }
  .board-search { padding: 10px; }
  .board-search input { width: 100%; }
  .board-columns { display: none; }
  .board-items a { grid-template-columns: minmax(0,1fr) auto; gap: 6px 8px; padding: 12px; }
  .board-items strong { grid-column: 1/-1; grid-row: 2; }
  .board-items time { grid-column: 2; grid-row: 1; }
  .board-items .post-author { grid-column: 1/-1; grid-row: 3; }
  .board-kind { min-width: 0; }
  .ops-split, .ops-staff { grid-template-columns: minmax(0,1fr); }
  .ops-item-list { max-height: 210px; }
  .ops-field-pair { grid-template-columns: minmax(0,1fr); }
  .hub-field input, .hub-field select, .hub-field textarea, .board-search input { font-size: 16px; }
  .ticket-item summary { grid-template-columns: auto minmax(0,1fr); }
  .ticket-item summary time { grid-column: 2; }
}
.mobile-view .ops-split, .mobile-view .ops-staff { grid-template-columns: minmax(0,1fr); }
