.wysiwyg-editor-field {
  /* The field is a grid/flex item on every page that embeds this editor.
     Without an explicit min-width, its automatic minimum size defaults to
     the toolbar's min-content width, which forces the item (and the page)
     wider than the viewport on mobile instead of letting the toolbar's own
     overflow-x:auto handle it. */
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.wysiwyg-editor-host {
  --editor-border: var(--ui-border, var(--brand-border));
  --editor-surface: var(--ui-card, var(--brand-surface));
  --editor-background: var(--ui-background, var(--brand-bg));
  --editor-foreground: var(--ui-foreground, var(--brand-text-primary));
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  font-family: inherit !important;
}

.wysiwyg-editor-host button,
.wysiwyg-editor-host input,
.wysiwyg-editor-host select,
.wysiwyg-editor-host textarea,
.wysiwyg-slash-menu,
.wysiwyg-slash-menu button { font-family: inherit !important; }

.wysiwyg-editor-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

.wysiwyg-image-picker { display: none !important; }


.wysiwyg-color-toolbar-btn {
  font-weight: 800;
  font-size: 13px;
  color: var(--ui-foreground, var(--brand-text-primary));
}

.wysiwyg-color-popup {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--ui-border, var(--brand-border));
  border-radius: 8px;
  background: var(--ui-popover, var(--brand-surface));
  box-shadow: var(--ui-shadow-popover, 0 12px 32px rgba(0, 0, 0, .2));
}

.wysiwyg-color-swatch {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ui-border, var(--brand-border));
  border-radius: 50%;
  background-color: var(--ui-muted, var(--brand-surface-muted));
  cursor: pointer;
}
.wysiwyg-color-swatch:hover,
.wysiwyg-color-swatch:focus-visible {
  border-color: var(--ui-ring, var(--brand-accent));
  outline: none;
}
.wysiwyg-color-swatch-default {
  background:
    linear-gradient(var(--ui-muted-foreground, var(--brand-text-muted)), var(--ui-muted-foreground, var(--brand-text-muted))) center / 2px 76% no-repeat,
    var(--ui-muted, var(--brand-surface-muted));
  transform: rotate(45deg);
}
.wysiwyg-color-swatch-gray { background-color: var(--brand-text-secondary); }
.wysiwyg-color-swatch-red { background-color: var(--brand-danger); }
.wysiwyg-color-swatch-orange { background-color: var(--brand-warning); }
.wysiwyg-color-swatch-green { background-color: var(--brand-success); }
.wysiwyg-color-swatch-blue { background-color: var(--brand-highlight); }
.wysiwyg-color-swatch-purple { background-color: var(--brand-purple); }

/* Live in-editor preview of an applied {color:name}...{color} marker --
   purely presentational (editor decoration), the same classes the
   server applies to the rendered <span> after sanitizing on save. */
.wysiwyg-editor-host .wysiwyg-color-gray { color: var(--brand-text-secondary); }
.wysiwyg-editor-host .wysiwyg-color-red { color: var(--brand-danger); }
.wysiwyg-editor-host .wysiwyg-color-orange { color: var(--brand-warning); }
.wysiwyg-editor-host .wysiwyg-color-green { color: var(--brand-success); }
.wysiwyg-editor-host .wysiwyg-color-blue { color: var(--text-accent, var(--brand-highlight)); }
.wysiwyg-editor-host .wysiwyg-color-purple { color: var(--brand-purple); }

/* TOAST UI 편집기(.toastui-editor-* · .ProseMirror) 규칙은 2026-10-24 에 지웠다 -
   편집기는 SunEditor(rich-editor.js) · Vditor(markdown-editor.js)뿐이라 어디서도 맞지 않던
   13KB 였다.  본문 모양(.community-markdown · .tip-body)은 그대로다. */

