@charset "utf-8";
/*
 BITE DATA / shared PC UI consistency v1.0 (2026-11-23)
 Purpose: reuse existing BTD view-title, editor, comment and search components.
 This module defines their neutral palette bridge and only the shared text/control
 presentation. It does NOT alter grid, width, height, column count, card count,
 positioning, sidebar, data, rendering logic or mobile breakpoints.
 Priority: 95 (after the existing board/search skin CSS).
*/

/* Existing BTD palettes (view-title, editor, market and search) consolidated.
   The accent intentionally remains reserved for active underlines / primary actions. */
body {
    --btd-ui-page:#ffffff;
    --btd-ui-panel:#f7f8f9;
    --btd-ui-card:#ffffff;
    --btd-ui-border:#e1e5e7;
    --btd-ui-text:#1d2329;
    --btd-ui-muted:#68717b;
    --btd-ui-subtle:#eff1f3;
    --btd-ui-focus:#818992;
    --btd-ui-focus-ring:rgba(87,96,104,.13);
    --btd-ui-accent:#77a900;
}
body.dark-mode {
    --btd-ui-page:#111213;
    --btd-ui-panel:#1b1d1f;
    --btd-ui-card:#1a1c1e;
    --btd-ui-border:#34383c;
    --btd-ui-text:#f4f5f6;
    --btd-ui-muted:#a0a6ac;
    --btd-ui-subtle:#25292c;
    --btd-ui-focus:#90979f;
    --btd-ui-focus-ring:rgba(181,188,194,.14);
    --btd-ui-accent:#8bc900;
}

/* Bridge existing component tokens; do not reimplement component CSS. */
body .btd-view-title-box,
body.dark-mode .btd-view-title-box {
    --btd-vt-bg:var(--btd-ui-panel);
    --btd-vt-border:var(--btd-ui-border);
    --btd-vt-line:var(--btd-ui-border);
    --btd-vt-text:var(--btd-ui-text);
    --btd-vt-muted:var(--btd-ui-muted);
    --btd-vt-accent:var(--btd-ui-accent);
}
body #fwrite,
body.dark-mode #fwrite {
    --btd-edit-card:var(--btd-ui-panel);
    --btd-edit-surface:var(--btd-ui-subtle);
    --btd-edit-border:var(--btd-ui-border);
    --btd-edit-text:var(--btd-ui-text);
    --btd-edit-muted:var(--btd-ui-muted);
}
body .btd-market,
body.dark-mode .btd-market {
    --mk-bg:var(--btd-ui-page);
    --mk-panel:var(--btd-ui-panel);
    --mk-card:var(--btd-ui-card);
    --mk-border:var(--btd-ui-border);
    --mk-text:var(--btd-ui-text);
    --mk-muted:var(--btd-ui-muted);
    --mk-chip:var(--btd-ui-subtle);
    --mk-accent:var(--btd-ui-accent);
}
body .btd-unified-search,
body.dark-mode .btd-unified-search {
    --btd-sr-text:var(--btd-ui-text);
    --btd-sr-muted:var(--btd-ui-muted);
    --btd-sr-panel:var(--btd-ui-card);
    --btd-sr-soft:var(--btd-ui-panel);
    --btd-sr-hover:var(--btd-ui-subtle);
    --btd-sr-border:var(--btd-ui-border);
    --btd-sr-lime:var(--btd-ui-accent);
    --btd-sr-control:var(--btd-ui-card);
    --btd-sr-input-border:var(--btd-ui-border);
    --btd-sr-input-focus:var(--btd-ui-focus);
    --btd-sr-input-icon:var(--btd-ui-muted);
    --btd-sr-focus-ring:var(--btd-ui-focus-ring);
}
/* Preserve current radio design while selecting by a neutral tone. */
body:not(.dark-mode) .btd-unified-search { --btd-sr-radio-on:#424a51; }
body.dark-mode .btd-unified-search { --btd-sr-radio-on:#d1d5d8; }

/* Common board category navigation (not market's purpose-built marketplace tabs). */
body .rb_bbs_wrap #bo_cate a {
    color:var(--btd-ui-muted);
}
body .rb_bbs_wrap #bo_cate a:hover,
body .rb_bbs_wrap #bo_cate a:focus-visible {
    color:var(--btd-ui-text);
}
body .rb_bbs_wrap #bo_cate #bo_cate_on {
    color:var(--btd-ui-text);
    background-color:transparent;
    box-shadow:none;
}
body .rb_bbs_wrap #bo_cate #bo_cate_on::after {
    background-color:var(--btd-ui-accent);
}
body .rb_bbs_wrap #bo_cate #bo_cate_ul::before {
    background-color:var(--btd-ui-border);
}

