:root{
  --green:#03c75a; --green-d:#02a94c; --green-l:#eafaf0;
  --ink:#191f28; --text:#333d4b; --sub:#6b7684; --muted:#a0aab4;
  --bg:#f2f4f6; --panel:#fff; --line:#eaedf1; --line2:#f1f3f5;
  --blue:#3182f6; --blue-l:#eef4ff; --red:#f5384e; --amber:#ff9500;
  --shadow:0 1px 3px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.04);
  --shadow-h:0 4px 12px rgba(0,0,0,.06),0 10px 30px rgba(0,0,0,.07);
  --r:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg); color:var(--text);
  font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic","Segoe UI",system-ui,sans-serif;
  font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased;}
a{color:inherit; text-decoration:none}
h1,h2,h3{color:var(--ink); letter-spacing:-.4px}
.muted{color:var(--muted)} .small{font-size:12px} .sub{color:var(--sub)}

/* ===== 헤더 ===== */
.topbar{background:rgba(255,255,255,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40}
.topbar-inner{max-width:1120px; margin:0 auto; display:flex; align-items:center; gap:20px; padding:14px 20px}
.brand{display:flex; align-items:center; gap:10px}
.logo{width:34px; height:34px; display:flex; line-height:0; flex-shrink:0}
.logo svg{border-radius:10px; box-shadow:0 4px 10px rgba(3,199,90,.3)}
.brand-text{display:flex; flex-direction:column; line-height:1.15}
.brand-name{font-weight:800; font-size:19px; color:var(--ink); letter-spacing:-.5px}
.brand-cafe{color:var(--sub); font-size:11.5px}
.topsearch{margin-left:auto; display:flex; align-items:center; background:var(--bg);
  border:1.5px solid transparent; border-radius:24px; overflow:hidden; transition:.15s}
.topsearch:focus-within{background:#fff; border-color:var(--green)}
.topsearch input{border:none; outline:none; background:transparent; padding:10px 16px; width:250px; font-size:13.5px}
.topsearch button{border:none; background:transparent; padding:0 14px; cursor:pointer; font-size:15px}
.top-actions{display:flex; gap:8px; align-items:center}

.btn{border:1px solid var(--line); background:#fff; color:var(--text); padding:9px 14px; border-radius:10px;
  cursor:pointer; font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:6px; transition:.15s}
.btn:hover{border-color:var(--green); color:var(--green-d)}
.btn.ghost{background:transparent; border-color:transparent; color:var(--sub)}
.btn.ghost:hover{background:var(--bg); color:var(--ink)}
.btn.icon{padding:9px 11px; font-size:16px}
.btn.small{padding:6px 10px; font-size:12.5px}
.btn.primary{background:var(--green); border-color:var(--green); color:#fff}
.btn.primary:hover{background:var(--green-d); border-color:var(--green-d); color:#fff; box-shadow:0 4px 12px rgba(3,199,90,.28)}
.login-btn{font-weight:700; color:var(--ink)}

.btn.refresh .refresh-icon{display:inline-block}
.btn.refresh.stale{background:var(--red); border-color:var(--red); color:#fff; animation:pulse 1.2s infinite}
.btn.refresh.stale .refresh-icon{animation:spin 2s linear infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,56,78,.5)}50%{box-shadow:0 0 0 8px rgba(245,56,78,0)}}
@keyframes spin{to{transform:rotate(360deg)}}

.tabbar{background:#fff; border-bottom:1px solid var(--line)}
.tabbar-inner{max-width:1120px; margin:0 auto; display:flex; gap:2px; padding:0 20px}
.tab{padding:13px 20px; font-size:15px; font-weight:700; color:var(--sub); border-bottom:3px solid transparent; transition:.15s}
.tab:hover{color:var(--ink)}
.tab.active{color:var(--green-d); border-bottom-color:var(--green)}

.update-banner{background:#fff2f3; border-bottom:1px solid var(--red); color:#d32438; padding:10px 20px; text-align:center; font-size:13px}
.hidden{display:none !important}

/* ===== 광고 슬롯 ===== */
.ad-wrap{max-width:1120px; margin:16px auto 0; padding:0 20px}
.ad-slot{display:flex; align-items:center; justify-content:center; overflow:hidden}
.ad-slot.placeholder{background:repeating-linear-gradient(45deg,#f7f8fa,#f7f8fa 12px,#f2f4f6 12px,#f2f4f6 24px);
  border:1px dashed #d6dbe1; border-radius:12px; color:#aeb6c0; font-size:12px; position:relative}
.ad-slot.placeholder::before{content:"AD"; position:absolute; top:8px; left:10px; font-size:10px; font-weight:800;
  letter-spacing:1px; color:#c2c9d1; background:#fff; padding:1px 6px; border-radius:5px; border:1px solid #e3e7ec}
.ad-leaderboard{min-height:90px}
.ad-leaderboard.placeholder{height:90px}
.ad-rect{margin-top:14px; min-height:0}
.ad-rect.placeholder{height:250px}
.ad-footer{width:100%}
.ad-footer.placeholder{height:90px; max-width:728px; margin:0 auto 18px}

/* ===== 레이아웃 ===== */
.layout{max-width:1120px; margin:16px auto; padding:0 20px; display:grid; grid-template-columns:224px 1fr; gap:20px; align-items:start}

.sidebar{background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:16px; box-shadow:var(--shadow); position:sticky; top:126px}
.cafe-card{display:flex; gap:11px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--line2)}
.cafe-ico{width:44px; height:44px; background:linear-gradient(135deg,var(--green),#00b894); color:#fff;
  border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:21px; box-shadow:0 4px 12px rgba(3,199,90,.28)}
.cafe-title{font-weight:800; font-size:14.5px; color:var(--ink)}
.cafe-sub{color:var(--muted); font-size:11.5px; margin-top:2px}
.join-btn{width:100%; margin:14px 0; padding:11px; background:var(--green-l); color:var(--green-d);
  border:1px solid #c7edd7; border-radius:10px; font-weight:800; cursor:pointer; font-size:13.5px; transition:.15s}
.join-btn:hover{background:#daf6e7; box-shadow:0 3px 10px rgba(3,199,90,.15)}

.menu{display:flex; flex-direction:column; gap:2px; margin-bottom:6px}
.menu-top{padding:9px 11px; border-radius:9px; font-weight:700; font-size:14px; color:var(--text); transition:.12s}
.menu-top:hover{background:var(--bg)}
.menu-top.active{background:var(--green-l); color:var(--green-d)}
.board-menu .grp{font-size:11px; color:var(--muted); font-weight:800; padding:12px 11px 6px; letter-spacing:.6px}
.board-menu a{display:flex; justify-content:space-between; align-items:center; padding:8px 11px; border-radius:9px; font-size:13.5px; color:var(--sub); transition:.12s}
.board-menu a:hover{background:var(--bg); color:var(--ink)}
.board-menu a.active{background:var(--green-l); color:var(--green-d); font-weight:700}
.board-menu a .cnt{color:var(--muted); font-size:11px; background:var(--bg); padding:1px 7px; border-radius:9px}
.board-menu a.active .cnt{color:var(--green-d); background:#d5f4e3}

.content-area{min-width:0}
.content{background:var(--panel); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; min-height:400px}

/* ===== 카페홈 랜딩 ===== */
.hero{padding:30px 28px; background:linear-gradient(120deg,#e9fbf1 0%,#eef5ff 100%); border-bottom:1px solid var(--line)}
.hero h1{margin:0 0 8px; font-size:26px; font-weight:800}
.hero p{margin:0; color:var(--sub); font-size:14px}
.hero .hero-badges{margin-top:14px; display:flex; flex-wrap:wrap; gap:7px}
.hero .hb{background:#fff; border:1px solid var(--line); color:var(--sub); font-size:12px; padding:5px 11px; border-radius:20px; font-weight:600}

.home-body{padding:22px 24px 28px}
.sec{margin-bottom:26px}
.sec-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px}
.sec-head h2{font-size:16.5px; margin:0; display:flex; align-items:center; gap:7px}
.sec-head .more{font-size:12.5px; color:var(--muted); font-weight:600}
.sec-head .more:hover{color:var(--green-d)}

/* 공지 스트립 */
.notice-strip{display:flex; flex-direction:column; gap:1px; background:#fffdf5; border:1px solid #f2e9c9; border-radius:12px; overflow:hidden}
.notice-strip a{display:flex; align-items:center; gap:10px; padding:11px 15px; font-size:13.5px; color:var(--text)}
.notice-strip a:hover{background:#fffbe9}
.notice-strip .tag{font-size:10.5px; font-weight:800; color:var(--amber); background:#fff3d6; padding:2px 8px; border-radius:6px; flex-shrink:0}

/* 인기 + 최신 2열 */
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:20px}
.rank-list{display:flex; flex-direction:column; gap:2px}
.rank-item{display:flex; align-items:center; gap:11px; padding:9px 10px; border-radius:10px; transition:.12s}
.rank-item:hover{background:var(--bg)}
.rank-num{width:22px; height:22px; flex-shrink:0; border-radius:7px; background:var(--bg); color:var(--sub); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center}
.rank-item:nth-child(1) .rank-num,.rank-item:nth-child(2) .rank-num,.rank-item:nth-child(3) .rank-num{background:var(--green); color:#fff}
.rank-title{flex:1; font-size:13.5px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rank-item:hover .rank-title{color:var(--green-d)}
.rank-meta{font-size:11.5px; color:var(--muted); flex-shrink:0}

/* 카테고리 카드 그리드 */
.cat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
.cat-card{border:1px solid var(--line); border-radius:13px; padding:16px; transition:.15s; background:#fff}
.cat-card:hover{border-color:#d5f0e0; box-shadow:var(--shadow-h); transform:translateY(-1px)}
.cat-card .cc-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid var(--line2)}
.cat-card .cc-title{display:flex; align-items:center; gap:8px; font-weight:800; font-size:14.5px; color:var(--ink)}
.cat-card .cc-ico{font-size:17px}
.cat-card .cc-more{font-size:16px; color:var(--muted)}
.cat-card ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:3px}
.cat-card li a{display:flex; align-items:center; gap:8px; padding:5px 2px; font-size:13px; color:var(--sub)}
.cat-card li a:hover{color:var(--green-d)}
.cat-card li .dot{width:3px; height:3px; border-radius:50%; background:var(--muted); flex-shrink:0}
.cat-card li .t{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cat-card .cc-empty{color:var(--muted); font-size:12.5px; padding:8px 2px}
.ad-infeed{margin:22px 0}
.ad-infeed.placeholder{height:90px}

/* ===== 글목록 ===== */
.board-head{display:flex; align-items:center; justify-content:space-between; padding:20px 24px 16px; border-bottom:2px solid var(--ink)}
.board-head h2{margin:0; font-size:19px; display:flex; align-items:baseline; gap:9px}
.board-head .cnt-badge{font-size:12.5px; color:var(--green-d); background:var(--green-l); padding:2px 9px; border-radius:10px; font-weight:700}
.list-table{width:100%; border-collapse:collapse; font-size:13.5px}
.list-table th{background:#fafbfc; color:var(--sub); font-weight:700; font-size:12px; padding:11px 10px; border-bottom:1px solid var(--line)}
.list-table td{padding:13px 10px; border-bottom:1px solid var(--line2)}
.list-table tbody tr{transition:.1s}
.list-table tbody tr:hover td{background:#fafcff}
.col-no{width:56px; text-align:center; color:var(--muted); font-size:12.5px}
.col-cat{width:90px; text-align:center}
.col-writer{width:100px; text-align:center; color:var(--sub); font-size:12.5px}
.col-date{width:80px; text-align:center; color:var(--muted); font-size:12.5px}
.col-view{width:56px; text-align:center; color:var(--muted); font-size:12.5px}
.cat-chip{display:inline-block; font-size:11px; padding:3px 10px; border-radius:20px; background:var(--blue-l); color:var(--blue); font-weight:600}
.notice-chip{background:#fff0ef; color:var(--red)}
.post-title{color:var(--text); font-weight:500}
.post-title:hover{color:var(--green-d); text-decoration:underline}
.post-title .imgico{margin-left:6px; font-size:12px}
.tr-notice td{background:#fdfef8}
.tr-notice .col-no{color:var(--red); font-weight:800; font-size:11px}
.board-foot{display:flex; align-items:center; justify-content:space-between; padding:18px 24px}
.pager{display:flex; gap:5px}
.pager span{min-width:32px; text-align:center; padding:6px 10px; border:1px solid var(--line); border-radius:8px; font-size:13px; color:var(--sub); cursor:pointer; font-weight:600}
.pager span.on{background:var(--green); color:#fff; border-color:var(--green)}
.empty{padding:70px 20px; text-align:center; color:var(--muted)}

/* 글쓰기 */
.writer{padding:22px 24px}
.writer .field{margin-bottom:16px}
.writer label{display:block; font-size:13px; color:var(--sub); margin-bottom:7px; font-weight:700}
.writer input,.writer select,.writer textarea{width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px; font-size:14px; font-family:inherit; background:#fff; transition:.12s}
.writer input:focus,.writer textarea:focus,.writer select:focus{outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(3,199,90,.1)}
.writer textarea{min-height:240px; resize:vertical; line-height:1.7}
.writer-row{display:flex; gap:14px}
.writer-row>div{flex:1}
.dropzone{border:2px dashed var(--line); border-radius:12px; padding:26px; text-align:center; cursor:pointer; color:var(--muted); background:#fafbfc; transition:.15s}
.dropzone:hover,.dropzone.drag{border-color:var(--green); background:var(--green-l); color:var(--green-d)}
.thumbs{display:flex; flex-wrap:wrap; gap:9px; margin-top:12px}
.thumbs .th{position:relative; width:88px; height:88px; border:1px solid var(--line); border-radius:10px; overflow:hidden}
.thumbs .th img,.thumbs .th video{width:100%; height:100%; object-fit:cover}
.thumbs .th button{position:absolute; top:3px; right:3px; border:none; background:rgba(0,0,0,.6); color:#fff; width:22px; height:22px; border-radius:6px; cursor:pointer}
.writer-actions{display:flex; justify-content:flex-end; gap:9px; margin-top:8px}

/* 글읽기 */
.post-view{padding:24px 26px}
.pv-head{border-bottom:1px solid var(--line); padding-bottom:16px; margin-bottom:18px}
.pv-head h1{font-size:22px; margin:10px 0 12px}
.pv-meta{display:flex; gap:14px; color:var(--muted); font-size:12.5px}
.pv-body{font-size:15px; line-height:1.85; white-space:pre-wrap; min-height:120px; padding:6px 0 22px; color:var(--text)}
.pv-imgs img,.pv-imgs video{max-width:100%; border-radius:12px; margin:10px 0; display:block}
.pv-actions{display:flex; gap:9px; align-items:center; border-top:1px solid var(--line); padding-top:16px}
.like-btn{padding:9px 20px; border:1px solid var(--line); border-radius:22px; background:#fff; cursor:pointer; font-weight:700; transition:.15s}
.like-btn:hover{border-color:var(--red); color:var(--red); background:#fff5f6}

/* 포탈 */
.pad{padding:22px 24px}
.portal-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:15px}
.portal-card{border:1px solid var(--line); border-radius:14px; padding:18px; background:#fff; transition:.15s; position:relative}
.portal-card:hover{border-color:#d5f0e0; box-shadow:var(--shadow-h); transform:translateY(-2px)}
.portal-card .kind{font-size:11px; color:var(--blue); background:var(--blue-l); padding:3px 10px; border-radius:20px; display:inline-block; font-weight:600}
.portal-card h3{margin:10px 0 5px; font-size:15.5px}
.portal-card .url{color:var(--muted); font-size:12px; word-break:break-all}
.portal-card .note{color:var(--sub); font-size:12.5px; margin-top:9px}
.portal-card .del{position:absolute; top:12px; right:12px; border:none; background:transparent; color:var(--muted); cursor:pointer; font-size:14px}
.portal-card .del:hover{color:var(--red)}
.add-form{display:flex; flex-wrap:wrap; gap:9px; margin-bottom:20px; align-items:center; padding:16px; background:var(--bg); border-radius:12px}
.add-form input,.add-form select{padding:10px 12px; border:1px solid var(--line); border-radius:9px; font-size:13px; background:#fff}

/* 현황판 */
.dash-head{display:flex; align-items:center; justify-content:space-between; padding:20px 24px 16px; border-bottom:1px solid var(--line)}
.dash-head h2{font-size:19px; margin:0}
.status-table{width:100%; border-collapse:collapse; font-size:13.5px}
.status-table th{background:#fafbfc; color:var(--sub); padding:11px 14px; text-align:left; border-bottom:1px solid var(--line); font-size:12px; font-weight:700}
.status-table td{padding:14px; border-bottom:1px solid var(--line2)}
.dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:7px}
.st-정상 .dot{background:var(--green); box-shadow:0 0 0 3px rgba(3,199,90,.15)} .st-정상{color:var(--green-d); font-weight:800}
.st-오류 .dot,.st-접속불가 .dot{background:var(--red); box-shadow:0 0 0 3px rgba(245,56,78,.15)} .st-오류,.st-접속불가{color:var(--red); font-weight:800}
.st-미설정 .dot,.st-unknown .dot{background:var(--muted)} .st-미설정,.st-unknown{color:var(--muted)}

/* 푸터 */
.site-footer{background:#fff; border-top:1px solid var(--line); margin-top:20px}
.footer-inner{max-width:1120px; margin:0 auto; padding:26px 20px 34px; text-align:center}
.footer-links{display:flex; gap:10px; justify-content:center; align-items:center; color:var(--muted); font-size:13px; margin:8px 0}
.footer-links a:hover{color:var(--green-d)}
.footer-copy{color:var(--muted); font-size:12px; margin-top:6px}

/* 모달 */
.modal{position:fixed; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; z-index:60; padding:20px}
.modal-box{background:#fff; border-radius:16px; width:min(520px,96vw); max-height:88vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal-head{display:flex; justify-content:space-between; align-items:center; padding:20px 22px 14px}
.modal-head h3{margin:0; font-size:18px}
.modal-scroll{overflow-y:auto; padding:0 22px}
.seg-title{font-size:12px; font-weight:800; color:var(--sub); letter-spacing:.5px; margin:16px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--line2)}
.seg-note{font-weight:500; color:var(--muted); font-size:11px; letter-spacing:0}
.field{margin-bottom:14px}
.field>span{display:block; font-size:13px; color:var(--sub); margin-bottom:6px; font-weight:600}
.field input{width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:9px; font-size:14px}
.field input:focus,.ad-input:focus{outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(3,199,90,.1)}
.ad-input{width:100%; min-height:60px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; font-size:12px; font-family:ui-monospace,Menlo,Consolas,monospace; resize:vertical}
.row{display:flex; gap:8px} .row input{flex:1}
.modal-foot{display:flex; justify-content:space-between; align-items:center; padding:16px 22px; border-top:1px solid var(--line); margin-top:8px}
.status{font-size:13px; margin-top:8px}
.status.ok{color:var(--green-d)} .status.err{color:var(--red)}

/* ===== 모바일 요소(데스크톱 기본: 숨김) ===== */
.hamburger{display:none; flex-direction:column; justify-content:center; gap:4px; width:38px; height:38px;
  border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; padding:0}
.hamburger span{display:block; width:18px; height:2px; background:var(--ink); margin:0 auto; border-radius:2px; transition:.2s}
.hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.hamburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.only-mobile{display:none !important}
.mobile-search{display:none; gap:8px; padding:10px 16px; border-top:1px solid var(--line2); background:#fff}
.mobile-search input{flex:1; padding:10px 14px; border:1px solid var(--line); border-radius:10px; font-size:14px}
.mobile-search button{padding:10px 16px; border:none; background:var(--green); color:#fff; border-radius:10px; font-weight:700; cursor:pointer}
.side-overlay{position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:44; opacity:0; transition:opacity .2s}

/* ===== 태블릿 이하 ===== */
@media(max-width:900px){
  .layout{grid-template-columns:1fr; margin-top:12px}
  .two-col,.cat-grid{grid-template-columns:1fr}
  .login-btn{display:none}
  .hamburger{display:flex}
  .only-mobile{display:inline-flex !important}
  .topsearch{display:none}            /* 데스크톱 검색바 숨기고 모바일 검색 토글 사용 */
  .brand-cafe{display:none}

  /* 사이드바 = 좌측 슬라이드 서랍 */
  .sidebar{position:fixed; top:0; left:0; bottom:0; width:280px; max-width:84vw; z-index:45;
    border-radius:0; border:none; box-shadow:2px 0 20px rgba(0,0,0,.15); overflow-y:auto;
    transform:translateX(-100%); transition:transform .25s ease}
  body.drawer-open .sidebar{transform:translateX(0) !important}
  body.drawer-open .side-overlay{display:block}
  #adSide{display:none}

  /* 글목록: 좁은 화면에서 분류·번호 숨겨 제목 위주로 */
  .board-head{padding:16px 16px 12px}
  .home-body,.pad,.writer,.post-view{padding-left:16px; padding-right:16px}
  .col-no,.col-cat{display:none}
  .list-table th,.list-table td{padding:12px 6px}
  .hero{padding:24px 18px}
  .hero h1{font-size:22px}
  .status-table th:nth-child(2),.status-table td:nth-child(2){display:none} /* 종류 숨김 */
}

/* ===== 폰 ===== */
@media(max-width:520px){
  .topbar-inner{gap:10px; padding:10px 14px}
  .brand-name{font-size:17px}
  .tab{padding:12px 13px; font-size:14px}
  .tabbar-inner{overflow-x:auto; -webkit-overflow-scrolling:touch}
  .ad-wrap{padding:0 14px}
  .col-view{display:none}                 /* 조회수도 숨겨 제목·작성자·날짜만 */
  .list-table td{font-size:13.5px}
  .portal-grid{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:1fr}
  .btn{padding:8px 11px}
  .modal-box{border-radius:14px}
  /* 터치 타겟 키우기 */
  .board-menu a,.menu-top{padding:11px 12px}
  .rank-item{padding:11px 10px}
}

/* 큰 화면 상한 */
@media(min-width:1240px){ .topbar-inner,.tabbar-inner,.ad-wrap,.layout,.footer-inner{max-width:1180px} }

/* ===== 인증 모달 ===== */
.auth-box{width:min(400px,94vw)}
.auth-tabs{display:flex; gap:6px; margin:0 0 16px}
.auth-tabs button{flex:1; padding:10px; border:1px solid var(--line); background:#fff; border-radius:9px; font-weight:700; color:var(--sub); cursor:pointer}
.auth-tabs button.on{background:var(--green-l); color:var(--green-d); border-color:#bde9cd}
.auth-box .field{margin:0 0 12px}

/* 유저 메뉴 팝업 */
.user-pop{position:fixed; z-index:70; background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow-h); padding:12px; min-width:180px}
.user-pop .up-email{font-size:12.5px; color:var(--sub); word-break:break-all; margin-bottom:6px}
.user-pop .up-badge{display:inline-block; font-size:11px; font-weight:800; color:var(--green-d); background:var(--green-l); padding:2px 8px; border-radius:8px; margin-bottom:8px}
.user-pop #btnLogout{width:100%; padding:9px; border:1px solid var(--line); background:#fff; border-radius:9px; cursor:pointer; font-weight:600}
.user-pop #btnLogout:hover{border-color:var(--red); color:var(--red)}

/* ===== 관리자 편집 바 ===== */
.admin-bar{position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:65;
  display:flex; align-items:center; gap:8px; background:var(--ink); color:#fff;
  padding:8px 12px; border-radius:14px; box-shadow:0 8px 30px rgba(0,0,0,.3); font-size:13px}
.admin-bar .ab-tag{font-size:11px; font-weight:800; background:var(--green); color:#fff; padding:3px 9px; border-radius:8px}
.admin-bar button[data-mode]{background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.2);
  padding:7px 12px; border-radius:9px; cursor:pointer; font-weight:600; font-size:13px}
.admin-bar button[data-mode].on{background:var(--green); border-color:var(--green)}
.admin-bar .ab-hint{color:#cfd6e0; font-size:12px; margin-left:2px}
@media(max-width:520px){ .admin-bar{flex-wrap:wrap; max-width:92vw; justify-content:center} .admin-bar .ab-hint{width:100%; text-align:center} }

/* 편집 모드 시각 표시 */
body.cms-img img{outline:2px dashed var(--green); outline-offset:2px; cursor:pointer}
body.cms-txt h1,body.cms-txt h2,body.cms-txt h3,body.cms-txt p,body.cms-txt .brand-name{outline:1px dashed var(--blue); outline-offset:2px; cursor:text}

/* ===== 홈 히어로(브랜드) ===== */
.hero-center{text-align:center; padding:48px 24px 40px;
  background:radial-gradient(1200px 400px at 50% -120px,#dbfbe9 0%,transparent 70%),linear-gradient(180deg,#f2fcf6 0%,#ffffff 100%);
  border-bottom:1px solid var(--line)}
.hero-logo{display:inline-flex; margin-bottom:14px}
.hero-logo svg{border-radius:16px; box-shadow:0 10px 30px rgba(3,199,90,.28)}
.hero-center h1{font-size:clamp(28px,5vw,42px); font-weight:900; letter-spacing:-1px; margin:0 0 10px}
.hero-tag{color:var(--sub); font-size:clamp(14px,2.2vw,17px); max-width:38ch; margin:0 auto 22px; line-height:1.6}
.hero-search{display:flex; max-width:520px; margin:0 auto 16px; background:#fff; border:2px solid var(--green);
  border-radius:30px; padding:5px 5px 5px 8px; box-shadow:0 8px 24px rgba(3,199,90,.12)}
.hero-search input{flex:1; border:none; outline:none; background:transparent; padding:11px 12px; font-size:15px}
.hero-search button{border:none; background:var(--green); color:#fff; font-weight:800; padding:0 22px; border-radius:24px; cursor:pointer; font-size:14.5px}
.hero-search button:hover{background:var(--green-d)}
.hero-cta{display:flex; gap:10px; justify-content:center; margin-bottom:26px; flex-wrap:wrap}
.hero-cta .btn{padding:11px 20px; font-size:14.5px}
.hero-stats{display:inline-flex; gap:0; background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:var(--shadow)}
.hero-stats>div{padding:14px 26px; display:flex; flex-direction:column; align-items:center; border-right:1px solid var(--line2)}
.hero-stats>div:last-child{border-right:none}
.hero-stats b{font-size:22px; color:var(--ink); font-weight:900}
.hero-stats span{font-size:12px; color:var(--muted); margin-top:2px}

/* 공지 스트립 화살표 */
.notice-strip a .ns-go{margin-left:auto; color:var(--muted); font-size:18px}
.notice-strip a .t{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* ===== 토픽 카드(정체성) ===== */
.topic-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px}
.topic-card{display:flex; flex-direction:column; align-items:flex-start; padding:20px 18px;
  border:1px solid var(--line); border-radius:16px; background:#fff; transition:.16s; position:relative; overflow:hidden}
.topic-card:before{content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--green); opacity:0; transition:.16s}
.topic-card:hover{border-color:#cdeeda; box-shadow:var(--shadow-h); transform:translateY(-3px)}
.topic-card:hover:before{opacity:1}
.tc-ico{font-size:30px; margin-bottom:10px; line-height:1}
.tc-name{font-weight:800; font-size:16px; color:var(--ink); margin-bottom:5px}
.tc-desc{font-size:13px; color:var(--sub); line-height:1.5; margin-bottom:14px; min-height:38px}
.tc-count{font-size:11.5px; font-weight:700; color:var(--green-d); background:var(--green-l); padding:4px 10px; border-radius:20px}

/* ===== 가입 유도 밴드 ===== */
.join-band{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-top:26px; padding:26px 28px; border-radius:18px;
  background:linear-gradient(120deg,#06c167 0%,#00a884 100%); color:#fff}
.join-band h3{color:#fff; margin:0 0 6px; font-size:19px}
.join-band p{margin:0; color:rgba(255,255,255,.9); font-size:14px}
.join-band .btn{background:#fff; color:var(--green-d); border-color:#fff; font-weight:800; padding:12px 22px}
.join-band .btn:hover{background:#f3fff8}

@media(max-width:520px){
  .hero-center{padding:36px 16px 30px}
  .hero-stats>div{padding:12px 16px}
  .topic-grid{grid-template-columns:1fr 1fr; gap:10px}
  .tc-desc{min-height:0}
  .join-band{padding:22px 20px}
}

/* ============================================================
   ✦ 프리미엄 폴리시 (고급감 업그레이드) — 파일 맨 끝, 이전 규칙 위에 적용
   ============================================================ */
:root{
  --green:#04c366; --green-d:#02a457; --green-l:#e9fbf1;
  --ink:#101828; --text:#344054; --sub:#667085; --muted:#98a2b3;
  --bg:#f6f8fa; --line:#eaecf0; --line2:#f2f4f7;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05);
  --shadow-h:0 4px 10px rgba(16,24,40,.05), 0 20px 44px rgba(16,24,40,.10);
  --r:16px;
}
body{font-feature-settings:"ss01","cv01"; letter-spacing:-.01em}

/* 헤더: 유리질감 강화 */
.topbar{background:rgba(255,255,255,.72); backdrop-filter:saturate(180%) blur(16px); -webkit-backdrop-filter:saturate(180%) blur(16px)}

/* 워드마크: 그라데이션 텍스트 */
.brand-name{background:linear-gradient(120deg,#0a1f16,#065f3a 55%,#04c366);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent}

/* 버튼: 입체 그라데이션 + 글로우 */
.btn{border-radius:11px; transition:transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s}
.btn:active{transform:translateY(1px)}
.btn.primary{background:linear-gradient(180deg,#08d873,#04b45c); border-color:#04b45c;
  box-shadow:0 1px 2px rgba(4,180,92,.25), 0 8px 20px rgba(4,195,102,.28)}
.btn.primary:hover{background:linear-gradient(180deg,#06cf6a,#039e51); box-shadow:0 2px 6px rgba(4,180,92,.3), 0 12px 28px rgba(4,195,102,.34)}

/* 히어로: 컬러 메시 그라데이션 */
.hero-center{
  background:
    radial-gradient(560px 300px at 14% 4%, rgba(4,214,102,.16), transparent 60%),
    radial-gradient(620px 320px at 88% 8%, rgba(49,130,246,.12), transparent 62%),
    radial-gradient(900px 420px at 50% -160px, #d7fbe8, transparent 72%),
    linear-gradient(180deg,#f3fdf8 0%,#ffffff 100%);
}
.hero-center h1{background:linear-gradient(120deg,#0a1f16,#075f3b 45%,#04b45c);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent}
.hero-search{box-shadow:0 10px 30px rgba(4,195,102,.16), 0 2px 6px rgba(16,24,40,.05)}
.hero-stats{box-shadow:var(--shadow); border-radius:18px}

/* 카드류 공통 고급 그림자·라운드 */
.card,.content,.sidebar{border-radius:18px}
.topic-card{border-radius:18px}
.topic-card:hover{box-shadow:var(--shadow-h)}
.portal-card,.cat-card{border-radius:16px}

/* 가입 밴드: 광택 + 은은한 패턴 */
.join-band{position:relative; overflow:hidden;
  background:linear-gradient(120deg,#06c167 0%,#039e6f 100%);
  box-shadow:0 16px 40px rgba(4,180,110,.28)}
.join-band::after{content:""; position:absolute; right:-60px; top:-80px; width:260px; height:260px;
  background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%); pointer-events:none}

/* 사이드바 카페 아이콘·로고 미세 광택 */
.cafe-ico,.logo svg{box-shadow:0 6px 16px rgba(4,195,102,.32)}

/* 스크롤바(웹킷) 고급화 */
*::-webkit-scrollbar{width:11px; height:11px}
*::-webkit-scrollbar-thumb{background:#d6dbe2; border:3px solid transparent; background-clip:padding-box; border-radius:20px}
*::-webkit-scrollbar-thumb:hover{background:#c1c8d1; background-clip:padding-box}

/* 선택 색 */
::selection{background:rgba(4,195,102,.22)}

/* 앱 설치 버튼 */
.install-btn{background:var(--green-l); color:var(--green-d); border-color:#bfead1; font-weight:800}
.install-btn:hover{background:#dcf7e7; color:var(--green-d); border-color:#9fdcb8}
@media(max-width:520px){ .install-btn{padding:8px 10px; font-size:12.5px} }

/* 홈 상단 앱 설치 배너 */
.install-hero{display:flex; align-items:center; gap:14px; margin:0; padding:14px 20px;
  background:linear-gradient(120deg,#06c167,#03a06e); color:#fff; position:relative}
.install-hero .ih-ico{font-size:26px; line-height:1; flex-shrink:0}
.install-hero .ih-txt{display:flex; flex-direction:column; line-height:1.35; flex:1; min-width:0}
.install-hero .ih-txt b{font-size:15px; font-weight:800}
.install-hero .ih-txt span{font-size:12.5px; color:rgba(255,255,255,.9)}
.install-hero .btn.primary{background:#fff; color:#03a06e; border-color:#fff; font-weight:800; box-shadow:none; flex-shrink:0}
.install-hero .btn.primary:hover{background:#f2fff8; color:#028a5f}
.install-hero .ih-x{position:absolute; top:8px; right:10px; background:transparent; border:none; color:rgba(255,255,255,.8); cursor:pointer; font-size:13px}
.install-hero .ih-x:hover{color:#fff}
@media(max-width:520px){
  .install-hero{flex-wrap:wrap; gap:10px; padding:14px 16px 16px}
  .install-hero .ih-txt{flex-basis:calc(100% - 40px)}
  .install-hero .btn.primary{width:100%}
}

/* ============================================================
   ✦ 컬러 아이덴티티 (카테고리 색·아바타·타일)
   ============================================================ */
.cat-dot{display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; vertical-align:middle; flex-shrink:0}
.rank-meta .cat-dot{width:7px; height:7px; margin-right:5px}
.avatar{display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%;
  color:#fff; font-size:12px; font-weight:800; flex-shrink:0; box-shadow:0 1px 3px rgba(0,0,0,.12)}
.writer-cell{display:inline-flex; align-items:center; gap:7px}
.col-writer .avatar{width:22px; height:22px; font-size:11px}

/* 토픽 카드 = 카테고리 컬러 타일 */
.topic-card{align-items:flex-start}
.tc-tile{width:52px; height:52px; border-radius:15px; background:var(--ccbg,#eef); display:flex; align-items:center; justify-content:center;
  margin-bottom:13px; transition:transform .16s ease, box-shadow .16s ease}
.tc-tile .tc-ico{font-size:26px; margin:0; line-height:1}
.topic-card::before{background:var(--cc,#04c366)}
.topic-card:hover{border-color:var(--cc,#cdeeda)}
.topic-card:hover .tc-tile{transform:scale(1.08) rotate(-3deg); box-shadow:0 8px 20px color-mix(in srgb,var(--cc) 30%,transparent)}
.tc-count{color:var(--cc,#02a457) !important; background:var(--ccbg,#e9fbf1) !important}

/* 글읽기 작성자 카드 */
.pv-author{display:flex; align-items:center; gap:11px; margin-top:8px}
.pv-author .avatar{width:42px; height:42px; font-size:17px}
.pv-au-meta{display:flex; flex-direction:column; line-height:1.45}
.pv-au-meta b{font-size:14.5px; color:var(--ink)}
.pv-au-meta span{font-size:12px; color:var(--muted)}

/* ============================================================
   ✦ 안쪽 페이지 프리미엄 (게시판 배너 · 관련글)
   ============================================================ */
/* 게시판 상단 컬러 배너 */
.board-hero{display:flex; align-items:center; gap:16px; padding:22px 24px; border-bottom:1px solid var(--line);
  background:linear-gradient(120deg, var(--ccbg,#eef5ff) 0%, #ffffff 72%)}
.board-hero-neutral{background:linear-gradient(120deg,#e9f7ff 0%,#f2fcf6 60%,#fff 100%)}
.bh-tile{width:56px; height:56px; border-radius:17px; background:var(--ccbg,#e9fbf1); display:flex; align-items:center; justify-content:center;
  font-size:27px; flex-shrink:0; box-shadow:0 6px 16px rgba(16,24,40,.06)}
.board-hero-neutral .bh-tile{background:#fff}
.bh-txt{flex:1; min-width:0}
.bh-txt h2{margin:0; font-size:21px; letter-spacing:-.4px}
.bh-txt p{margin:4px 0 0; color:var(--sub); font-size:13.5px}
.bh-side{display:flex; align-items:center; gap:12px; flex-shrink:0}
.bh-count{font-size:12.5px; color:var(--sub); font-weight:700; background:#fff; border:1px solid var(--line); padding:6px 12px; border-radius:20px}

/* 글읽기: 같은 게시판 다른 글 */
.pv-more{margin-top:28px; border-top:1px solid var(--line); padding-top:20px}
.pv-more-head{font-weight:800; font-size:14.5px; color:var(--ink); margin-bottom:12px; display:flex; align-items:center}
.pv-more-list{display:flex; flex-direction:column; gap:2px}
.pv-more-list a{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border-radius:11px; transition:.12s}
.pv-more-list a:hover{background:var(--bg)}
.pm-title{font-size:14px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1}
.pv-more-list a:hover .pm-title{color:var(--green-d)}
.pm-meta{display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; flex-shrink:0}
.pm-meta .avatar{width:22px; height:22px; font-size:11px}
@media(max-width:520px){
  .board-hero{padding:18px 16px; gap:12px}
  .bh-tile{width:46px; height:46px; font-size:22px}
  .bh-txt h2{font-size:18px}
  .pm-meta span{display:none}
}

/* ============================================================
   ✦✦ 클린 리디자인 — "PPT 느낌" 제거 · 가독성/여백 우선 (최종, 이전 다 덮음)
   밝고 담백한 콘텐츠 사이트. 색은 작은 포인트로만.
   ============================================================ */
:root{
  --bg:#fbfbfc; --panel:#ffffff; --line:#ececf0; --line2:#f5f6f8;
  --ink:#16181d; --text:#33383f; --sub:#6b7280; --muted:#a2a8b2;
  --shadow:0 1px 2px rgba(16,24,40,.03);
  --shadow-h:0 6px 22px rgba(16,24,40,.07);
}
body{font-size:15px; line-height:1.72; color:var(--text); letter-spacing:-.005em}
h1,h2,h3{letter-spacing:-.02em}

/* 그라데이션 텍스트 → 또렷한 진한 잉크 (가독성) */
.brand-name{background:none !important; -webkit-text-fill-color:var(--ink) !important; color:var(--ink) !important; font-weight:800}
.hero-center h1{background:none !important; -webkit-text-fill-color:var(--ink) !important; color:var(--ink) !important}

/* 카드·패널: 그림자 걷고 얇은 선 + 넉넉한 라운드 */
.content,.sidebar{box-shadow:none; border:1px solid var(--line); border-radius:18px}

/* 헤더: 유리효과 과하지 않게 */
.topbar{background:rgba(255,255,255,.85)}

/* ── 히어로: 컬러 메시 제거 → 깨끗한 흰 배경, 여백 ── */
.hero-center{background:#fff; padding:56px 24px 44px; border-bottom:1px solid var(--line)}
.hero-logo svg{box-shadow:0 6px 18px rgba(4,195,102,.22)}
.hero-tag{font-size:16px; color:var(--sub); max-width:34ch}
.hero-search{box-shadow:none; border:1.5px solid var(--line)}
.hero-search:focus-within{border-color:var(--green)}
.hero-search button{box-shadow:none}
.hero-stats{box-shadow:none; border:1px solid var(--line)}
.hero-stats b{font-size:20px}

/* ── 앱 설치 배너: 초록 블록 → 담백한 라이트 바 ── */
.install-hero{background:#f5f8f6; color:var(--text); border-bottom:1px solid var(--line)}
.install-hero .ih-txt b{color:var(--ink)} .install-hero .ih-txt span{color:var(--sub)}
.install-hero .ih-x{color:var(--muted)}
.install-hero .btn.primary{background:var(--green); color:#fff; border-color:var(--green)}

/* ── 토픽 카드: 큰 그라데이션 타일 → 담백한 카드, 텍스트 중심 ── */
.topic-card{box-shadow:none; border:1px solid var(--line); padding:18px 18px 16px}
.topic-card::before{display:none}
.topic-card:hover{box-shadow:var(--shadow-h); transform:none; border-color:var(--line)}
.tc-tile{width:42px; height:42px; border-radius:12px; margin-bottom:12px}
.tc-tile .tc-ico{font-size:21px}
.topic-card:hover .tc-tile{transform:none; box-shadow:none}
.tc-name{font-size:15.5px} .tc-desc{font-size:13px; color:var(--sub); min-height:36px}
.tc-count{font-weight:700}

/* ── 게시판 배너: 그라데이션 → 깨끗한 헤더 ── */
.board-hero,.board-hero-neutral{background:#fff; padding:24px 24px 20px}
.bh-tile{width:46px; height:46px; border-radius:13px; box-shadow:none; font-size:22px}
.bh-txt h2{font-size:20px}

/* ── 가입 밴드: 초록 통블록 → 담백한 카드 ── */
.join-band{background:#f5f9f6; color:var(--text); box-shadow:none; border:1px solid #e3efe7}
.join-band::after{display:none}
.join-band h3{color:var(--ink)} .join-band p{color:var(--sub)}
.join-band .btn{background:var(--green); color:#fff; border-color:var(--green)}
.join-band .btn:hover{background:var(--green-d)}

/* ── 버튼: 글로우 줄이고 담백 ── */
.btn{box-shadow:none}
.btn.primary{background:var(--green); border-color:var(--green); box-shadow:none}
.btn.primary:hover{background:var(--green-d); box-shadow:0 3px 10px rgba(3,180,92,.2)}

/* ── 여백·타이포로 가독성 ── */
.home-body{padding:28px 26px 36px}
.sec{margin-bottom:36px}
.sec-head h2{font-size:18px}
.list-table td{padding:15px 10px}
.list-table th{padding:12px 10px}
.post-title{font-size:14.5px; font-weight:500}
.pv-body{font-size:16px; line-height:1.95; color:var(--text)}
.pv-head h1{font-size:23px; line-height:1.4}

/* 표 헤더 살짝만 */
.list-table th{background:#fcfcfd}

/* ============================================================
   ✦✦✦ 생성 이미지 연결 — 히어로 2단 · 카테고리 이미지
   ============================================================ */
/* 히어로: 왼쪽 텍스트 + 오른쪽 이미지 */
.hero.hero-split{display:flex; align-items:center; gap:36px; text-align:left; padding:44px 40px; background:#fff; border-bottom:1px solid var(--line)}
.hero-split .hero-text{flex:1 1 46%; min-width:0}
.hero-split .hero-text h1{font-size:clamp(30px,3.6vw,44px); margin:0 0 12px}
.hero-split .hero-tag{margin:0 0 22px; max-width:32ch}
.hero-split .hero-search{margin:0 0 16px; max-width:460px}
.hero-split .hero-cta{justify-content:flex-start}
.hero-split .hero-stats{display:inline-flex}
.hero-img{flex:1 1 52%; min-width:0; display:flex; justify-content:center; align-items:center}
.hero-img img{width:100%; max-width:580px; height:auto; border-radius:20px; display:block}

/* 토픽 카드: 카테고리 이미지 배너 */
.tc-thumb{width:100%; aspect-ratio:4/3; border-radius:13px; overflow:hidden; margin-bottom:13px; display:flex; align-items:center; justify-content:center}
.tc-thumb img{width:100%; height:100%; object-fit:cover; display:block}
.topic-card:hover .tc-thumb img{transform:scale(1.04); transition:transform .25s ease}

/* 게시판 배너 아이콘 → 이미지 */
.bh-tile{overflow:hidden; padding:0}
.bh-tile img{width:100%; height:100%; object-fit:cover; display:block}

@media(max-width:820px){
  .hero.hero-split{flex-direction:column; text-align:center; padding:34px 20px 26px; gap:22px}
  .hero-split .hero-text{flex:none; width:100%}
  .hero-split .hero-tag{margin:0 auto 20px}
  .hero-split .hero-search{margin:0 auto 16px}
  .hero-split .hero-cta{justify-content:center}
  .hero-img{flex:none; width:100%}
  .hero-img img{max-width:440px}
}

/* 빈 상태 일러스트 */
.empty{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px}
.empty-img{width:140px; height:140px; object-fit:contain; margin-bottom:2px}

/* ============================================================
   ✦ 무드 이미지 연결 + 어른스러운 다듬기
   ============================================================ */
/* 은은한 페이지 배경 (고정 레이어, 스크롤 잰크 없음) */
body::before{content:""; position:fixed; inset:0; z-index:-1;
  background:#f6faf8 url(/static/img/bg.png) center center / cover no-repeat}

/* 가입 밴드: 텍스트 + 커뮤니티 이미지 2단 */
.join-band{display:flex; align-items:stretch; gap:0; padding:0; overflow:hidden;
  background:#fff; border:1px solid var(--line); border-radius:16px}
.join-band::after{display:none}
.jb-text{flex:1; padding:28px 30px; display:flex; flex-direction:column; justify-content:center}
.jb-text h3{color:var(--ink); margin:0 0 8px; font-size:20px}
.jb-text p{color:var(--sub); margin:0 0 16px; font-size:14px}
.jb-text .btn.primary{align-self:flex-start; background:var(--green); color:#fff; border-color:var(--green)}
.jb-img{flex:0 0 40%; display:flex}
.jb-img img{width:100%; height:100%; object-fit:cover; display:block; min-height:170px}

/* 로그인/회원가입 모달: 환영 이미지 + 폼 2단 */
.modal-box.auth-box{display:flex; padding:0; overflow:hidden; width:min(720px,96vw); max-width:720px}
.auth-aside{flex:0 0 44%; background:#eafaf1; display:flex; align-items:center; justify-content:center}
.auth-aside img{width:100%; height:100%; object-fit:cover; display:block}
.auth-form{flex:1; padding:22px 26px 24px; min-width:0}
@media(max-width:640px){ .auth-aside{display:none} .modal-box.auth-box{width:min(420px,94vw)} .auth-form{padding:20px 22px} }
@media(max-width:560px){ .join-band{flex-direction:column} .jb-img{flex:none; height:160px} .jb-img img{min-height:160px} }

/* 어른스러운 마무리: 헤더 여백·구분선 정돈 */
.sec-head h2{font-weight:800; letter-spacing:-.3px}
.tc-thumb{border:1px solid var(--line2)}
.bh-tile{border:1px solid var(--line2)}
