.board-editor{min-width:0}.board-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px;background:var(--surface-2,#f3f4f6);border:1px solid var(--line,#dce0e5);border-radius:var(--ui-radius-control) var(--ui-radius-control) 0 0}.board-editor-toolbar label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:12px}.board-editor-toolbar button,.board-editor-toolbar select{min-height:32px;height:32px;width:auto;margin:0}.board-editor-toolbar button[aria-pressed=true]{background:var(--text,#202124);color:var(--surface,#fff)}.board-editor-toolbar input[type=color]{width:36px;height:32px;min-height:32px;padding:3px;margin:0}.board-editor-content{min-height:220px;max-height:55vh;overflow:auto;padding:16px;border:1px solid var(--line,#dce0e5);border-top:0;border-radius:0 0 var(--ui-radius-control) var(--ui-radius-control);background:var(--surface,#fff);color:var(--text,#202124);outline-offset:2px}.board-rich-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.board-rich-body p{margin:0}.board-post-page{min-width:0}.board-post-header{border-bottom:1px solid var(--line,#dce0e5);padding-bottom:16px;margin:16px 0}.board-post-header h2{overflow-wrap:anywhere;margin:8px 0}.board-post-meta{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:12px}.board-post-body{padding:24px 8px;min-height:240px}.board-post-comments{margin-top:24px;border-top:1px solid var(--line,#dce0e5);padding-top:16px}.board-post-comment{padding:12px 0;border-bottom:1px solid var(--line,#dce0e5)}.board-post-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.board-post-comments textarea{min-height:80px}.board-post-toolbar{display:flex;gap:8px;flex-wrap:wrap}.board-post-toolbar .board-post-context{margin:auto 0 auto auto;color:var(--muted,#626875);font-size:13px}.board-post-page .files{overflow-wrap:anywhere}
[data-theme=dark] .board-editor-toolbar{background:var(--soft)}[data-theme=dark] .board-editor-content{background:var(--panel);color:var(--text)}[data-theme=dark] .board-editor-toolbar button[aria-pressed=true]{background:var(--text);color:var(--panel)}
@media(max-width:600px){.board-post-body{padding:18px 0}.board-editor-content{padding:12px;min-height:200px}.board-editor-toolbar{gap:5px}.board-editor-toolbar button,.board-editor-toolbar select{min-height:36px;height:36px}.board-post-toolbar .board-post-context{width:100%;margin:0}.board-post-header h2{font-size:20px}}

.board-rich-body :is(b,strong){font-weight:700!important}.board-rich-body :is(i,em){font-style:italic}.board-rich-body{font-synthesis-style:auto}.board-rich-body p{font-weight:inherit}
.board-compose-page{max-width:1200px;margin-inline:0 auto;min-width:0}
.board-compose-page #post-form{display:flex;flex-direction:column;gap:16px}
.board-compose-page #post-form>label{display:flex;flex-direction:column;gap:6px}
.board-compose-page .board-editor-content{min-height:420px;max-height:none}
.board-compose-actions{justify-content:center}
.board-content-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.board-content-heading .field-label{margin:0}
.board-post-notification{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.board-post-notification label{display:inline-flex;align-items:center;gap:6px;margin:0}
.board-post-notification input{margin:0}
.board-draft-list{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto}
.board-draft-row{display:flex;align-items:center;gap:8px;min-width:0}
.board-draft-row [data-load-post-draft]{flex:1;min-width:0;height:auto;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px}
.board-draft-row strong{max-width:100%;overflow-wrap:anywhere}
.board-draft-row small{color:var(--muted);font-weight:400}
.board-editor{position:relative;min-width:0}
.board-rich-body img{display:inline-block;max-width:100%;height:auto;vertical-align:middle}
.board-editor-content img{cursor:pointer}
.board-image-selected{outline:2px solid #2563eb;outline-offset:2px}
.board-image-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;background:var(--panel);border-bottom:1px solid var(--line)}
.board-image-tools[hidden],.board-image-resize[hidden]{display:none}
.board-image-tools input[type=range]{width:140px;min-width:0}
.board-image-tools output{font-variant-numeric:tabular-nums}
.board-image-resize{position:absolute;width:18px;height:18px;min-height:18px;padding:0;border-radius:3px;background:#2563eb;border:2px solid white;cursor:nwse-resize;touch-action:none;z-index:2}
@media(max-width:700px){.board-compose-page .board-editor-content{min-height:320px}.board-image-tools .muted{flex-basis:100%}}

/* Body tables, lists, rules and highlight (2026-11-11). Same rules in editor and post view. */
.board-rich-body table{width:100%;table-layout:fixed;border-collapse:collapse;margin:8px 0;white-space:normal}
.board-rich-body :is(td,th){border:1px solid var(--line,#dce0e5);padding:6px 8px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap;min-width:40px}
.board-rich-body th{background:var(--soft,#f1f3f5);font-weight:700;text-align:left}
.board-rich-body :is(ul,ol){margin:4px 0;padding-left:24px;white-space:normal}
.board-rich-body li{white-space:pre-wrap}
.board-rich-body hr{border:0;border-top:1px solid var(--line,#dce0e5);margin:12px 0}
/* Highlight/cell shades are stored as fixed pastel values. Dark theme shows a dark tint of the same hue
   (display only; stored colour unchanged). Never force text colour here: Chrome copies computed colour
   into content when it moves lines, which would bake dark text into the post. */
[data-theme=dark] .board-rich-body [style*="background-color: rgb(255, 243, 163)"]{background-color:#5a4f0a!important}
[data-theme=dark] .board-rich-body [style*="background-color: rgb(201, 242, 208)"]{background-color:#1f4a2b!important}
[data-theme=dark] .board-rich-body [style*="background-color: rgb(207, 230, 255)"]{background-color:#1d3d63!important}
[data-theme=dark] .board-rich-body [style*="background-color: rgb(255, 214, 220)"]{background-color:#5a2632!important}
[data-theme=dark] .board-rich-body [style*="background-color: rgb(255, 226, 194)"]{background-color:#5a3a14!important}
[data-theme=dark] .board-rich-body [style*="background-color: rgb(230, 232, 236)"]{background-color:#3a3d44!important}
[data-theme=dark] .board-rich-body [style*="background-color: rgb(233, 221, 255)"]{background-color:#3d2f5c!important}
[data-theme=dark] .board-rich-body [style*="background-color: rgb(248, 249, 250)"]{background-color:#2b2d31!important}
/* 2026-11-13 표 편집: 여러 칸 선택·크기 조절·오른쪽 클릭 메뉴 (편집 화면 전용) */
.board-editor-content :is(td,th).board-cell-selected{outline:2px solid #2563eb;outline-offset:-2px;box-shadow:inset 0 0 0 999px rgba(37,99,235,.14)}
.board-editor-content.board-table-resizing{user-select:none;-webkit-user-select:none}
.board-table-tools-hint{flex-basis:100%;font-size:12px;color:var(--muted)}
.board-table-menu{position:fixed;z-index:1200;width:220px;max-height:calc(100vh - 16px);overflow:auto;padding:6px;background:var(--bg,#fff);color:var(--text);border:1px solid var(--line);border-radius:var(--ui-radius-surface,12px);box-shadow:0 6px 20px #0003}
.board-table-menu[hidden]{display:none}
.board-table-menu-title{padding:6px 8px 4px;font-size:12px;color:var(--muted)}
.board-table-menu-swatches{display:grid;grid-template-columns:repeat(9,1fr);gap:4px;padding:0 6px 4px}
:is(#content,dialog,body) .board-table-menu-swatches button{width:20px;min-width:20px;height:20px;min-height:20px;padding:0;margin:0;border:1px solid var(--line);border-radius:4px}
.board-table-menu-row{display:flex;gap:4px;padding:0 6px 4px}
:is(#content,dialog,body) .board-table-menu-row button{flex:1;width:auto;height:var(--ui-control-height,30px);min-height:var(--ui-control-height,30px);padding:0 6px;margin:0;font-size:13px}
:is(#content,dialog,body) .board-table-menu>button{display:block;width:100%;height:32px;min-height:32px;margin:0;padding:0 10px;border:0;background:transparent;text-align:left;font-size:13px;border-radius:var(--ui-radius-control,10px)}
:is(#content,dialog,body) .board-table-menu>button:hover:not(:disabled){background:var(--soft)}
:is(#content,dialog,body) .board-table-menu>button:disabled{opacity:.45;cursor:default}
.board-table-menu>button.danger{color:var(--danger,#c62828)}
.board-table-menu hr{border:0;border-top:1px solid var(--line);margin:4px 0}
@media(max-width:700px){.board-table-tools-hint{display:none}.board-editor-toolbar{position:relative}.board-editor-toolbar .board-table-picker{position:static}.board-editor-toolbar .board-table-picker .board-table-size{left:8px!important;right:auto}}
.board-editor-content :is(td,th):focus-within{outline:2px solid #2563eb;outline-offset:-2px}
.board-editor-icon{display:block;flex:0 0 auto}
.board-editor-toolbar button:has(.board-editor-icon){display:inline-flex;align-items:center;justify-content:center}
.board-highlight-mark{padding:0 3px;border-radius:3px;background:#fff3a3;color:#1d2026;font-weight:700;line-height:1.2}
.board-swatch-none{background:linear-gradient(135deg,transparent 46%,#d33 46% 54%,transparent 54%),var(--panel,#fff)!important}
.board-table-picker summary{gap:4px}
.board-table-size{position:absolute;left:0;top:100%;z-index:15;display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--bg,#fff);box-shadow:var(--shadow)}
.board-table-size-grid{display:grid;grid-template-columns:repeat(8,18px);gap:3px}
:is(#content,dialog) .board-table-size-grid button{width:18px;min-width:18px;height:18px;min-height:18px;padding:0;margin:0;border:1px solid var(--line,#c9ced6);border-radius:3px;background:var(--panel,#fff)}
:is(#content,dialog) .board-table-size-grid button.active{background:#cfe6ff;border-color:#2563eb}
.board-table-size output{font-size:12px;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}
.board-table-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px;background:var(--panel);border:1px solid var(--line);border-top:0}
.board-table-tools[hidden]{display:none}
.board-table-tools-label{font-size:12px;font-weight:700;color:var(--muted);margin-right:2px}
:is(#content,dialog) .board-table-tools>button{width:auto;min-width:32px;height:32px;min-height:32px;margin:0;padding:0 8px}
.board-table-tools button[aria-pressed=true]{background:var(--text,#202124);color:var(--panel,#fff)}
@media(max-width:700px){:is(#content,dialog) .board-table-tools>button{height:40px;min-height:40px}:is(#content,dialog) .board-table-size-grid{grid-template-columns:repeat(8,30px)}:is(#content,dialog) .board-table-size-grid button{width:30px;min-width:30px;height:30px;min-height:30px}}

/* Keep the submit action beside the input, including narrow/touch layouts. */
.board-comment-compose{margin-top:16px;min-width:0}
.board-comment-compose>label{display:block;margin:0 0 8px}
.board-comment-entry{display:flex;align-items:center;gap:8px;min-width:0}
.board-comment-entry>textarea{flex:1 1 0;min-width:0;width:100%;margin:0;resize:vertical}
.board-comment-entry>button{flex:0 0 auto;width:auto;margin:0;white-space:nowrap}