/* Common list: only colors, not card geometry or editorial headline sizes. */
body .rb_bbs_wrap .rb_bbs_for {
    border-bottom-color:var(--btd-ui-border);
}
body .rb_bbs_wrap .rb_bbs_for_cont_subj a {
    color:var(--btd-ui-text);
}
body .rb_bbs_wrap .rb_bbs_top li.cnts,
body .rb_bbs_wrap .help_text,
body .rb_bbs_wrap .help_text_gap {
    color:var(--btd-ui-muted);
}

/* Article form: neutral editing surfaces; keep existing heights, widths, editor controls. */
body .rb_bbs_wrap #fwrite #wr_subject {
    color:var(--btd-ui-text);
    background-color:var(--btd-ui-card);
    border-color:var(--btd-ui-border);
}
body.dark-mode .rb_bbs_wrap #fwrite #wr_subject {
    background-color:var(--btd-ui-subtle);
}
body .rb_bbs_wrap #fwrite #wr_subject::placeholder {
    color:var(--btd-ui-muted);
}
body .rb_bbs_wrap #fwrite #wr_subject:focus-visible {
    outline:2px solid var(--btd-ui-focus);
    outline-offset:2px;
}

/* Keep the existing registration button as the single intentionally lime action. */
body .rb_bbs_wrap .rb_inp_wrap_confirm .btn_submit {
    background-color:var(--btd-ui-accent);
    color:#17200a;
}
body .rb_bbs_wrap .rb_inp_wrap_confirm .btn_cancel {
    background-color:var(--btd-ui-subtle);
    color:var(--btd-ui-text);
    box-shadow:inset 0 0 0 1px var(--btd-ui-border);
}
body .rb_bbs_wrap .rb_inp_wrap_confirm .btn_submit:focus-visible,
body .rb_bbs_wrap .rb_inp_wrap_confirm .btn_cancel:focus-visible {
    outline:2px solid var(--btd-ui-focus);
    outline-offset:2px;
}

/* Legacy builder button colors: replace purple with neutral interaction chrome.
   Keep the existing floating toolbars, icon images and button dimensions. */
body .rb_bbs_wrap .btns_gr_wrap .btns_gr .fl_btns:hover,
body .rb_bbs_wrap .btm_btns .fl_btns:hover,
body .rb_bbs_wrap .writer_prof_ul2 .fl_btns:hover {
    border-color:var(--btd-ui-focus);
    color:var(--btd-ui-text);
}
body .rb_bbs_wrap .btns_gr_wrap .btns_gr .fl_btns.main_color_bg,
body .rb_bbs_wrap .btm_btns .fl_btns.main_color_bg {
    background-color:var(--btd-ui-accent);
    border-color:var(--btd-ui-accent);
}
body .rb_bbs_wrap .writer_prof_ul2 .gd_btn {
    background-color:var(--btd-ui-accent);
    color:#17200a;
}

/* Generic category chips and article attachment/link hover states: no legacy blue. */
body .rb_bbs_wrap .bo_cate_link,
body .rb_bbs_wrap #bo_v_title .bo_v_cate {
    background-color:var(--btd-ui-subtle);
    color:var(--btd-ui-muted);
}
body .rb_bbs_wrap #bo_v_file a:hover,
body .rb_bbs_wrap #bo_v_file a:focus-visible,
body .rb_bbs_wrap #bo_v_link a:hover,
body .rb_bbs_wrap #bo_v_link a:focus-visible {
    color:var(--btd-ui-text);
}
body .rb_bbs_wrap .cmt_btn span.total {
    color:var(--btd-ui-accent);
}
body .rb_bbs_wrap .cmt_btn span.total::after {
    background-color:var(--btd-ui-accent);
}

/* No :nth-child-based presentation, no viewport breakpoints, no content-count logic. */
