/* BYD FORUM — based on BYD INSIDE v2 design tokens. Namespaced to avoid admin conflicts. */
:root{--bf-bg:#f8f9fb;--bf-paper:#fff;--bf-text:#181c25;--bf-muted:#758090;--bf-dim:#9ca5b1;--bf-border:#e8ebf0;--bf-wash:#f3f5f8;--bf-red:#df2637;--bf-redwash:#fff0f1;--bf-nav:#151a23;--bf-shadow:0 5px 24px rgba(29,42,67,.035);--bf-radius:16px}
html[data-bf-theme="dark"]{color-scheme:dark;--bf-bg:#101318;--bf-paper:#191d24;--bf-text:#e8ebf1;--bf-muted:#a0a9b7;--bf-dim:#7e8897;--bf-border:#303642;--bf-wash:#222731;--bf-red:#fa5b69;--bf-redwash:#372026;--bf-nav:#eff2f7;--bf-shadow:0 6px 24px rgba(0,0,0,.12)}
html:has(.bf-site),body:has(.bf-site){background:var(--bf-bg);color:var(--bf-text);min-height:100%}
body:has(.bf-site){margin:0;font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-size:14px;line-height:1.58;-webkit-font-smoothing:antialiased}
.bf-site,.bf-site *{box-sizing:border-box}.bf-site{color:var(--bf-text);background:var(--bf-bg);min-height:100vh}.bf-site a{text-decoration:none;color:inherit}.bf-site button,.bf-site input,.bf-site select,.bf-site textarea{font:inherit}.bf-site a:focus-visible,.bf-site button:focus-visible,.bf-site input:focus-visible,.bf-site select:focus-visible{outline:2px solid var(--bf-red);outline-offset:3px}
.bf-skip{position:fixed;left:-200vw;top:6px;background:var(--bf-paper);padding:8px 12px;z-index:999}.bf-skip:focus{left:12px}
.bf-header{position:sticky;top:0;z-index:100;background:var(--bf-paper);border-bottom:1px solid var(--bf-border)}.bf-header-inner{max-width:1256px;height:72px;margin:auto;padding:0 28px;display:flex;align-items:center;gap:20px}.bf-brand{display:flex;align-items:center;gap:7px;white-space:nowrap}.bf-brand strong{color:var(--bf-red);font-size:27px;font-weight:900;letter-spacing:-2px;font-style:italic;line-height:1}.bf-brand span{font-size:20px;font-weight:850;letter-spacing:-.7px;line-height:1}.bf-tagline{color:var(--bf-muted);font-size:10px;border-left:1px solid var(--bf-border);padding-left:13px;white-space:nowrap}.bf-topnav{display:flex;align-items:center;gap:20px;margin-left:auto;height:100%}.bf-topnav a{display:flex;align-items:center;height:100%;position:relative;white-space:nowrap;font-weight:700;font-size:13px;color:var(--bf-muted)}.bf-topnav a.is-current,.bf-topnav a:hover{color:var(--bf-text)}.bf-topnav a.is-current:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:4px;background:var(--bf-red)}.bf-actions{display:flex;gap:8px;align-items:center;margin-left:4px}.bf-icon-btn{border:0;width:37px;height:37px;border-radius:10px;background:transparent;color:var(--bf-text);font-size:23px;cursor:pointer}.bf-icon-btn:hover{background:var(--bf-wash)}.bf-signin{background:var(--bf-nav);color:var(--bf-paper)!important;border-radius:10px;font-size:12px;padding:10px 13px;font-weight:800;white-space:nowrap}.bf-account{max-width:130px;overflow:hidden;text-overflow:ellipsis}
.bf-shell{max-width:1256px;margin:0 auto;padding:26px 28px 72px;display:grid;grid-template-columns:214px minmax(0,1fr) 238px;gap:22px;align-items:start}.bf-main{min-width:0}.bf-sidebar{position:sticky;top:100px;min-width:0}.bf-panel{border:1px solid var(--bf-border);border-radius:var(--bf-radius);background:var(--bf-paper);box-shadow:var(--bf-shadow)}.bf-side-menu{padding:16px 10px}.bf-side-label{font-weight:800;font-size:11px;letter-spacing:.2px;color:var(--bf-muted);margin:6px 12px 9px}.bf-side-menu a{display:flex;gap:12px;align-items:center;border-radius:9px;padding:10px 14px;color:var(--bf-muted);font-size:13px;font-weight:650}.bf-side-menu a:hover,.bf-side-menu a.is-current{background:var(--bf-redwash);color:var(--bf-red)}.bf-side-line{border-top:1px solid var(--bf-border);margin:12px}.bf-about{padding:16px;margin-top:14px}.bf-about b{font-size:13px}.bf-about p{font-size:12px;color:var(--bf-muted);line-height:1.75;margin:9px 0 0}.bf-right-card{padding:17px;margin-bottom:14px}.bf-right-note b{font-size:13px}.bf-right-note p{color:var(--bf-muted);font-size:12px;line-height:1.8;margin:8px 0 0}.bf-right-link{display:block;font-size:12px;font-weight:750;color:var(--bf-red)!important;margin-top:14px}.bf-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.bf-section-head h2{font-size:17px;font-weight:850;margin:0;letter-spacing:-.5px}.bf-section-head h3{font-size:14px;margin:0;font-weight:850}.bf-section-head>a{font-size:12px;color:var(--bf-muted);white-space:nowrap}.bf-section-head>a:hover{color:var(--bf-red)}.bf-eyebrow{font-size:11px;font-weight:850;letter-spacing:1px;color:var(--bf-red)}
.bf-welcome{padding:30px 30px 28px;margin-bottom:16px;position:relative;overflow:hidden}.bf-welcome:before{content:"";position:absolute;right:-95px;top:-105px;width:270px;height:270px;border-radius:50%;background:radial-gradient(circle,var(--bf-redwash) 0,transparent 72%);pointer-events:none}.bf-welcome h1{font-size:29px;font-weight:850;line-height:1.36;letter-spacing:-1.1px;margin:12px 0}.bf-welcome h1 em{font-style:normal;color:var(--bf-red)}.bf-welcome p{max-width:470px;color:var(--bf-muted);line-height:1.8;margin:0;font-size:13px}.bf-welcome-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:23px}.bf-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;padding:10px 15px;font-size:13px;font-weight:800}.bf-btn-red{background:var(--bf-red);color:#fff!important}.bf-btn-outline{border:1px solid var(--bf-border);background:var(--bf-paper)}.bf-home-section{padding:21px 22px;margin-bottom:16px}.bf-guide-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.bf-guide-tile{border:1px solid var(--bf-border);background:var(--bf-wash);padding:17px;border-radius:12px;display:flex;align-items:flex-start;flex-direction:column;gap:5px}.bf-guide-tile:hover{border-color:var(--bf-red)}.bf-tile-icon{display:inline-flex;background:var(--bf-redwash);color:var(--bf-red);border-radius:7px;font-weight:900;align-items:center;justify-content:center;width:30px;height:30px;font-size:11px;margin-bottom:7px}.bf-guide-tile b{font-size:13px}.bf-guide-tile small{font-size:11px;color:var(--bf-muted)}
.bf-widget-feed ul{padding:0;margin:0;list-style:none}.bf-widget-feed .bf-widget-list li{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 2px;border-bottom:1px solid var(--bf-border)}.bf-widget-feed .bf-widget-list li:last-child{border-bottom:0}.bf-widget-feed .bf-widget-row{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.bf-widget-feed .bf-widget-row a{font-size:13px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}.bf-widget-feed .bf-widget-row a:hover{color:var(--bf-red)}.bf-widget-feed .bf-widget-meta{display:flex;flex-wrap:wrap;gap:9px;color:var(--bf-muted);font-size:11px}.bf-widget-feed .bf-widget-meta span{white-space:nowrap}.bf-widget-feed .bf-widget-empty{padding:19px 8px;color:var(--bf-muted);font-size:12px;text-align:center;background:var(--bf-wash);border-radius:10px}.bf-widget-feed .bf-widget-badge{color:var(--bf-red);font-size:10px;font-weight:800;margin-right:5px}.bf-widget-compact .bf-widget-list li{padding:10px 0}.bf-widget-compact .bf-widget-row a{font-size:12px;font-weight:650}.bf-widget-compact .bf-widget-meta{display:none}
.bf-page-content{min-width:0}.bf-footer{max-width:1256px;margin:0 auto;padding:0 28px 55px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:var(--bf-muted);font-size:11px}.bf-footer b{color:var(--bf-red)}.bf-bottom-nav{display:none}
@media(max-width:1150px){.bf-tagline{display:none}.bf-shell{grid-template-columns:188px minmax(0,1fr) 210px;gap:16px;padding:22px 20px 70px}.bf-header-inner{padding:0 20px}.bf-topnav{gap:14px}}
@media(max-width:970px){.bf-right{display:none}.bf-shell{grid-template-columns:180px minmax(0,1fr)}.bf-topnav{gap:14px}}
@media(max-width:690px){.bf-header-inner{height:61px;padding:0 16px;gap:12px}.bf-brand strong{font-size:25px}.bf-brand span{font-size:19px}.bf-topnav{display:none}.bf-shell{display:block;padding:13px 12px 90px}.bf-left{display:none}.bf-welcome{padding:24px 19px}.bf-welcome h1{font-size:24px}.bf-home-section{padding:18px 15px}.bf-guide-tile{padding:13px}.bf-footer{display:block;padding:0 16px 92px;font-size:10px}.bf-footer span{display:block;margin-top:5px}.bf-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:101;height:calc(61px + env(safe-area-inset-bottom));background:var(--bf-paper);border-top:1px solid var(--bf-border);padding-bottom:env(safe-area-inset-bottom);align-items:stretch;justify-content:space-around;box-shadow:0 -3px 18px rgba(0,0,0,.03)}.bf-bottom-nav a{flex:1;display:flex;flex-direction:column;justify-content:center;gap:1px;align-items:center;color:var(--bf-muted);font-size:20px}.bf-bottom-nav a small{font-size:10px;font-weight:700}.bf-bottom-nav a.is-current{color:var(--bf-red)}.bf-actions{margin-left:auto}.bf-signin{padding:9px 11px}.bf-widget-feed .bf-widget-list li{padding:12px 0}}
@media(max-width:380px){.bf-brand span{font-size:17px}.bf-brand strong{font-size:23px}.bf-guide-tiles{grid-template-columns:1fr}.bf-welcome h1{font-size:22px}}
@media(prefers-reduced-motion:reduce){.bf-site *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* v1.0.4: 최고관리자 바로가기 */
.bf-admin-link{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:9px 11px;min-height:36px;border:1px solid var(--bf-border);border-radius:10px;background:var(--bf-wash);color:var(--bf-text)!important;font-size:12px;font-weight:800;white-space:nowrap}
.bf-admin-link:hover{border-color:var(--bf-red);color:var(--bf-red)!important}
@media(max-width:690px){.bf-actions{gap:5px}.bf-icon-btn{width:31px;height:35px}.bf-account{max-width:66px;font-size:11px}.bf-admin-link{padding:8px 7px;font-size:11px;gap:2px}}
@media(max-width:380px){.bf-header-inner{padding-left:10px;padding-right:10px;gap:7px}.bf-admin-link{padding:7px 5px}.bf-account{max-width:53px}}

/* BYD FORUM v1.0.7 — review thumbnails only, on the RIGHT of each row */
.bf-widget-feed .bf-widget-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.bf-widget-feed .bf-widget-entry-review .bf-widget-row{flex-direction:row-reverse;align-items:center;gap:13px}
.bf-widget-feed .bf-widget-thumbnail{width:76px;height:76px;flex:0 0 76px;display:block;overflow:hidden;border-radius:10px;background:var(--bf-wash);border:1px solid var(--bf-border)}
.bf-widget-feed .bf-widget-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.bf-widget-feed .bf-widget-entry-review .bf-widget-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55}
.bf-widget-feed .bf-widget-entry-review .bf-widget-meta{font-size:11px}
@media(max-width:690px){.bf-widget-feed .bf-widget-thumbnail{width:72px;height:72px;flex-basis:72px}.bf-widget-feed .bf-widget-entry-review .bf-widget-row{gap:10px}}


/* v1.0.10 — B안: PC 왼쪽 + 모바일 하단 아이콘 통일 (라이트/다크 공통) */
.bf-nav-sprite{position:absolute;overflow:hidden;width:0;height:0;pointer-events:none}
.bf-side-menu a .bf-nav-icon-shell{display:inline-flex;flex:0 0 20px;width:20px;height:22px;align-items:center;justify-content:center}
.bf-side-menu a .bf-nav-svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.bf-side-menu a.is-current{background:var(--bf-redwash);color:var(--bf-red)}
@media(max-width:690px){
  .bf-bottom-nav a{min-width:0;gap:1px;font-size:inherit;line-height:1.25}
  .bf-bottom-nav a .bf-nav-icon-shell{display:inline-flex;align-items:center;justify-content:center;width:40px;height:34px;flex:0 0 34px;border-radius:12px;background:transparent;transition:background-color .2s}
  .bf-bottom-nav a.is-current .bf-nav-icon-shell{background:var(--bf-redwash)}
  .bf-bottom-nav a .bf-nav-svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
  .bf-bottom-nav a small{display:block;font-size:10px;line-height:1.25;font-weight:750;white-space:nowrap}
}

/* v1.0.11c — 홈 상단 소개 문구: PC·모바일에서 한글 단어 중간 줄바꿈 방지 */
.bf-site .bf-welcome > p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* BYD FORUM K4 — Kakao quick login button, preserving current PC/mobile layout */
.bf-site .bf-kakao-link{background:#fee500;color:#191919!important;border-radius:10px;font-weight:800;font-size:12px;padding:10px 12px;white-space:nowrap;line-height:1.5}
.bf-site .bf-kakao-link:hover{background:#f7dd00}
.bf-site .bf-btn-kakao{background:#fee500;color:#191919!important}
.bf-site .bf-btn-kakao:hover{background:#f7dd00}
@media(max-width:690px){.bf-site .bf-kakao-link{font-size:11px;padding:9px 9px}.bf-site .bf-actions{gap:4px}.bf-site .bf-signin{padding:9px 9px}}
@media(max-width:380px){.bf-site .bf-kakao-link{padding:8px 7px}.bf-site .bf-signin{padding:8px 7px}.bf-site .bf-kakao-link,.bf-site .bf-signin{font-size:11px}}

/* K8: 회원 닉네임 드롭다운. 좁은 모바일에서도 상단 폭 유지. */
.bf-site .bf-user-dropdown{position:relative;min-width:0;flex-shrink:1}
.bf-site .bf-user-trigger{display:flex;align-items:center;justify-content:center;gap:5px;max-width:130px;cursor:pointer;list-style:none;user-select:none}
.bf-site .bf-user-trigger::-webkit-details-marker{display:none}
.bf-site .bf-user-nickname{overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}
.bf-site .bf-user-caret{font-size:14px;line-height:1;flex-shrink:0}
.bf-site .bf-user-options{position:absolute;right:0;top:calc(100% + 9px);z-index:150;min-width:150px;overflow:hidden;border:1px solid var(--bf-border);border-radius:12px;background:var(--bf-paper);box-shadow:0 12px 32px rgba(0,0,0,.14);padding:5px}
.bf-site .bf-user-options a{display:block;padding:10px 12px;color:var(--bf-text)!important;border-radius:8px;font-size:13px;font-weight:700;white-space:nowrap}
.bf-site .bf-user-options a:hover,.bf-site .bf-user-options a:focus-visible{background:var(--bf-wash)}
.bf-site .bf-user-options .bf-user-logout{color:var(--bf-red)!important;border-top:1px solid var(--bf-border);border-radius:0;margin-top:3px;padding-top:11px}
@media(max-width:690px){.bf-site .bf-user-trigger{max-width:88px;padding:9px 7px;font-size:11px}.bf-site .bf-user-options{right:0;min-width:138px}}
@media(max-width:380px){.bf-site .bf-user-trigger{max-width:73px;padding:8px 6px}}