.community-markdown p,
.tip-body p { margin: 0 0 1em; line-height: 1.75; }
.community-markdown strong,
.tip-body strong { font-weight: 750; }
.community-markdown em,
.tip-body em { font-style: italic; }
.community-markdown ul,
.tip-body ul { margin: .8em 0; padding-left: 1.55em; list-style: disc outside; }
.community-markdown ol,
.tip-body ol { margin: .8em 0; padding-left: 1.55em; list-style: decimal outside; }
.community-markdown li,
.tip-body li { margin: .28em 0; line-height: 1.7; }
.community-markdown ul ul,
.tip-body ul ul { list-style-type: circle; }
.community-markdown ol ol,
.tip-body ol ol { list-style-type: lower-alpha; }
.community-markdown h1,
.tip-body h1 { margin: 1.35em 0 .55em; font-size: 2em; line-height: 1.2; letter-spacing: -.025em; }
.community-markdown h2,
.tip-body h2 { margin: 1.3em 0 .55em; font-size: 1.55em; line-height: 1.3; letter-spacing: -.018em; }
.community-markdown h3,
.tip-body h3 { margin: 1.2em 0 .5em; font-size: 1.25em; line-height: 1.38; }
.community-markdown blockquote,
.tip-body blockquote {
  margin: 1.1em 0;
  padding: 10px 16px;
  border-left: 3px solid var(--ui-border-strong, var(--brand-border-strong));
  background: var(--ui-muted, var(--brand-surface));
  color: var(--ui-muted-foreground, var(--brand-text-muted));
}
.community-markdown pre,
.tip-body pre {
  max-width: 100%;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--editor-border, var(--brand-border));
  border-radius: 6px;
  background: #111318;
  color: #edf0f5;
}
.community-markdown pre,
.tip-body pre {
  position: relative;
}
.code-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  color: #d7dbe3;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.code-copy-button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.code-copy-button:focus-visible { outline: 2px solid var(--ui-ring, var(--brand-accent)); outline-offset: 2px; }
.code-copy-button svg { width: 13px; height: 13px; flex: 0 0 auto; }
.code-copy-button.is-copied { border-color: #3ecf7f; color: #3ecf7f; }
.code-copy-button.is-error { border-color: #ef6671; color: #ef6671; }
@media (prefers-reduced-motion: reduce) {
  .code-copy-button { transition: none; }
}
.community-markdown code,
.tip-body code { overflow-wrap: anywhere; }
.community-markdown table,
.tip-body table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.community-markdown th,
.community-markdown td,
.tip-body th,
.tip-body td { min-width: 110px; padding: 8px 10px; border: 1px solid var(--editor-border, var(--brand-border)); }
.community-markdown th,
.tip-body th { background: var(--ui-muted, var(--brand-surface)); }
/* 본문에 넣은 사진이 첨부파일 사진과 같은 모양이 되도록 한 곳에서 정한다.
   예전에는 폭 상한만 있고 높이 상한이 없어서, 세로로 긴 사진 한 장이 화면을
   통째로 차지하고 그 아래 글이 안 보였다. 쓰는 화면(에디터)과 읽는 화면에
   같은 규칙을 걸어, 올릴 때 본 크기가 올린 뒤에도 그대로다. */
.community-markdown img,
.tip-body img {
  display: block;
  max-width: min(100%, 760px);
  max-height: 620px;
  height: auto;
  margin: 22px 0;
  /* 사진 둘레의 매트. 테두리와 배경을 같은 색으로 둬서 인화지 여백처럼
     보이게 하고, 페이지와의 분리는 색이 아니라 그림자가 만든다 - 라이트에서
     흰 종이 위 흰 매트가 성립하는 이유다. 다크에서는 같은 토큰이 어두운
     매트가 되므로 흰 테가 눈을 찌르지 않는다. */
  border: 8px solid var(--brand-bg);
  border-radius: 18px;
  background: var(--brand-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
  object-fit: contain;
}

/* 다크에서는 같은 그림자가 배경에 묻힌다. 더 넓고 깊게 준다. */
html[data-theme="dark"] .community-markdown img,
html[data-theme="dark"] .tip-body img {
  box-shadow: 0 6px 28px rgba(0, 0, 0, .55);
}
.community-markdown hr,
.tip-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--editor-border, var(--brand-border)); }
.community-markdown .task-list-item,
.tip-body .task-list-item { list-style: none; }
.community-markdown .task-list-item input[type="checkbox"],
.tip-body .task-list-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 7px 0 0;
  vertical-align: -2px;
}

