/* BITE DATA shared editor skin 1.0 — loaded only in opted-in board write pages.
   Keep board-specific fields, locale select styling, and editor native toolbar untouched. */
#fwrite .au_btn_search_file {border-radius:10px !important;transition:background-color .18s,border-color .18s;}
#fwrite .au_file_list_img_wrap {border-radius:8px;}
#fwrite .au_file_list .cut {overflow-wrap:anywhere;}
#fwrite .au_input:focus-visible + .au_btn_search_file {outline:2px solid #8f9aa8;outline-offset:3px;}
body.dark-mode #fwrite {color-scheme:dark;}
body.dark-mode #fwrite .wr_content textarea {background:#242424 !important;color:#f1f1f1 !important;border-color:#454545 !important;}
body.dark-mode #fwrite .wr_content iframe {border-color:#484848 !important;}
body.dark-mode #fwrite .wr_content .cheditor-container {border-color:#474747 !important;}
body.dark-mode #fwrite .au_btn_search_file {background:#242424 !important;color:#d5d5d5 !important;border:2px dashed #555 !important;}
body.dark-mode #fwrite .au_btn_search_file:hover {background:#2c2c2c !important;border-color:#8b949e !important;}
body.dark-mode #fwrite .swiper-wfile,
body.dark-mode #fwrite #file_list,
body.dark-mode #fwrite .swiper-slide_lists {background:transparent !important;}
body.dark-mode #fwrite .au_file_list_img_wrap {background:#292929 !important;border:1px solid #484848 !important;}
body.dark-mode #fwrite .au_file_list .cut {color:#bebebe !important;}
body.dark-mode #fwrite .au_progress {background:#333 !important;}
body:not(.dark-mode) #fwrite .au_btn_search_file {background:#f7f8fa !important;color:#616975 !important;border:2px dashed #cbd0d6 !important;}
body:not(.dark-mode) #fwrite .au_btn_search_file:hover {background:#eef1f4 !important;border-color:#919ba7 !important;}
@media(max-width:600px){#fwrite .au_btn_search_file{min-height:92px;line-height:1.6;}}


/* v1.1 — CHEditor toolbar chrome (NOT the buttons or the editable content).
   Keep this narrow: no global table/td/select or icon background override. */
body.dark-mode #fwrite .wr_content .cheditor-container {
  background-color: #242424 !important;
  border-color: #474747 !important;
}
body.dark-mode #fwrite .wr_content .cheditor-tb-wrapper,
body.dark-mode #fwrite .wr_content .cheditor-toolbar,
body.dark-mode #fwrite .wr_content .cheditor-top-toolbar,
body.dark-mode #fwrite .wr_content .cheditor-bottom-tabbar,
body.dark-mode #fwrite .wr_content .cheditor-bottom-toolbar {
  background-color: #292929 !important;
  border-color: #474747 !important;
}
/* CHEditor may use nested tables for layout. Only toolbar tables are targeted. */
body.dark-mode #fwrite .wr_content .cheditor-tb-wrapper table,
body.dark-mode #fwrite .wr_content .cheditor-bottom-tabbar table,
body.dark-mode #fwrite .wr_content .cheditor-bottom-tabbar td {
  background-color: #292929 !important;
  border-color: #474747 !important;
}
/* Lower resize/footer strip in versions which expose a dedicated class. */
body.dark-mode #fwrite .wr_content .cheditor-resizebar,
body.dark-mode #fwrite .wr_content .cheditor-statusbar,
body.dark-mode #fwrite .wr_content .cheditor-bottom {
  background-color: #292929 !important;
  border-color: #474747 !important;
  color: #bfc3c7 !important;
}

/* v1.2 BITE DATA unified write surfaces. Form-only: no native toolbar icon overrides. */
body.dark-mode #fwrite {
  --btd-edit-card:#1c1c1c;
  --btd-edit-surface:#242424;
  --btd-edit-border:#353535;
  --btd-edit-text:#f1f1f1;
  --btd-edit-muted:#929292;
}
/* Title and link inputs: scope excludes region/lure selectors and autosave popup. */
body.dark-mode #fwrite #wr_subject,
body.dark-mode #fwrite input[id^="wr_link"] {
  background-color:var(--btd-edit-surface) !important;
  color:var(--btd-edit-text) !important;
  border:1px solid var(--btd-edit-border) !important;
  border-radius:9px !important;
  box-shadow:none !important;
  outline:none;
}
body.dark-mode #fwrite #wr_subject::placeholder,
body.dark-mode #fwrite input[id^="wr_link"]::placeholder {color:var(--btd-edit-muted) !important;opacity:1;}
body.dark-mode #fwrite #wr_subject:focus,
body.dark-mode #fwrite input[id^="wr_link"]:focus {
  border-color:#777 !important;
  box-shadow:0 0 0 2px rgba(255,255,255,.07) !important;
}
body.dark-mode #fwrite .rb_inp_wrap_link {
  background:var(--btd-edit-surface) !important;
  border:1px solid var(--btd-edit-border) !important;
  border-radius:9px !important;
}
body.dark-mode #fwrite .rb_inp_wrap_link input[id^="wr_link"] {border:0 !important;background:transparent !important;}
body.dark-mode #fwrite .rb_inp_wrap_link i {opacity:.7;}
/* Native editor shell and writable surface. Internal iframe palette stays in shared JS. */
body.dark-mode #fwrite .wr_content .cheditor-container {
  background:var(--btd-edit-surface) !important;
  border:1px solid var(--btd-edit-border) !important;
  box-shadow:none !important;
}
body.dark-mode #fwrite .wr_content iframe {
  background:var(--btd-edit-surface) !important;
  border-color:var(--btd-edit-border) !important;
}
body.dark-mode #fwrite .wr_content textarea {
  background:var(--btd-edit-surface) !important;
  border-color:var(--btd-edit-border) !important;
  color:var(--btd-edit-text) !important;
}
/* Keep the upload area aligned with the title and editor palette. */
body.dark-mode #fwrite .au_btn_search_file {background:var(--btd-edit-surface) !important;border-color:var(--btd-edit-border) !important;color:#c9c9c9 !important;}
/* Labels and help text only; never repaint editor buttons or icon images. */
body.dark-mode #fwrite .rb_inp_wrap_gap > .help_text {color:var(--btd-edit-muted) !important;}




/* BITE DATA COMMON EDITOR
   v1.3.1 - CHEditor 테두리 색상 통일 */

body.dark-mode .cheditor-container {
    border: 1px solid #353535 !important;
    background-color: #242424 !important;
    box-shadow: none !important;
}

body.dark-mode .cheditor-container .cheditor-editarea-wrapper {
    background-color: #242424 !important;
    border: 0 !important;
}

body.dark-mode .cheditor-container iframe.cheditor-editarea {
    background-color: #242424 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

body.dark-mode .cheditor-container .cheditor-tb-wrapper,
body.dark-mode .cheditor-container .cheditor-status-bar,
body.dark-mode .cheditor-container .cheditor-resizebar {
    background-color: #242424 !important;
    border-color: #353535 !important;
    box-shadow: none !important;
}
