.writer-shell, .geumjeong-public { width: min(calc(100% - 40px), 1100px); padding-block: 4px 70px; }
.branch-post-heading { padding-block: 30px 27px; }
.branch-post-heading h1 { font: 700 clamp(30px, 4.5vw, 52px)/1.22 var(--serif); letter-spacing: -.05em; overflow-wrap: anywhere; }
.branch-post-heading > p:not(.eyebrow), .branch-post-heading time { display: block; color: var(--muted); margin-top: 12px; }
.writer-layout { display: grid; grid-template-columns: minmax(205px, .34fr) minmax(0, 1fr); align-items: start; gap: 15px; }
.writer-panel, .branch-empty { background: var(--card); border: 1px solid var(--line); padding: clamp(17px, 3vw, 28px); }
.writer-panel-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.writer-panel h2 { font-size: 23px; }
.writer-panel label { display: block; margin-top: 16px; margin-bottom: 5px; font-weight: 700; font-size: 14px; }
.writer-panel input, .writer-panel textarea, .writer-panel select { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); padding: 10px 12px; background: var(--card); font: inherit; }
.writer-panel textarea { resize: vertical; }
.writer-optional, .writer-muted, .writer-help { color: var(--muted); font-size: 13px; }
.writer-muted { margin-top: 10px; }
.writer-help { margin-bottom: 6px; }
.writer-sidebar > .button { margin-top: 14px; }
.writer-post-list { display: grid; gap: 4px; margin-top: 10px; }
.writer-sidebar .writer-post-list { max-height: 28rem; overflow-y: auto; }
.writer-post { color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 8px; text-align: left; overflow-wrap: anywhere; }
.writer-post[aria-pressed='true'] { border-color: var(--accent); background: var(--surface-hover); }
.writer-post span { display: block; color: var(--muted); font-size: 12px; }
.writer-plain { background: transparent; border: 0; padding: 0; }
.writer-login, .writer-password-form, .writer-profile { max-width: 475px; }
.writer-profile dl { margin-top: 12px; }
.writer-profile dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.writer-profile dt { color: var(--muted); }
.writer-profile dd { overflow-wrap: anywhere; font-weight: 700; }
.writer-profile > .writer-plain { margin-top: 14px; }
#writer-open-profile { margin-top: 4px; }
.writer-login p { margin-top: 9px; }
.writer-login .actions { align-items: center; }
.writer-account-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.writer-account-actions .text-link { font-size: 13px; }
.writer-recovery-actions { margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
#writer-email-help, #writer-email-support { margin-top: 10px; }
.writer-password-copy { display: flex; align-items: center; gap: 8px; }
.writer-password-copy input { min-width: 0; font-family: ui-monospace, monospace; }
.writer-password-copy .button { flex-shrink: 0; }
.writer-status { color: var(--accent); font-weight: 680; }
.writer-status:not(:empty) { margin-bottom: 12px; }
.writer-actions-status:not(:empty) { margin-block: 14px 0; }
.writer-status[data-error='true'] { color: #7c3827; }
.writer-collections { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.writer-collections button { flex: 1 0 auto; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px 3px; font: inherit; font-size: 13px; }
.writer-collections button[aria-pressed='true'] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.writer-search, .writer-import-pages { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.writer-search input { min-width: 0; }
.writer-search .button, .writer-import-pages .button { min-height: 36px; padding: 4px 9px; white-space: nowrap; font-size: 12px; }
.writer-import-pages { justify-content: space-between; font-size: 13px; }
.writer-original { display: inline-block; margin-top: 7px; }
.writer-shell button:disabled { opacity: .55; cursor: default; }
.branch-post-list { list-style: none; padding: 0; border-block: 1px solid var(--line); }
.branch-post-list > li { padding: 19px 4px; }
.branch-post-list > li + li { border-top: 1px solid var(--line); }
.branch-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.branch-post-list h2 { margin: 4px 0 6px; font-size: clamp(19px, 3vw, 24px); overflow-wrap: anywhere; }
.branch-post-list h2 a:hover { color: var(--accent); }
.branch-post-list p, .branch-empty { color: var(--muted); }
.branch-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; }
.branch-pagination a, .branch-page-current { min-width: 35px; min-height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); padding: 3px 8px; }
.branch-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.branch-page-current { color: var(--paper); background: var(--ink); border-color: var(--ink); font-weight: 700; }
.branch-article { max-width: 760px; }
.branch-article-body { padding-top: 24px; border-top: 1px solid var(--line); line-height: 1.85; overflow-wrap: anywhere; }
.branch-article-body > * + * { margin-top: 16px; }
.branch-article-body h2 { font-size: 25px; margin-top: 27px; }
.branch-article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.branch-naver-source { display: inline-block; margin-top: 7px; }
.branch-naver-copy { white-space: pre-wrap; }
.branch-source-references { border-top: 1px solid var(--line); padding-top: 10px; }
.branch-source-references summary { cursor: pointer; }
.branch-source-references ul { display: flex; gap: 8px 22px; flex-wrap: wrap; padding-inline-start: 18px; margin-top: 8px; }
@media (max-width: 700px) {
  .writer-layout { grid-template-columns: 1fr; }
  .writer-shell, .geumjeong-public { padding-bottom: 42px; }
  .writer-sidebar .writer-post-list { max-height: 13rem; }
  .writer-collections button, .writer-search .button, .writer-import-pages .button, .writer-plain { min-height: 44px; }
  .writer-login .quiet-link, .branch-naver-source { display: inline-flex; align-items: center; min-height: 44px; }
  .branch-pagination a, .branch-page-current { min-width: 44px; min-height: 44px; }
}