@media (max-width: 760px) {
  .community-post-content.community-markdown {
    font-size: 14px;
    line-height: 1.8;
  }
  .community-post-content.community-markdown h1 { font-size: 1.75em; }
  .community-post-content.community-markdown h2 { font-size: 1.45em; }
  .community-post-content.community-markdown h3 { font-size: 1.2em; }
}


.wysiwyg-slash-menu {
  position: fixed;
  z-index: 1400;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  border: 1px solid var(--ui-border, var(--brand-border));
  border-radius: 8px;
  background: var(--ui-popover, var(--brand-surface));
  color: var(--ui-foreground, var(--brand-text-primary));
  box-shadow: var(--ui-shadow-popover, 0 12px 32px rgba(0, 0, 0, .2));
}
.wysiwyg-slash-menu[hidden] { display: none; }
.wysiwyg-slash-group {
  display: block;
  padding: 7px 9px 4px;
  color: var(--ui-muted-foreground, var(--brand-text-muted));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.wysiwyg-slash-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wysiwyg-slash-item:hover,
.wysiwyg-slash-item.is-active { background: var(--ui-accent, var(--brand-surface-muted)); }
.wysiwyg-slash-item:hover strong,
.wysiwyg-slash-item:hover small,
.wysiwyg-slash-item.is-active strong,
.wysiwyg-slash-item.is-active small { color: var(--ui-foreground, var(--brand-text-primary)); }
.wysiwyg-slash-item > i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ui-border, var(--brand-border));
  border-radius: 5px;
  color: var(--ui-muted-foreground, var(--brand-text-muted));
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.wysiwyg-slash-item > span { display: grid; min-width: 0; gap: 2px; }
.wysiwyg-slash-item strong { color: var(--ui-foreground, var(--brand-text-primary)); font-size: 13px; line-height: 1.2; }
.wysiwyg-slash-item small { overflow: hidden; color: var(--ui-muted-foreground, var(--brand-text-muted)); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.wysiwyg-slash-empty { margin: 0; padding: 18px 12px; color: var(--ui-muted-foreground, var(--brand-text-muted)); font-size: 12px; text-align: center; }

/* Markdown / Safe HTML format switch. Presentation only: the existing radio
   inputs, values, permissions, and change handlers remain unchanged. */
.safe-content-format {
  width: min(100%, 310px);
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-border, var(--brand-border));
  border-radius: 10px;
  background: var(--ui-muted, var(--brand-surface-muted));
  box-shadow: var(--ui-shadow-sm, 0 8px 24px rgba(0, 0, 0, .08));
}
.safe-content-format legend {
  margin: 0 0 5px;
  padding: 0 2px;
  color: var(--ui-muted-foreground, var(--brand-text-muted));
}
.safe-content-format label > span {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ui-muted-foreground, var(--brand-text-secondary));
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.safe-content-format label:hover > span {
  border: 0;
  background: color-mix(in srgb, var(--editor-foreground, var(--brand-text-primary)) 6%, transparent);
  color: var(--ui-foreground, var(--brand-text-primary));
}
.safe-content-format input:checked + span {
  border: 0;
  /* Colour and shadow are set by the later rule for this same selector; the
     accent values that used to live here never reached the page. */
  background: var(--editor-background);
  color: var(--editor-foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.safe-content-format input:focus-visible + span {
  outline: 2px solid var(--ui-ring, var(--brand-accent));
  outline-offset: 1px;
}

/* Compact editor controls inspired by the supplied grouped toolbar.  These
   rules are presentation-only: format radio values are untouched. */
/* Two ordinary buttons, like every other action on the page. The panel, the
   legend and the segmented-control framing were all more chrome than a
   two-option switch needs. */
.safe-content-format {
  display: flex;
  width: auto;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.safe-content-format legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.safe-content-format label > span {
  min-height: 36px;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--brand-border-strong);
  border-radius: 5px;
  background: var(--brand-bg);
  color: var(--brand-text-secondary);
  font-size: 12px;
  font-weight: 700;
}
/* Real glyphs - the Markdown mark and code chevrons - not the letter soup
   ("M↓", "</>") the old text ::before produced. Drawn via mask with
   currentColor, so they follow hover and the checked state for free. */
.safe-content-format label > span::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--format-glyph) center / contain no-repeat;
  mask: var(--format-glyph) center / contain no-repeat;
}
.safe-content-format label:nth-of-type(1) > span::before {
  --format-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.56 18H3.44C1.54 18 0 16.46 0 14.56V9.44C0 7.54 1.54 6 3.44 6h17.12C22.46 6 24 7.54 24 9.44v5.12c0 1.9-1.54 3.44-3.44 3.44zM6.81 15.19v-3.66l1.92 2.35 1.92-2.35v3.66h1.93V8.81h-1.93l-1.92 2.35-1.92-2.35H4.89v6.38h1.92zM19.69 12h-1.92V8.81h-1.92V12h-1.93l2.89 3.28L19.69 12z'/%3E%3C/svg%3E");
}
.safe-content-format label:nth-of-type(2) > span::before {
  --format-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 16 4-4-4-4'/%3E%3Cpath d='m6 8-4 4 4 4'/%3E%3Cpath d='m14.5 4-5 16'/%3E%3C/svg%3E");
}
/* Selected reads as the filled button the rest of the site uses for a chosen
   action, rather than a raised tile inside a track. */
