:root {
  color-scheme: light;
  font-family: "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: #29343b;
  background: #f4f7f8;
  font-synthesis: none;
  --ink: #29343b;
  --muted: #75818b;
  --border: #e0e6e9;
  --green: #287564;
  --green-hover: #1e6052;
  --rose: #c94d62;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #84b7a9; outline-offset: 3px; }
.lucide { width: 18px; height: 18px; flex-shrink: 0; }
.site-header, main, .site-footer { width: min(920px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; }
.brand img { object-fit: contain; border-radius: 4px; background: #fff; }
.brand span { display: grid; font-size: 15px; line-height: 1.45; }
.brand small { font-size: 10px; font-weight: 500; color: var(--muted); }
.header-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.intro { position: relative; padding: 46px 248px 34px 0; min-height: 248px; word-break: keep-all; }
.welcome-mascot { position: absolute; right: 24px; top: 14px; width: 192px; height: 218px; object-fit: contain; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 600; }
h1, h2, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.35; margin: 9px 0 12px; font-weight: 800; }
.intro p { color: #69757e; font-size: 15px; line-height: 1.85; }
.board { padding-bottom: 32px; }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; }
.board-heading h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.post-count { font-size: 13px; font-weight: 600; color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 17px; min-height: 42px; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; font-size: 14px; font-weight: 650; transition: background .16s; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-hover); }
.button-secondary { border-color: var(--border); background: #fff; color: #63707a; }
.button-secondary:hover { background: #f2f5f6; }
.button-danger { color: #fff; background: var(--rose); }
.button-danger:hover { background: #ad3c50; }
.post-list { display: grid; gap: 16px; }
.post { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 22px 24px 18px; scroll-margin-top: 20px; min-width: 0; }
.post-admin { border-color: #b4d9cc; }
.entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 14px; font-weight: 700; }
.avatar-0 { background: #edf3ef; color: #427a63; }
.avatar-1 { background: #f9eef1; color: #bd6276; }
.avatar-2 { background: #ecf2f9; color: #5478a8; }
.avatar-3 { background: #fcf4df; color: #a78328; }
.avatar-admin { color: var(--green); background: #def0e8; }
.author-lines { min-width: 0; }
.author-name { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.author-name strong { font-size: 14px; overflow-wrap: anywhere; }
.guest-label { font-size: 11px; color: #929ba2; }
.admin-badge { display: inline-flex; gap: 4px; align-items: center; color: var(--green); font-size: 11px; font-weight: 700; }
.admin-badge .lucide { width: 14px; height: 14px; }
.entry-time { display: flex; flex-wrap: wrap; gap: 7px; color: #90999f; font-size: 11px; line-height: 1.5; margin-top: 2px; }
.edited-label { color: #89939b; }
.entry-actions { display: flex; gap: 2px; flex-shrink: 0; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: #8a969e; }
.icon-button:hover { background: #eff3f5; color: #47555e; }
.icon-button.danger-action:hover { color: var(--rose); background: #fbf0f2; }
.icon-button .lucide { width: 16px; height: 16px; }
.entry-body { margin: 15px 0 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.text-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 3px 0; background: none; border: none; color: #7e8a93; font-size: 12px; }
.text-action:hover { color: var(--green); }
.text-action .lucide { width: 15px; height: 15px; }
.comments { margin-top: 16px; border-top: 1px solid #eaf0f2; padding-top: 11px; }
.comments summary { display: flex; align-items: center; gap: 6px; list-style: none; font-size: 12px; font-weight: 600; color: #75828a; }
.comments summary::-webkit-details-marker { display: none; }
.comments summary .lucide { width: 15px; height: 15px; }
.comments summary .lucide:last-child { margin-left: auto; transition: transform .15s; }
.comments:not([open]) summary .lucide:last-child { transform: rotate(-90deg); }
.comment-list { list-style: none; padding: 0; margin: 10px 0 -3px; }
.comment { padding: 16px 0; border-top: 1px solid #eef2f4; }
.comment:first-child { border-top: 0; }
.comment .avatar { width: 29px; height: 29px; font-size: 11px; }
.comment .author-name strong { font-size: 12px; }
.comment .entry-body { font-size: 13px; margin: 9px 0 5px; }
.comment .entry-time { font-size: 10px; }
.comment-admin { background: #f1f8f4; border-left: 3px solid #8fbea8; padding: 14px 14px 13px; }
.comment-child { margin-left: 24px; }
.reply-to { display: inline-flex; align-items: center; gap: 5px; color: #829089; font-size: 11px; margin-top: 9px; }
.reply-to .lucide { width: 13px; height: 13px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 4px; font-size: 12px; }
.pagination a:hover { background: #e7efeb; }
.page-current { background: var(--green); color: #fff; font-weight: 700; }
.page-disabled { color: #bcc4c9; }
.pagination-gap { color: var(--muted); }
.notice { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 11px 14px; font-size: 13px; border-radius: 4px; overflow-wrap: anywhere; }
.notice-success { background: #e5f3e9; color: #397452; }
.notice-error { background: #fbeded; color: #aa4c50; }
.empty-state { padding: 52px 16px 56px; text-align: center; border-block: 1px solid var(--border); }
.empty-state > .lucide { width: 34px; height: 34px; color: #a7b8b1; margin-bottom: 13px; }
.empty-state h2 { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 9px 0 19px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 34px; font-size: 11px; color: #939ea5; border-top: 1px solid var(--border); }
.editor-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 1px solid #dde4e7; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 18px 60px #24394028; }
.editor-dialog::backdrop { background: #21303966; }
.editor-dialog form { display: flex; flex-direction: column; max-height: calc(100svh - 50px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 24px 15px; border-bottom: 1px solid #edf0f2; flex-shrink: 0; }
.dialog-heading h2 { font-size: 18px; }
.dialog-heading .icon-button { width: 30px; height: 30px; }
.dialog-body { padding: 20px 24px 17px; overflow-y: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 24px 19px; border-top: 1px solid #edf0f2; flex-shrink: 0; }
.role-selector { border: 0; padding: 0; margin: 0 0 19px; min-width: 0; }
.role-selector legend { font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.segmented-control { display: flex; gap: 0; padding: 3px; background: #f1f4f5; border: 1px solid #e4e9eb; border-radius: 6px; }
.segmented-control label { position: relative; flex: 1; min-width: 0; }
.segmented-control input { opacity: 0; position: absolute; width: 1px; height: 1px; }
.segmented-control span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; border-radius: 4px; font-size: 12px; color: #879198; cursor: pointer; }
.segmented-control input:checked + span { color: var(--green); background: #fff; box-shadow: 0 1px 3px #293b4012; font-weight: 650; }
.segmented-control input:focus-visible + span { outline: 2px solid #84b7a9; }
.segmented-control .lucide { width: 15px; height: 15px; }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.identity-fields.admin-mode { grid-template-columns: 1fr; }
.dialog-body label { font-size: 12px; font-weight: 600; }
.dialog-body input:not([type=hidden]):not([type=radio]), .dialog-body textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #dce3e6; background: #fff; color: var(--ink); border-radius: 5px; margin-top: 7px; font-size: 14px; font-weight: 400; min-width: 0; }
.dialog-body input::placeholder, .dialog-body textarea::placeholder { color: #a1a9af; }
.dialog-body input:focus, .dialog-body textarea:focus { border-color: #78a997; outline: 2px solid #e6f0eb; }
.message-field { display: block; margin-top: 19px; }
.dialog-body textarea { resize: vertical; min-height: 150px; max-height: 300px; line-height: 1.8; }
.message-counter { text-align: right; font-size: 11px; color: #959ea5; margin-top: 6px; }
.message-counter.over-limit { color: var(--rose); }
.delete-dialog { width: min(440px, calc(100% - 32px)); }
.delete-caption { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .site-header, main, .site-footer { width: calc(100% - 32px); }
  .site-header { height: 78px; }
  .header-note { display: none; }
  .intro { padding: 32px 134px 28px 0; min-height: 208px; }
  .welcome-mascot { right: 0; top: 32px; width: 112px; height: 128px; }
  h1 { font-size: 29px; }
  .intro p { font-size: 14px; }
  .board-heading h2 { font-size: 15px; gap: 7px; }
  .board-heading .button { font-size: 12px; min-height: 38px; padding-inline: 12px; gap: 5px; }
  .post { padding: 18px 17px 14px; }
  .entry-body { font-size: 14px; }
  .identity { gap: 8px; }
  .avatar { width: 32px; height: 32px; }
  .author-name strong { font-size: 13px; }
  .icon-button { width: 29px; height: 29px; }
  .comment-child { margin-left: 12px; }
  .comment-admin { padding-inline: 10px; }
  .site-footer { flex-direction: column; gap: 4px; }
  .dialog-heading { padding: 17px 18px 12px; }
  .dialog-body { padding: 17px 18px 15px; }
  .dialog-actions { padding: 13px 18px 16px; }
  .identity-fields { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