.safe-content-format input:checked + span {
  border-color: var(--brand-text-primary);
  background: var(--brand-text-primary);
  color: var(--brand-bg);
  box-shadow: none;
}

@media (max-width: 700px) {
  /* '더 보기'로 접힌 버튼들을 한 줄에 다 넣으려다 팝업이 화면보다 넓어지고
     (390px 화면에 446px), 위치는 버튼 기준이라 왼쪽으로 102px 밀려 나갔다.
     화면 안에 가두고 줄로 접는다.  좌표와 폭은 라이브러리가 인라인으로
     넣으므로 !important 가 필요하다. */
  .wysiwyg-slash-menu { max-width: calc(100vw - 16px); }
  .safe-content-format { width: 100%; }
  .safe-content-format label > span { min-height: 44px; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .wysiwyg-slash-menu, .wysiwyg-slash-item { scroll-behavior: auto; transition: none; }
}

/* ---- Vditor (markdown-editor.js) ----------------------------------------------
   MyDesk 의 글꼴 · 색 · 둥근 모서리에 맞춘다.  어두운 화면은 Vditor 자체 'dark' 테마를
   쓰되 바탕색은 MyDesk 토큰을 따른다. */
.md-editor-host.vditor {
  --border-color: var(--editor-border);
  --panel-background-color: var(--editor-surface);
  --textarea-background-color: var(--editor-surface);
  --toolbar-background-color: var(--editor-background);
  border: 1px solid var(--editor-border);
  border-radius: 10px;
  overflow: hidden;
  font-family: inherit;
}
.md-editor-host .vditor-toolbar { padding-left: 8px !important; border-bottom: 1px solid var(--editor-border); }
.md-editor-host .vditor-reset { font-family: inherit !important; font-size: 15px; line-height: 1.7; color: var(--editor-foreground); }
.md-editor-host .vditor-ir pre.vditor-reset, .md-editor-host .vditor-wysiwyg pre.vditor-reset { padding: 14px 18px !important; }
.md-editor-host .vditor-reset h1, .md-editor-host .vditor-reset h2 { border-bottom: 0; }
.md-editor-host .vditor-tooltipped::after { font-family: inherit; }
/* MyDesk 공용 입력칸 · 단추 모양이 편집기 안까지 들어오지 않게 */
.md-editor-host .vditor-toolbar button { width: auto; height: auto; min-height: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
.md-editor-host.vditor input { width: auto; min-height: 0; }
.md-color-icon { display: inline-block; font-size: 14px; font-weight: 800; line-height: 1; color: currentColor; }
.md-color-popup { position: absolute; z-index: 1500; width: 236px; }
.md-color-popup[hidden] { display: none; }

/* ---- HTML 편집기(SunEditor 3.3.3, js/rich-editor.js) ---------------------------------
   편집기 색은 SunEditor 의 --se-* 변수를 MyDesk 토큰으로 바꿔 라이트 · 다크를 따라가게 한다.
   글 안의 글자색 · 배경색(사람이 고른 꾸밈)은 건드리지 않는다. */
.rich-editor-host { margin-top: 8px; }
.rich-editor-host .sun-editor,
.rich-editor-host .sun-editor-editable {
  --se-main-font-family: inherit;
  /* 페이지 글꼴 묶음의 첫 이름(숫자 전용 글꼴)이 글꼴 칸에 뜨지 않게 본문 글꼴을 이름으로 준다 */
  --se-content-font-family: "Pretendard Variable", "Malgun Gothic", sans-serif;
  --se-edit-font-size: 15px;
  --se-edit-line-height: 1.75;
  --se-border-radius: 10px;
  --se-main-background-color: var(--brand-surface);
  --se-main-color: var(--brand-text-primary);
  --se-main-font-color: var(--brand-text-primary);
  --se-main-border-color: var(--brand-border);
  --se-main-divider-color: var(--brand-border);
  --se-main-out-color: var(--brand-border);
  --se-main-outline-color: var(--brand-border-strong);
  --se-edit-background-color: var(--brand-surface);
  --se-edit-font-color: var(--brand-text-primary);
  --se-caret-color: var(--brand-text-primary);
  --se-placeholder-color: var(--brand-text-muted);
  --se-statusbar-font-color: var(--brand-text-muted);
}
.rich-editor-host .sun-editor { border-radius: 10px; }
.rich-editor-host .sun-editor .se-toolbar { border-radius: 10px 10px 0 0; }
/* 모든 화면에 걸린 입력칸 모양(높이 · 테두리)이 툴바의 글꼴 크기 칸 · 창 안 입력칸을 덮지 않게 */
.rich-editor-host .sun-editor .se-toolbar input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { height: auto; min-height: 0; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rich-editor-host .sun-editor .se-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.rich-editor-host .sun-editor .se-modal textarea { width: 100%; min-height: 0; padding: 6px 8px; border: 1px solid var(--brand-border-strong); border-radius: 6px; background: var(--brand-bg); color: var(--brand-text-primary); }
.rich-editor-host .sun-editor-editable details { margin: .8em 0; padding: 8px 12px; border: 1px dashed var(--brand-border-strong); border-radius: 8px; }
.rich-editor-host .sun-editor-editable summary { font-weight: 700; cursor: pointer; }
html[data-theme="dark"] .rich-editor-host .sun-editor,
html[data-theme="dark"] .rich-editor-host .sun-editor-editable,
html[data-theme="dark"] .sun-editor .se-modal,
html[data-theme="dark"] .sun-editor .se-controller {
  --se-hover-color: #fff;
  --se-hover-light-color: rgba(255, 255, 255, .1);
  --se-hover-light2-color: rgba(255, 255, 255, .08);
  --se-hover-light3-color: rgba(255, 255, 255, .14);
  --se-hover-dark-color: rgba(255, 255, 255, .22);
  --se-active-light-color: rgba(96, 165, 250, .18);
  --se-active-light2-color: rgba(96, 165, 250, .14);
  --se-active-light3-color: rgba(96, 165, 250, .24);
  --se-active-light4-color: rgba(96, 165, 250, .2);
  --se-active-light5-color: rgba(96, 165, 250, .28);
  --se-dropdown-font-color: var(--brand-text-secondary);
  --se-modal-background-color: var(--brand-surface);
  --se-modal-color: var(--brand-text-primary);
  --se-modal-border-color: var(--brand-border);
  --se-modal-preview-color: var(--brand-text-muted);
  --se-modal-file-input-background-color: var(--brand-bg);
  --se-controller-background-color: var(--brand-surface);
  --se-controller-border-color: var(--brand-border-strong);
  --se-controller-color: var(--brand-text-primary);
  --se-select-menu-hover-bg: rgba(255, 255, 255, .08);
  --se-select-menu-active-bg: rgba(255, 255, 255, .14);
  --se-edit-background-pre: #111318;
  --se-edit-font-pre: #edf0f5;
  --se-edit-border-light: var(--brand-border);
  --se-edit-border-table: var(--brand-border-strong);
  --se-edit-hover: rgba(96, 165, 250, .12);
  --se-edit-anchor: #7cb4ff;
  --se-edit-hr-color: var(--brand-border-strong);
  --se-code-view-color: var(--brand-text-primary);
  --se-code-view-background-color: var(--brand-bg);
  --se-code-view-line-color: var(--brand-text-muted);
  --se-code-view-line-background-color: var(--brand-surface);
  --se-markdown-view-color: var(--brand-text-primary);
  --se-markdown-view-background-color: var(--brand-bg);
  --se-markdown-view-line-color: var(--brand-text-muted);
  --se-markdown-view-line-background-color: var(--brand-surface);
  --se-table-picker-color: var(--brand-bg);
  --se-table-picker-border-color: var(--brand-border);
  --se-shadow-layer-color: rgba(0, 0, 0, .6);
  --se-main-shadow-color: rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .sun-editor .se-menu-list .se-btn,
html[data-theme="dark"] .sun-editor .se-btn { color: var(--brand-text-secondary); }
html[data-theme="dark"] .sun-editor .se-dropdown,
html[data-theme="dark"] .sun-editor .se-select-menu,
html[data-theme="dark"] .sun-editor .se-list-layer { background-color: var(--brand-surface); color: var(--brand-text-primary); border-color: var(--brand-border); }

/* 편집기로 쓴 글(HTML)을 읽는 화면 - 그림 띄우기 · 그림 설명 · 표 감싸기 · 토글 */
.community-markdown figure { margin: 1.2em 0; max-width: 100%; }
.community-markdown figure img { margin: 0; }
.community-markdown figcaption { margin-top: 6px; color: var(--brand-text-muted); font-size: .88em; text-align: center; }
.community-markdown .se-image-container figure { display: inline-block; }
.community-markdown .__se__float-left { float: left; margin: 0 1.2em .6em 0; max-width: 50%; }
.community-markdown .__se__float-right { float: right; margin: 0 0 .6em 1.2em; max-width: 50%; }
.community-markdown .__se__float-center { text-align: center; }
.community-markdown .__se__float-center figure { margin-inline: auto; }
.community-markdown::after { display: table; clear: both; content: ""; }
.community-markdown table td > div,
.community-markdown table th > div { margin: 0; }
.community-markdown details { margin: .9em 0; padding: 8px 14px; border: 1px solid var(--brand-border); border-radius: 10px; background: var(--brand-surface); }
.community-markdown summary { font-weight: 700; cursor: pointer; }
.community-markdown details[open] > summary { margin-bottom: 6px; }
.community-markdown sub, .community-markdown sup { font-size: .75em; }
.community-markdown mark { padding: 0 2px; border-radius: 3px; }
