/* 나들목 — 미니멀 무채색, 읽기 중심. 시각 기준: design/prototype-blog-app-ui.html
   토큰은 임시값 (Figma 공통 컴포넌트 반영 전). 새 색을 만들지 말고 아래 토큰만 쓰세요. */
:root{
  /* 메인 색 #FFFEF5 (2026-11-24: A/B 시험 결과 B 로 확정. 이전 #F5F1E3) + 프레임 색 #38383B. */
  --bg:#FFFEF5;--surface:#F6F4EA;--line:#D7D2C2;--footer-bg:#FAF8EE;--text:#38383B;--sub:#66625B;--on-strong:#F5EED5;--strong:#38383B;
  --hl:255,196,0;             /* 하이라이트 형광펜 색 (rgb). 투명도는 화면 코드가 0.1~1.0 으로 지정 */
  --hl-max:.85;               /* 투명도 1.0 일 때 실제 alpha (크림 바탕 위 글자 대비 7.6:1) */
  --mine:#38383B;             /* 내 하이라이트 밑줄 */
  --err-base:#F55151;         /* 경고 기본색: 아이콘·테두리·배지·왼쪽 막대 (글자에는 쓰지 않음, 바탕 대비 2.9:1) */
  --ok-base:#75F08C;          /* 긍정 기본색: 아이콘·배지 바탕·왼쪽 막대 (글자에는 쓰지 않음) */
  --err:#B3261E;              /* 오류 글자 (크림 바탕 5.63:1, surface 5.14:1) */
  --ok:#1B6E2F;               /* 허용·가능 글자 (크림 바탕 5.45:1, surface 4.98:1) */
  --danger:var(--err);
  --logo-plate:transparent;   /* 푸터 로고 받침 (다크 모드에서만 크림 바탕) */
  --sans:"A2z",system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;   /* 기본 글꼴 A2z (css/fonts.css), 못 불러오면 기기 글꼴 */
  --serif:"A2z",system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s6:24px;--s8:32px;--r:6px;
  --tabbar:52px;
  color-scheme:light;box-sizing:border-box;
}
/* 다크: 프레임 색을 깊게. text/bg 12.32, text/surface 10.06, sub/bg 6.10, err/bg 6.10, ok/bg 9.95 (두 블록은 같은 값) */
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#2A2A2D;--surface:#38383B;--line:#55555A;--text:#F5EED5;--sub:#AEA99C;--on-strong:#38383B;--strong:#F5EED5;--hl:255,190,40;--hl-max:.42;--mine:#F5EED5;--err-base:#F55151;--ok-base:#75F08C;--err:#FF8585;--ok:#75F08C;--danger:var(--err);--logo-plate:#F5EED5;--footer-bg:#323235;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#2A2A2D;--surface:#38383B;--line:#55555A;--text:#F5EED5;--sub:#AEA99C;--on-strong:#38383B;--strong:#F5EED5;--hl:255,190,40;--hl-max:.42;--mine:#F5EED5;--err-base:#F55151;--ok-base:#75F08C;--err:#FF8585;--ok:#75F08C;--danger:var(--err);--logo-plate:#F5EED5;--footer-bg:#323235;color-scheme:dark}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.6 var(--sans);-webkit-font-smoothing:antialiased;padding-top:env(safe-area-inset-top,0px)}
body.modal-open{overflow:hidden}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
button:disabled{cursor:not-allowed;opacity:.5}
a{color:inherit}
:focus-visible{outline:2px solid var(--text);outline-offset:2px;border-radius:2px}
[hidden]{display:none!important}
#main:focus,#main:focus-visible{outline:0} /* 화면 이동 후 프로그램으로 주는 포커스 — 테두리 표시 안 함 */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:8px;z-index:50;background:var(--strong);color:var(--on-strong);padding:8px 12px;border-radius:var(--r)}
.skip:focus{left:8px}
svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ───── 셸: 상단 막대(로고·계정 알약) + 모바일 하단 탭바 / 768px+ 상단 막대 한 줄 ───── */
.shell{min-height:100vh}
.topbar{position:sticky;top:0;z-index:5;background:var(--bg);border-bottom:1px solid var(--line)}
.topbar-in{height:60px;display:flex;align-items:center;justify-content:space-between;gap:var(--s3);padding:0 var(--s4);max-width:1080px;margin:0 auto}
/* 로고 (푸터와 같은 이미지). 다크 모드는 크림 받침, 불러오지 못하면 글자 */
.brand{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--s2);margin-left:calc(var(--s2)*-1);border-radius:var(--r);text-decoration:none;flex:none}
/* 로고 한 쌍: 화면 밝기에 맞는 것만 보임 (js/shell/logo.js). .logo-plate = 다크 모드용 파일이 없을 때 기본 로고 뒤에 까는 밝은 받침 */
.logo-dark{display:none!important}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .logo-light{display:none!important}:root:not([data-theme="light"]) .logo-dark{display:block!important}}
:root[data-theme="dark"] .logo-light{display:none!important}:root[data-theme="dark"] .logo-dark{display:block!important}
img.logo-plate{background:#F5EED5;border-radius:var(--r);padding:6px var(--s2);box-sizing:content-box}
.brand-logo{display:block;height:28px;width:auto;max-width:180px}
.brand-text{font:700 22px/1.2 "A2z","Apple SD Gothic Neo","Malgun Gothic",sans-serif;letter-spacing:.14em;color:var(--text)}
/* 계정 알약: 로그인 / 아이디(밑줄) → 내 블로그 */
.acct-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;min-width:96px;max-width:200px;padding:0 var(--s4);border:1px solid var(--strong);border-radius:999px;font-size:14px;font-weight:500;color:var(--text);text-decoration:none;white-space:nowrap}
.acct-pill span{overflow:hidden;text-overflow:ellipsis}
.acct-pill.signed span{text-decoration:underline;text-underline-offset:3px}
.acct-pill:hover,.acct-pill[aria-current="page"]{background:var(--strong);color:var(--on-strong)}
.account{display:flex;align-items:center;gap:var(--s1);min-height:44px}
.account:empty{min-height:0}
.acct-nav{display:none}
nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;display:flex;background:var(--bg);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
nav.tabs a[data-r]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:var(--s2) 0;font-size:12px;color:var(--sub);text-decoration:none;min-height:var(--tabbar)}
nav.tabs a[data-r][aria-current="page"]{color:var(--text);font-weight:500}
nav.tabs svg{width:22px;height:22px}
main{padding:var(--s6) var(--s4) var(--s8);max-width:720px;margin:0 auto;outline:0}
.content{min-width:0}  /* main + 푸터. 탭바·떠 있는 버튼 아래 여백은 푸터가 가짐 */
@media(min-width:768px){
  .topbar-in{height:68px;padding:0 var(--s8)}
  .brand-logo{height:32px;max-width:240px}
  .acct-top{display:none}
  .acct-nav{display:flex}
  nav.tabs{position:static;border:0;padding:0;background:none;align-items:center;gap:var(--s1)}
  nav.tabs a[data-r]{flex:none;flex-direction:row;gap:var(--s2);font-size:15px;padding:0 var(--s3);border-radius:var(--r);min-height:44px}
  nav.tabs svg{width:18px;height:18px}
  nav.tabs a[data-r]:hover{background:var(--surface)}
  nav.tabs a[data-r][aria-current="page"]{background:var(--surface);color:var(--text)}
  .acct-nav{margin:0 var(--s2)}
  main{padding:var(--s8);width:100%;min-width:0}
  .content{display:flex;flex-direction:column;min-height:calc(100vh - 69px)}
  .content>main{flex:1 0 auto}
}
@media(min-width:1100px){main{max-width:1080px}.view-post,.view-write,.view-me,.view-stats,.view-login,.view-reset,.view-signup,.view-onboard,.view-reconsent,.view-terms,.view-privacy{max-width:720px;margin:0 auto}}

/* ───── 글자 ───── */
h1{font-size:24px;line-height:1.35;margin:0 0 var(--s4);font-weight:700}
h2{font-size:17px;margin:0 0 var(--s3);font-weight:700}
@media(min-width:768px){h1{font-size:28px}}
.meta{font-size:13px;color:var(--sub)}
.muted{color:var(--sub)}
.back{display:inline-flex;align-items:center;gap:var(--s1);min-height:44px;color:var(--sub);text-decoration:none;margin-left:-4px}
.back svg{width:20px;height:20px}

/* ───── 버튼·입력 ───── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 var(--s4);border-radius:var(--r);border:1px solid var(--line);font-weight:500;text-decoration:none;background:var(--bg)}
.btn:hover:not(:disabled){border-color:var(--text)}
.btn.strong{background:var(--strong);color:var(--on-strong);border-color:var(--strong)}
.btn.danger{background:var(--bg);color:var(--danger);border-color:var(--danger);font-weight:700}
.btn.small{min-height:36px;padding:0 var(--s3);font-size:14px}
.btn.block{display:flex;width:100%}
.btn[aria-busy="true"]{cursor:progress}
.link{color:var(--sub);text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:var(--r);color:var(--sub)}
.icon-btn:hover{background:var(--surface);color:var(--text)}
.field{margin-bottom:var(--s4)}
.field label,.label{display:block;font-size:13px;color:var(--sub);margin-bottom:var(--s1)}
.input,.select,.textarea{display:block;width:100%;min-height:44px;padding:0 var(--s3);border:1px solid var(--line);border-radius:var(--r);background:var(--bg);outline:0}
.textarea{padding:var(--s3);min-height:96px;resize:vertical;line-height:1.6}
.input:focus,.select:focus,.textarea:focus{border-color:var(--text)}
.input[aria-invalid="true"],.textarea[aria-invalid="true"],.select[aria-invalid="true"]{border-color:var(--err);border-width:2px}
.hint{font-size:13px;color:var(--sub);margin:var(--s1) 0 0}
.err{color:var(--err);font-size:13px;margin:var(--s1) 0 0;min-height:20px}
.err:not(:empty)::before{content:"! ";font-weight:700}
.ok-msg{color:var(--ok);font-size:13px;margin:var(--s1) 0 0}
.ok-msg:not(:empty)::before{content:"✓ ";font-weight:700}
/* 기본색(경고 #F55151·긍정 #75F08C)은 글자 대신 왼쪽 막대로. 글자는 진한 --err/--ok */
.err:not(:empty),.ok-msg:not(:empty){border-left:3px solid var(--err-base);padding-left:var(--s2)}
.ok-msg:not(:empty){border-left-color:var(--ok-base)}
.state.error p{color:var(--err)}
.check{display:flex;align-items:flex-start;gap:var(--s2);min-height:44px;padding:var(--s2) 0}
.check input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--strong)}
.form{max-width:420px}
.form .actions-row{display:flex;gap:var(--s2);margin-top:var(--s6)}
.seg{display:flex;gap:var(--s4);border-bottom:1px solid var(--line);margin-bottom:var(--s4);overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{flex:none;white-space:nowrap}
.seg button{padding:var(--s3) 0;color:var(--sub);border-bottom:2px solid transparent;margin-bottom:-1px;min-height:44px}
.seg button[aria-selected="true"]{color:var(--text);font-weight:500;border-color:var(--text)}

/* ───── 상태: 로딩 / 빈 / 오류 ───── */
.state{padding:var(--s8) 0;text-align:center;color:var(--sub);display:flex;flex-direction:column;align-items:center;gap:var(--s3)}
.state p{margin:0}
.spinner{width:22px;height:22px;border:2px solid var(--line);border-top-color:var(--text);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed;left:50%;bottom:calc(var(--tabbar) + 24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--strong);color:var(--on-strong);padding:var(--s3) var(--s4);border-radius:var(--r);font-size:14px;z-index:40;max-width:calc(100vw - 32px)}
@media(min-width:768px){.toast{bottom:var(--s8)}}

/* ───── 확인창 ───── */
.backdrop{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:var(--s4)}
.dialog{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:var(--r);padding:var(--s6);width:min(420px,100%)}
.dialog h2{font-size:18px;margin:0 0 var(--s2)}
.dialog-msg{margin:0 0 var(--s6);color:var(--sub);white-space:pre-line}
.dialog-actions{display:flex;justify-content:flex-end;gap:var(--s2)}

/* ───── 셸: 푸터 (js/shell/footer.js) ───── */
.site-footer{background:var(--footer-bg);border-top:1px solid var(--line);color:var(--sub);font-size:13px;line-height:1.6;padding:var(--s6) var(--s4) calc(var(--tabbar) + 80px + env(safe-area-inset-bottom,0px))}
.site-footer .ft-in{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:var(--s1)}
.ft-logos{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s6)}
.ft-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s3) var(--s6)}
.ft-home{display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:13px;font-weight:600;color:var(--text);text-decoration:none}
.ft-home-url{font-weight:400;color:var(--sub);text-decoration:underline;text-underline-offset:3px}
.ft-home:hover .ft-home-url{color:var(--text)}
@media(max-width:599px){.ft-home{align-items:flex-start}}
.ft-logo{display:inline-flex;align-items:center;height:52px;padding:0 var(--s2);margin-left:calc(var(--s2)*-1);border-radius:var(--r)}
.ft-logo img{display:block;height:34px;width:auto;max-width:260px}
.ft-logo-text{font-weight:700;color:var(--text);letter-spacing:.06em;font-size:20px}
a.ft-logo{text-decoration:none}
a.ft-logo:hover{opacity:.8}
.ft-links,.ft-meta{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--s4)}
.ft-links a,.ft-meta a,.ft-meta button{color:var(--sub);min-height:44px;display:inline-flex;align-items:center;text-underline-offset:3px}
.ft-links a{color:var(--text);text-decoration:none;font-weight:500}
.ft-links a:hover,.ft-meta a:hover,.ft-meta button:hover{text-decoration:underline}
.ft-meta button{text-decoration:underline}
.ft-copy{margin:0}
@media(min-width:768px){.site-footer{padding:var(--s6) var(--s8) 112px}}

/* ───── 셸: 쿠키 설정 (js/shell/cookies.js) ───── */
.dialog.ck{width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;padding-bottom:var(--s4)}
.ck-lead{margin:0 0 var(--s4);color:var(--sub);font-size:14px}
.ck-row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--s3);padding:var(--s3) 0;border-top:1px solid var(--line)}
.ck-row:last-of-type{border-bottom:1px solid var(--line)}
.ck-row b{display:block;font-size:15px}
.ck-row p{margin:2px 0 0;font-size:13px;color:var(--sub)}
.ck-switch{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:44px;cursor:pointer}
.ck-switch input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.ck-switch i{display:block;width:44px;height:26px;border-radius:13px;background:var(--line);position:relative;transition:background .15s}
.ck-switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--bg);transition:transform .15s}
.ck-switch input:checked+i{background:var(--strong)}
.ck-switch input:checked+i::after{transform:translateX(18px)}
.ck-switch input:focus-visible+i{outline:2px solid var(--text);outline-offset:2px}
.ck-switch input:disabled+i{opacity:.55}
.ck-switch:has(input:disabled){cursor:not-allowed}
.ck-note{font-size:13px;margin:var(--s3) 0 0}
.ck .dialog-actions{margin-top:var(--s4);align-items:center}
.ck .dialog-actions .link{margin-right:auto;font-size:14px}

/* ───── 셸: 의견 보내기 (js/shell/feedback.js) — 콘텐츠 위, 확인창(60)·토스트(40)·하이라이트 버튼(30) 아래 ───── */
.fb{position:fixed;z-index:25;right:var(--s4);bottom:calc(var(--tabbar) + var(--s4) + env(safe-area-inset-bottom,0px))}
.fb-toggle{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--strong);color:var(--on-strong);box-shadow:0 2px 10px rgba(0,0,0,.18)}
.fb-toggle svg{width:22px;height:22px}
.fb-panel{display:none;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 6px 24px rgba(0,0,0,.14);overflow:hidden}
.fb-bar{display:flex;align-items:flex-start;gap:var(--s2);padding:var(--s3) var(--s2) var(--s3) var(--s4);background:var(--strong);color:var(--on-strong)}
.fb-title{margin:0;flex:1;font-size:14px;line-height:1.5;font-weight:500;padding-top:10px}
.fb-head{flex:1;display:flex;align-items:flex-start;justify-content:space-between;gap:var(--s2);text-align:left;min-height:44px;color:inherit;font-size:14px;line-height:1.5;font-weight:500;padding:var(--s3) var(--s3) var(--s3) var(--s4)}
.fb-head svg{flex:none;width:20px;height:20px;margin-top:1px;transition:transform .15s}
.fb-head[aria-expanded="true"] svg{transform:rotate(180deg)}
.fb-head:focus-visible,.fb-close:focus-visible{outline-color:var(--on-strong);outline-offset:-4px}
.fb-close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r);color:inherit}
.fb-body{padding:var(--s4)}
.fb-body .textarea{min-height:110px}
.fb-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);margin-top:var(--s2)}
.fb-count{font-size:12px;color:var(--sub);font-variant-numeric:tabular-nums}
.fb-count.over{color:var(--err);font-weight:700}
.fb-body .err:empty,.fb-body .ok-msg:empty{display:none}
.fb-gate{margin:0 0 var(--s3);font-size:14px;color:var(--sub)}
/* 모바일: 둥근 버튼 → 탭하면 시트 */
.fb.open .fb-toggle{display:none}
.fb.open{left:var(--s3);right:var(--s3);bottom:calc(var(--tabbar) + var(--s3) + env(safe-area-inset-bottom,0px))}
.fb.open .fb-panel{display:block;max-height:calc(100vh - var(--tabbar) - 96px);overflow:auto}
.fb .fb-head{display:none}
/* PC: 오른쪽 아래 접히는 패널 */
@media(min-width:768px){
  .fb,.fb.open{left:auto;right:var(--s6);bottom:var(--s6);width:320px}
  .fb-toggle,.fb-bar{display:none}
  .fb-panel,.fb.open .fb-panel{display:block;background:var(--bg)}
  .fb .fb-head{display:flex;width:100%;background:var(--strong);color:var(--on-strong)}
  .fb:not(.expanded) .fb-body{display:none}
  .fb.expanded .fb-panel{max-height:calc(100vh - 48px);overflow:auto}
}
/* 하이라이트 버튼이 화면 아래 고정일 때는 겹치지 않게 숨김 */
body:has(.hl-pop.docked:not([hidden])) .fb{visibility:hidden}

/* ───── 피드 (프로토타입) ───── */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s3);border-bottom:1px solid var(--line);margin-bottom:var(--s4);padding-bottom:var(--s3)}
.top h1{margin:0}
.view-toggle{display:flex;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.view-toggle button{min-height:44px;padding:0 var(--s3);color:var(--sub);font-size:14px}
.view-toggle button[aria-pressed="true"]{background:var(--strong);color:var(--on-strong);font-weight:500}
.search{display:flex;align-items:center;gap:var(--s2);background:var(--surface);border-radius:var(--r);padding:0 var(--s3);height:44px;margin-bottom:var(--s4)}
.search input{flex:1;background:none;border:0;height:100%;outline:0;min-width:0}
.search:focus-within{outline:2px solid var(--text)}
.list{list-style:none;margin:0;padding:0}
.item{border-bottom:1px solid var(--line)}
.item a{display:block;padding:var(--s4) 0;text-decoration:none}
.item h3{margin:0 0 var(--s1);font-size:18px;line-height:1.4;font-weight:700}
.item p{margin:0 0 var(--s2);color:var(--sub);font-size:15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gallery{column-count:2;column-gap:var(--s3);list-style:none;margin:0;padding:0}
@media(min-width:1100px){.gallery{column-count:3;column-gap:var(--s6)}}
.cat{margin-bottom:var(--s8)}
.cat-h{display:inline-flex;align-items:center;gap:6px;min-height:44px;font:700 18px/1.4 var(--sans)}
.row{list-style:none;margin:0 calc(var(--s4)*-1);padding:0 var(--s4) var(--s2);display:flex;gap:var(--s3);overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
.row .tile{flex:0 0 156px;margin:0;scroll-snap-align:start}
@media(min-width:768px){.row{margin:0 calc(var(--s8)*-1);padding:0 var(--s8) var(--s2)}.row .tile{flex-basis:196px}}
.panels{display:grid;grid-template-columns:1fr;gap:var(--s6);align-items:start}
.panels .cat{margin:0}
@media(min-width:768px){.panels{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.panels{grid-template-columns:repeat(3,1fr)}}
.box{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.pi+.pi{border-top:1px solid var(--line)}
.pi a{display:flex;gap:var(--s3);align-items:center;padding:var(--s3);text-decoration:none;height:80px}   /* 모든 항목 같은 높이 */
.pi a:hover{background:var(--surface)}
.pi .th{flex:none;width:56px;height:56px;border-radius:var(--r);overflow:hidden}
.pi .cover{height:100%}
.pi .cover svg{height:100%}
.tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.tx b{font-size:14px;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tx span{font-size:13px;line-height:1.5;color:var(--sub);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.tile{break-inside:avoid;margin-bottom:var(--s6)}
.tile a{display:block;text-decoration:none}
.cover{display:block;border-radius:var(--r);background:var(--surface);overflow:hidden;color:var(--text)}
.cover svg{display:block;width:100%;height:auto;stroke:none;fill:currentColor}
.cover img{display:block;width:100%;height:100%;object-fit:cover}
.cover.text{aspect-ratio:4/5;position:relative;font-size:13px;background:var(--surface);border:1px solid var(--line)}   /* font-size 가 곧 여백 단위(1em = 글자 하나) */
.cover-text{position:absolute;inset:1em;overflow:hidden;font-family:var(--serif);font-size:inherit;line-height:1.7;color:var(--sub);word-break:keep-all;white-space:pre-line;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
.pi .cover.text{aspect-ratio:auto;width:100%;height:100%;font-size:6px;border:0}
.pi .cover-text{line-height:1.5}
.cover.photo{aspect-ratio:4/5}            /* 첫 이미지 썸네일: 패턴과 같은 4:5 비율 */
.pi .cover.photo{aspect-ratio:auto;height:100%}
.tile h3{margin:var(--s2) 0 2px;font-size:15px;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}   /* 제목이 한 줄이어도 두 줄 자리 → 모든 글 표기 높이가 같음 */
.tile .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.more{display:flex;justify-content:center;margin:var(--s6) 0}

/* ───── 글 읽기 ───── */
.article h1{font-size:28px}
.byline{display:flex;align-items:center;gap:var(--s2);margin-bottom:var(--s2)}
.post-tools{display:flex;flex-wrap:wrap;gap:var(--s2);margin:var(--s4) 0 var(--s6);padding:var(--s2) 0;border-block:1px solid var(--line)}
.body{font-family:var(--serif);font-size:17px;line-height:1.9;max-width:60ch;overflow-wrap:anywhere}
.body p{margin:0 0 1.2em;white-space:pre-wrap}
.body figure{margin:0 0 1.2em}
.body figure img{display:block;max-width:100%;height:auto;border-radius:var(--r);background:var(--surface)}
.body figcaption{font:13px/1.5 var(--sans);color:var(--sub);margin-top:var(--s1)}
/* 하이라이트: 내 것 = 밑줄 + 옅은 바탕, 다른 독자 농도 = 바탕 투명도 (--a: 0.1~1.0) */
mark.hl{color:inherit;background:none;padding:0;border-radius:2px}
mark.hl-heat{background:rgba(var(--hl),calc(var(--a,0) * var(--hl-max)))}
mark.hl-mine{text-decoration:underline 2px var(--mine);text-underline-offset:4px;background-color:rgba(var(--hl),calc(.35 * var(--hl-max)))}
/* 비판적 사고하기 켜짐: 색 = 다른 독자 농도만, 내 것 = 밑줄만 (섞여 보이지 않게) */
.body.critical-on mark.hl-mine:not(.hl-heat){background:none}
.heat-scale{display:inline-flex;align-items:center;gap:6px;margin-top:var(--s1);font-size:12px;color:var(--sub)}
.heat-scale i{display:inline-block;width:20px;height:12px;border-radius:2px;border:1px solid var(--line)}
mark.hl-mine.hl-heat{background:rgba(var(--hl),calc(var(--a,0) * var(--hl-max)))}
mark.hl-mine:focus-visible{outline:2px solid var(--text)}
.hl-pop{position:absolute;z-index:30;display:flex;gap:var(--s1);background:var(--strong);color:var(--on-strong);border-radius:var(--r);padding:var(--s1);box-shadow:0 4px 16px rgba(0,0,0,.18)}
.hl-pop button{min-height:40px;padding:0 var(--s3);color:inherit;font-size:14px;font-weight:500;border-radius:4px}
.hl-pop button:hover,.hl-pop button:focus-visible{background:rgba(127,127,127,.25);outline-color:var(--on-strong)}
/* "비판적 사고하기": 좌하단 고정, 모바일은 탭바 위 */
.critical{position:fixed;left:var(--s4);bottom:calc(var(--tabbar) + var(--s4) + env(safe-area-inset-bottom,0px));z-index:20;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 var(--s4);border-radius:22px;border:1px solid var(--line);background:var(--bg);font-size:14px;font-weight:500;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.critical[aria-pressed="true"]{background:var(--strong);color:var(--on-strong);border-color:var(--strong)}
@media(min-width:768px){.critical{left:var(--s6);bottom:var(--s6)}}
.legend{font-size:13px;color:var(--sub);margin:0 0 var(--s4)}
.comments{margin-top:var(--s8)}
.cmt{padding:var(--s3) 0;border-bottom:1px solid var(--line);font-size:15px}
.cmt-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s2)}
.cmt-head b{font-weight:500}
.cmt-body{margin:var(--s1) 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.cmt-form{display:flex;flex-direction:column;gap:var(--s2);margin-top:var(--s4)}
.cmt-form .row-end{display:flex;justify-content:space-between;align-items:center}

/* ───── 아바타 ───── */
.av{width:64px;height:64px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;font-size:22px;font-weight:700;overflow:hidden;flex:none}
.av img{width:100%;height:100%;object-fit:cover}
.av.sm{width:28px;height:28px;font-size:12px}

/* ───── 글쓰기 ───── */
.editor .ttl{width:100%;border:0;border-bottom:1px solid var(--line);background:none;font:700 24px/1.4 var(--sans);padding:var(--s2) 0;outline:0}
.editor .ttl:focus{border-color:var(--text)}
/* 제목 글자 수 */
.ttl-head{display:flex;align-items:baseline;justify-content:space-between;margin-top:var(--s4)}
.ttl-count{font-size:12px;color:var(--sub);font-variant-numeric:tabular-nums}
/* 서식 도구 막대 (글을 내려도 위에 붙어 있음) */
.rte-bar{position:sticky;top:61px;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-top:var(--s4);padding:var(--s1);background:var(--bg);border:1px solid var(--line);border-radius:var(--r) var(--r) 0 0}
.tb-btn{min-width:40px;min-height:36px;padding:0 var(--s2);border:0;border-radius:6px;background:none;color:var(--text);font:500 14px/1 var(--sans);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.tb-btn b{font-size:16px;font-weight:800}
.tb-btn i{font:italic 600 17px/1 var(--serif)}
.tb-btn:hover{background:var(--surface)}
.tb-btn[aria-pressed="true"]{background:var(--strong);color:var(--on-strong)}
.tb-btn:disabled{opacity:.45;cursor:default}
.tb-btn svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tb-sep{width:1px;height:20px;background:var(--line);margin:0 var(--s1)}
.tb-count{margin-left:auto;padding-right:var(--s2)}
/* 본문 편집기 */
.rte{position:relative;min-height:320px;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r) var(--r);padding:var(--s4);font:400 17px/1.9 var(--serif);outline:0;overflow-wrap:anywhere;white-space:pre-wrap}
.rte:focus{border-color:var(--text)}
.rte.drop{outline:2px dashed var(--text);outline-offset:-6px;background:var(--surface)}
.rte.is-empty::before{content:attr(data-placeholder);position:absolute;color:var(--sub);pointer-events:none}
.rte > div,.rte > p{margin:0;min-height:1.9em}
.rte h2,.body h2.rh{font:700 22px/1.5 var(--sans);margin:1em 0 .4em}
.rte h3,.body h3.rh{font:700 18px/1.5 var(--sans);margin:.9em 0 .3em}
.rte blockquote,.body blockquote.rq{margin:.6em 0;padding:.2em 0 .2em 1em;border-left:3px solid var(--text);color:var(--sub);font-style:normal}
.body blockquote.rq{white-space:pre-wrap;margin:0 0 1.2em}
.rte figure.rte-img{margin:var(--s3) 0;padding:var(--s2);border:1px solid var(--line);border-radius:var(--r);display:flex;flex-direction:column;gap:var(--s2);white-space:normal;user-select:none}
.rte figure.rte-img img{display:block;align-self:center;max-width:100%;max-height:360px;height:auto;object-fit:contain;border-radius:4px;background:var(--surface)}
.rte figure.rte-img .input{font:14px/1.4 var(--sans);user-select:text}
.fig-tools{display:flex;gap:var(--s1);justify-content:flex-end}
.body strong,.rte strong,.rte b{font-weight:800}
.body em,.rte em,.rte i{font-style:italic}
/* 올리는 중 막대 */
.up-box{margin-top:var(--s2);padding:var(--s2) var(--s3);border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.up-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);font-size:13px}
.up-cancel{width:32px;height:32px}
.up-bar{display:block;width:100%;height:6px;margin-top:var(--s1);appearance:none;border:0;border-radius:3px;background:var(--line);overflow:hidden}
.up-bar::-webkit-progress-bar{background:var(--line);border-radius:3px}
.up-bar::-webkit-progress-value{background:var(--strong);border-radius:3px;transition:width .2s}
.up-bar::-moz-progress-bar{background:var(--strong);border-radius:3px}
/* 이미지 넣을 위치 고르기 */
.dialog.slot-dialog{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto}
.slot-new{display:flex;gap:var(--s2);flex-wrap:wrap;margin-bottom:var(--s3)}
.slot-new img{width:64px;height:64px;object-fit:cover;border-radius:6px;background:var(--surface)}
.slot-list{display:flex;flex-direction:column;gap:var(--s1);margin-bottom:var(--s4)}
.slot{width:100%;min-height:36px;border:1px dashed var(--line);border-radius:6px;background:none;color:var(--sub);font:13px/1 var(--sans);cursor:pointer}
.slot:hover,.slot:focus-visible{border-color:var(--text);color:var(--text);background:var(--surface)}
.slot.def{border-style:solid;border-color:var(--text);color:var(--text)}
.slot-unit{padding:var(--s2) var(--s3);border-radius:6px;background:var(--surface);font:14px/1.6 var(--serif);white-space:pre-line;color:var(--text);display:flex;gap:var(--s2);align-items:flex-start}
.slot-unit.img img{width:48px;height:48px;object-fit:cover;border-radius:4px}
.slot-unit.img span{font:13px/1.4 var(--sans);color:var(--sub)}
.slot-tag{flex:none;font:600 11px/1.8 var(--sans);padding:0 6px;border-radius:4px;border:1px solid var(--line);color:var(--sub)}
.slot-tx{overflow-wrap:anywhere}
/* 카테고리 칩 */
.chips{display:flex;flex-wrap:wrap;gap:var(--s2);margin-top:var(--s2)}
.chip,.field label.chip{position:relative;display:inline-flex;margin:0;align-items:center;min-height:36px;padding:0 var(--s3);border:1px solid var(--line);border-radius:18px;font-size:14px;line-height:1;cursor:pointer;user-select:none;background:none;color:var(--text);text-decoration:none}
.chip:hover{background:var(--surface)}
.chip-in{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.chip:has(.chip-in:checked),.chip[aria-pressed="true"],.chip[aria-current="true"]{background:var(--strong);color:var(--on-strong);border-color:var(--strong)}
.chip:has(.chip-in:focus-visible){outline:2px solid var(--text);outline-offset:2px}
.chip.off{opacity:.45;cursor:default}
.write-subs{margin-top:var(--s3)}
.write-subs-label{margin:0;font-size:14px;font-weight:600}
.feed-cats{margin:0 0 var(--s4);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.feed-cats::-webkit-scrollbar{display:none}
.feed-cats .chip{flex:none}
.feed-subs{margin:0 0 var(--s4)}
.chip.small{min-height:32px;font-size:13px;padding:0 var(--s3)}
.tile-topic{display:block;margin-top:var(--s2);font-size:12px;font-weight:600;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile-topic + h3{margin-top:2px}
.post-topic{margin:var(--s3) 0 0;font-size:13px;color:var(--sub);font-weight:600}
.editor-bar{position:sticky;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom,0px));background:var(--bg);display:flex;align-items:center;justify-content:space-between;gap:var(--s2);padding:var(--s3) 0;border-top:1px solid var(--line);margin-top:var(--s4)}
@media(min-width:768px){.editor-bar{bottom:0}.rte-bar{top:69px}}
.progress{height:4px;background:var(--line);border-radius:2px;overflow:hidden}
.progress>span{display:block;height:100%;background:var(--text);width:0}

/* ───── 내 블로그·통계 ───── */
.me-head{display:flex;gap:var(--s4);align-items:center;margin-bottom:var(--s4)}
.me-head h1{margin:0}
.stat-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--s3);margin:var(--s4) 0 var(--s6)}
.stat-card{border:1px solid var(--line);border-radius:var(--r);padding:var(--s4)}
.stat-card b{display:block;font-size:24px;line-height:1.2}
.stat-card span{font-size:13px;color:var(--sub)}
.bar-row{display:grid;grid-template-columns:1fr auto;gap:var(--s1) var(--s3);padding:var(--s3) 0;border-bottom:1px solid var(--line)}
.bar-row q{font-family:var(--serif);quotes:"\201C" "\201D"}
.bar-track{grid-column:1/-1;height:6px;background:var(--surface);border-radius:3px;overflow:hidden}
.bar-track>span{display:block;height:100%;background:rgba(var(--hl),1)}

/* ───── 약관 ───── */
.legal{line-height:1.8}
.legal h2{margin-top:var(--s6)}
.legal p{margin:0 0 var(--s2);word-break:keep-all}
.legal .legal-item{padding-left:var(--s3)}
.legal-intro{color:var(--sub)}
.notice{border:1px solid var(--line);border-radius:var(--r);padding:var(--s4);margin:0 0 var(--s6);background:var(--surface)}

@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ── views/auth ── */
.steps{list-style:none;display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4);margin:0 0 var(--s6);padding:0 0 var(--s3);border-bottom:1px solid var(--line);font-size:13px;color:var(--sub)}
.steps li[aria-current="step"]{color:var(--text);font-weight:700}
.steps-n{font-variant-numeric:tabular-nums}
.fieldset{border:0;margin:0 0 var(--s4);padding:0;min-width:0}
.fieldset legend{padding:0}
.radio-row{display:flex;gap:var(--s6)}
.check label{cursor:pointer}
.check>span{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--s2)}
.check .inline-link{font-size:14px;min-height:44px;margin:-12px 0}
.notice-text{margin:0}
.notice h2{margin-top:0}
.notice .btn{margin-top:var(--s3)}
.auth-alt{margin-top:var(--s6)}

/* ── views/write ── */
.editor .write-cat{margin-top:var(--s4)}
.write-cat-msg{display:flex;align-items:center;gap:var(--s2)}
.write-cat-msg .err:empty{display:none}
.write-add{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
.write-add .btn svg{width:20px;height:20px}
.write-upload{margin:var(--s2) 0 0;min-height:20px}
.write-state{display:flex;align-items:center;gap:var(--s2);min-width:0;flex-wrap:wrap}
.write-state .link{font-size:13px}
.write-actions{display:flex;gap:var(--s2);flex:none}
.editor-bar{z-index:4}
.write-bar-err:empty{display:none}

/* ── views/feed·me·stats ── */
.cat h2{font-size:18px;margin:0 0 var(--s3)}
.cat-h svg{flex:none}
.feed-gallery-h{font-size:18px;margin:var(--s2) 0 var(--s3);outline:0}
.feed-body .gallery{margin-top:var(--s2)}
.feed-body .more .state{padding:0}
.me-id{min-width:0}
.me-bio{margin-top:2px;white-space:pre-line;overflow-wrap:anywhere}
.me-bio .link{min-height:0;display:inline}
.me-stats{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);margin:var(--s3) 0 var(--s4);font-size:14px;color:var(--sub)}
.me-stats b{color:var(--text);font-weight:700;margin-right:2px}
.me-edit{border:1px solid var(--line);border-radius:var(--r);padding:var(--s4);margin:0 0 var(--s6)}
.me-edit .field:last-child{margin-bottom:0}
.me-actions{display:flex;flex-wrap:wrap;gap:var(--s2);align-items:center}
.me-count{text-align:right}
.me-item{display:flex;align-items:flex-start;gap:var(--s2)}
.me-item>a:first-child{flex:1;min-width:0}
.me-stat-link{flex:none;display:inline-flex;align-items:center;gap:var(--s1);min-height:44px;min-width:44px;justify-content:center;margin-top:var(--s3);padding:0 var(--s2);border-radius:var(--r);font-size:13px;color:var(--sub);text-decoration:none}
.me-stat-link:hover{background:var(--surface);color:var(--text)}
.me-account{margin-top:var(--s8);padding-top:var(--s4);border-top:1px solid var(--line);font-size:14px}
.stats-post{margin:calc(var(--s3)*-1) 0 0;font-size:15px;overflow-wrap:anywhere}
.stats-list .bar-row q{overflow-wrap:anywhere}
.bar-count{font-size:14px;white-space:nowrap}
.bar-ratio{grid-column:1/-1}
.stats-note{margin:var(--s6) 0 0}

/* ── views/post ── */
.byline-tx{display:flex;flex-direction:column;line-height:1.4;min-width:0}
.byline-tx b{font-weight:500;font-size:15px}
.post-tools .btn svg{width:18px;height:18px}
.post-draft{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s2);margin:var(--s4) 0}
.post-draft p{margin:0}
.hl-author-hint{margin:0 0 var(--s4)}
.hl-author-hint .link{min-height:44px}
.legend{border-left:3px solid rgba(var(--hl),var(--hl-max));padding-left:var(--s2)}
mark.hl-mine{cursor:pointer}
mark.hl-heat{-webkit-box-decoration-break:clone;box-decoration-break:clone}
.hl-pop button{display:inline-flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap}
.hl-pop svg{width:18px;height:18px}
.critical svg{width:18px;height:18px}
.view-post{padding-bottom:72px}
.comments h2{margin-bottom:var(--s2)}
.cmt-who{display:flex;align-items:center;gap:var(--s2);min-width:0;flex-wrap:wrap}
.cmt-tools{display:flex;gap:var(--s3);flex:none}
.cmt-tools .link{font-size:13px}
.cmt-empty{padding:var(--s4) 0;margin:0}
.cmt-gate{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3);padding:var(--s4) 0}
.cmt-gate p{margin:0}
.cmt-actions{display:flex;gap:var(--s2)}
.cmt-edit{margin-top:var(--s2)}
.cmt-form .err:empty{display:none}
/* 가로 목록: 스크롤 스냅이 첫 타일을 화면 끝에 붙이지 않게 (본문 여백과 맞춤) */
.feed-body .row{scroll-padding-inline:var(--s4)}
@media(min-width:768px){.feed-body .row{scroll-padding-inline:var(--s8)}}

/* ── views/settings ── */
.settings-section{margin-bottom:var(--s8)}
.font-list{display:grid;grid-template-columns:1fr;gap:var(--s2);margin:var(--s4) 0}
@media(min-width:768px){.font-list{grid-template-columns:repeat(2,1fr)}}
.font-option{display:flex;align-items:center;gap:var(--s3);min-height:56px;padding:var(--s3);border:1px solid var(--line);border-radius:var(--r);cursor:pointer}
.font-option:hover{border-color:var(--text)}
.font-option:has(input:checked){border-color:var(--text);border-width:2px;padding:calc(var(--s3) - 1px)}
.font-option input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--strong)}
.font-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.font-text b{font:500 13px/1.4 "A2z",system-ui,sans-serif;color:var(--sub)}
.font-sample{font-size:18px;line-height:1.5}
.font-preview{font-family:var(--serif);font-size:17px;line-height:1.9;padding:var(--s4);border:1px solid var(--line);border-radius:var(--r);background:var(--surface);margin:var(--s1) 0 var(--s4)}
.set-choices{display:grid;grid-template-columns:1fr;gap:var(--s2);margin:var(--s4) 0}
@media(min-width:768px){.set-choices{grid-template-columns:repeat(3,1fr)}}
.font-text b.set-choice-name{font-size:15px;color:var(--text)}
.set-note{margin:0 0 var(--s6)}
.set-list{list-style:none;margin:0 0 var(--s6);padding:0;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.set-list li+li{border-top:1px solid var(--line)}
.set-row{display:flex;align-items:center;gap:var(--s3);width:100%;min-height:56px;padding:var(--s3) var(--s4);text-decoration:none;text-align:left;color:var(--text)}
a.set-row:hover,button.set-row:hover:not(:disabled){background:var(--surface)}
.set-row:focus-visible{outline-offset:-2px}
.set-row>svg{flex:none;color:var(--sub)}
.set-row[aria-disabled="true"]{color:var(--sub);cursor:default}
.set-label{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.set-name{font-weight:500}
.set-desc{font-size:13px;color:var(--sub)}
.set-badge{flex:none;font-size:12px;color:var(--sub);border:1px solid var(--line);border-radius:999px;padding:2px var(--s2)}
.set-section{padding:var(--s6) 0;border-bottom:1px solid var(--line)}
.set-section h2{font-size:17px;margin:0 0 var(--s3)}
.set-value{margin:0;font-weight:500;word-break:break-all}
.set-value+.form,.set-value+.set-done{margin-top:var(--s4)}
.set-section .btn{margin-top:var(--s3)}
.set-section .form .actions-row{margin-top:var(--s2)}
.set-done:focus{outline:0}
.set-profile-link{margin-top:var(--s4)}
.set-danger{margin-top:var(--s8);border:2px solid var(--err-base,#F55151);border-radius:var(--r);padding:var(--s4)}
.set-danger h2{color:var(--err,#B3261E);font-weight:700;font-size:18px;margin:0 0 var(--s1)}
.set-danger-lead{margin:0 0 var(--s2);font-size:14px;color:var(--sub)}
.set-danger-item{padding:var(--s4) 0 0;border-top:1px solid var(--line);margin-top:var(--s4)}
.set-danger-item h3{font-size:16px;margin:0 0 var(--s2);color:var(--err,#B3261E);font-weight:700}
.set-key{color:var(--err,#B3261E);font-weight:700;margin:0 0 var(--s2)}
.set-danger-text{margin:0 0 var(--s3);padding-left:var(--s4);font-size:14px;color:var(--text)}
p.set-danger-text{padding-left:0}
.set-danger-actions{display:flex;flex-wrap:wrap;gap:var(--s2)}
.set-dialog .dialog-msg{color:var(--err,#B3261E);font-weight:700}
.set-typed .field{margin-bottom:var(--s6)}
.legal-links{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:0 var(--s4)}

/* 터치 기기: 하이라이트 버튼을 화면 아래(탭바 위)에 고정 — 기본 선택 메뉴와 겹치지 않게 (views/post.js place) */
.hl-pop.docked{position:fixed;left:50%;right:auto;top:auto;transform:translateX(-50%);bottom:calc(var(--tabbar) + var(--s3) + env(safe-area-inset-bottom,0px));padding:var(--s1)}
.hl-pop.docked button{min-height:48px;padding:0 var(--s6);font-size:15px}
@media(min-width:768px){.hl-pop.docked{bottom:calc(var(--s6) + env(safe-area-inset-bottom,0px));left:50%}}
.hl-docked .critical{visibility:hidden}

/* ── views/report ── */
.report-dialog{width:min(460px,100%);max-height:calc(100dvh - 2 * var(--s4));overflow-y:auto;padding:var(--s6) var(--s4)}
@media(min-width:768px){.report-dialog{padding:var(--s6)}}
.report-target{margin:0 0 var(--s4);color:var(--sub);font-size:14px;overflow-wrap:anywhere}
.report-reasons{margin:0}
.report-reasons legend{margin-bottom:var(--s1)}
.report-reason{display:flex;align-items:center;gap:var(--s3);min-height:44px;cursor:pointer;font-size:15px}
.report-reason input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--strong)}
.report-dialog .err:empty{display:none}
.report-detail{margin-top:var(--s3)}
.report-detail-foot{display:flex;justify-content:flex-end;margin-top:var(--s1)}
.report-guide{font-size:13px}
.report-dialog .dialog-actions{margin-top:var(--s2)}
.byline .post-report{margin-left:auto;gap:4px;padding:0 var(--s2);min-width:44px;justify-content:center;font-size:13px;text-decoration:none;flex:none}
.byline .post-report:hover{color:var(--text)}
.av.av-gone{background:none;border-style:dashed}
.cmt-head b.cmt-gone{font-weight:400;color:var(--sub)}

/* ── views/blog·follow ── */
.feed-top{align-items:flex-end;padding-bottom:0}
.feed-tabs{border-bottom:0;margin-bottom:-1px}
.feed-tabs button{padding:var(--s3) var(--s1)}
.feed-top .view-toggle{margin-bottom:var(--s2)}
.feed-follow-gate .btn{min-width:120px}
.feed-like{white-space:nowrap;position:relative}   /* 안의 .sr(절대 위치)이 가로 목록 밖으로 새어 페이지 가로 스크롤을 만들지 않게 */
.tx .feed-like,.tx .feed-like span{display:inline}
.blog-stats{flex-wrap:wrap}
.blog-counts{margin:0;min-width:0}
.blog-counts b{font-variant-numeric:tabular-nums}
.blog-follow{min-width:88px}
.blog-follow[aria-pressed="true"]{background:var(--bg);color:var(--text);border-color:var(--text)}
.blog-list-h{font-size:18px;margin:var(--s6) 0 0;padding-bottom:var(--s2);border-bottom:1px solid var(--line)}
.blog-missing h1{font-size:22px;margin:0}

/* ── views/likes ── */
/* 글 상세: 좋아요·저장 줄 (프로토타입 .actions) */
.lk-actions{display:flex;flex-wrap:wrap;gap:var(--s2);margin:var(--s4) 0 var(--s6);padding:var(--s2) 0;border-block:1px solid var(--line)}
.lk-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;padding:0 var(--s3);border-radius:var(--r);color:var(--sub);font-size:15px}
.lk-btn:hover:not(:disabled){background:var(--surface);color:var(--text)}
.lk-btn[aria-pressed="true"]{color:var(--text);font-weight:500}
.lk-btn svg{width:20px;height:20px;flex:none}
.lk-btn[aria-pressed="true"] svg{fill:currentColor}
.lk-btn[aria-busy="true"]{cursor:progress}
.lk-n{font-variant-numeric:tabular-nums}
.lk-own{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 var(--s2);font-size:14px;color:var(--sub);font-variant-numeric:tabular-nums}
.lk-own svg{fill:currentColor}
/* 작성자 이름 → 작가 블로그. 줄 높이는 그대로, 누르는 영역만 44px */
.byline-tx .lk-author{align-self:flex-start;color:inherit;text-decoration:none;padding-block:12px;margin-block:-12px}
.byline-tx .lk-author:hover b,.byline-tx .lk-author:focus-visible b{text-decoration:underline;text-underline-offset:3px}
/* 내 블로그: 글·팔로워·팔로잉 수, 좋아요 수 공개 스위치, 저장한 글 */
.lk-me-counts{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;min-width:0}
.lk-setting{margin-top:var(--s4);padding-top:var(--s4);border-top:1px solid var(--line)}
.lk-setting-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);cursor:pointer;margin:0;color:var(--text);font-size:15px}
.lk-setting-tx{display:flex;flex-direction:column;min-width:0}
.lk-setting-tx b{font-weight:500}
.lk-switch{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:44px}
.lk-switch input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.lk-switch i{display:block;width:44px;height:26px;border-radius:13px;background:var(--line);position:relative;transition:background .15s}
.lk-switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--bg);transition:transform .15s}
.lk-switch input:checked+i{background:var(--strong)}
.lk-switch input:checked+i::after{transform:translateX(18px)}
.lk-switch input:focus-visible+i{outline:2px solid var(--text);outline-offset:2px}
.lk-switch input:disabled{cursor:not-allowed}
.lk-switch input:disabled+i{opacity:.55}
.lk-saved .lk-unsave{flex:none;min-height:44px;margin-top:var(--s3)}
.lk-gone{flex:1;min-width:0;padding:var(--s4) 0}
.lk-gone p{margin:0 0 var(--s1);display:block}
/* 글 통계: 카드 3개 (하이라이트·참여한 독자·좋아요) */
.stat-cards.lk-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:400px){.stat-cards.lk-cards{gap:var(--s2)}.stat-cards.lk-cards .stat-card{padding:var(--s3)}}
@media(prefers-reduced-motion:reduce){.lk-switch i,.lk-switch i::after{transition:none}}
.stat-cards.lk-cards .stat-card span{word-break:keep-all}

/* ── auth·analytics ── */
/* 이메일 6자리 코드 (views/auth.js, views/settings.js) */
.code-step h2{margin:0 0 var(--s2)}
.code-step>p{margin:0 0 var(--s2)}
.code-email{color:var(--sub);overflow-wrap:anywhere}
.code-email b{color:var(--text);font-weight:500}
.code-step .input,#acc-email-code{font-size:20px;letter-spacing:.3em;font-variant-numeric:tabular-nums;max-width:220px}
.code-resend{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3);margin-top:var(--s4)}
.code-resend .btn{font-variant-numeric:tabular-nums}
.code-status{margin:0}
.auth-confirm:empty{display:none}
.auth-confirm{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s2);margin:var(--s2) 0 var(--s3)}
.code-note{font-size:14px}
/* 방문 통계 동의 막대 (shell/analytics.js) — 막지 않음. 모바일: 의견 버튼(탭바 위 48px) 위, PC: 왼쪽 메뉴 칸 아래 */
.ac-bar{position:fixed;z-index:24;left:var(--s3);right:var(--s3);bottom:calc(var(--tabbar) + var(--s4) + 48px + var(--s3) + env(safe-area-inset-bottom,0px));display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3);padding:var(--s3);background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 4px 16px rgba(0,0,0,.14)}
.ac-text{margin:0;flex:1 1 220px;font-size:13px;line-height:1.5}
.ac-text .inline-link{min-height:0;display:inline;font-size:13px}
.ac-actions{display:flex;gap:var(--s2);flex:1 1 auto;justify-content:flex-end}
.ac-actions .btn{flex:1 1 0;min-height:44px;min-width:88px}
body:has(.fb.open) .ac-bar,body.modal-open .ac-bar,body:has(.view-onboard) .ac-bar,body:has(.view-login) .ac-bar,body:has(.view-signup) .ac-bar,body:has(.view-reset) .ac-bar{visibility:hidden}  /* 나들목 가입 화면은 체크박스(선택)로 따로 물음 */
.check .hint.block{display:block}
@media(min-width:768px){
  /* 왼쪽 아래 '비판적 사고하기' 버튼(높이 44) 위에 놓아 겹치지 않게 */
  .ac-bar{left:var(--s6);right:auto;width:176px;bottom:calc(var(--s6) + 44px + var(--s3));flex-direction:column;align-items:stretch;padding:var(--s3)}
  .ac-text{flex:none}
  .ac-actions{flex:none;flex-direction:column}
  .ac-actions .btn{flex:none;width:100%;min-width:0}
}

/* ── 로그인·회원가입: 가운데 정렬 (입력 칸 라벨은 왼쪽 그대로) ── */
.view-login,.view-reset,.view-signup{max-width:420px;margin:0 auto;text-align:center}
.view-login .seg{justify-content:center}
.view-login .form,.view-reset .form,.view-signup .form{margin:0 auto;text-align:left}
.view-login .auth-confirm,.view-signup .auth-confirm{align-items:center;text-align:center}
.view-signup .muted{white-space:pre-line;word-break:keep-all}
.code-step{text-align:center}
.code-step .form{margin:0 auto;text-align:left}
.code-step .code-resend{display:flex;flex-direction:column;align-items:center}

/* ── 셸: 사용자 가이드 (js/shell/guide.js) — 뒷배경은 회색으로 살짝 어둡게 ── */
body:has(.guide-backdrop) .fb,body:has(.guide-backdrop) .write-fab{visibility:hidden}
.guide-backdrop{background:rgba(56,56,59,.55);backdrop-filter:grayscale(.6)}
.dialog.guide{width:min(420px,100%);padding:0;overflow:hidden;text-align:left;border-radius:20px}
.guide-top{position:relative}
.guide-art{display:grid;place-items:center;height:220px;padding:var(--s6) var(--s6) var(--s4)}
.guide-art.tone-a{background:#E8E1C8}.guide-art.tone-b{background:#EFE6C2}.guide-art.tone-c{background:#E4E4DA}.guide-art.tone-d{background:#EDE3CF}
.guide-svg{width:100%;max-width:280px;height:auto}
/* 가이드 모션(Lottie, js/guide-motion/): 다른 쪽과 같은 높이(220px) 안에 비율 그대로 맞춤. 양옆 여백은 모션 바탕색(#FFFEF5)과 같게. 못 불러오면 도형 그림(.is-fallback) */
.guide-art.has-motion{display:block;padding:0;overflow:hidden;background:#FFFEF5}
.guide-art.has-motion:has(.is-fallback){display:grid;padding:var(--s6) var(--s6) var(--s4);background:#EFE6C2}
.guide-motion{width:100%;height:220px;line-height:0}
.guide-motion svg{display:block;width:100%;height:100%}
.guide-motion.is-fallback{display:grid;place-items:center;line-height:normal}
.guide-svg .s{fill:#38383B}.guide-svg .w{fill:#FFFDF5}.guide-svg .b{fill:#C9C0A6}.guide-svg .hl{fill:#F2C14E}.guide-svg .hl.o{opacity:.5}
.guide-svg .l{fill:none;stroke:#38383B;stroke-width:3;stroke-linecap:round}.guide-svg .l.s2{stroke:#F2C14E;stroke-width:4}
.guide-skip{position:absolute;top:var(--s3);right:var(--s4);font-size:14px;color:#38383B;padding:var(--s2)}
.guide-main{padding:var(--s6)}
.guide-title{font-size:21px;line-height:1.4;margin:0 0 var(--s2);outline:0}
.guide-body{margin:0 0 var(--s6);color:var(--sub);line-height:1.7;min-height:6.8em;word-break:keep-all}
.guide-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--s3)}
.guide-dots{list-style:none;display:flex;gap:6px;margin:0;padding:0}
.guide-dots li{width:8px;height:8px;border-radius:4px;background:var(--line);transition:width .2s}
.guide-dots li.on{width:22px;background:var(--strong)}
.guide-actions{display:flex;gap:var(--s2)}
.guide-actions .btn{min-width:84px}

/* ── 홈: 떠 있는 글쓰기 버튼 (views/feed.js) — 오른쪽·아래 여백을 같게, 의견 버튼(패널)은 그 왼쪽. 동의 띠(.ac-bar)·확인창 아래 ── */
:root{--fab-w:112px}
.write-fab{position:fixed;z-index:23;right:var(--s4);bottom:calc(var(--tabbar) + var(--s4) + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;justify-content:center;gap:6px;width:var(--fab-w);min-height:48px;padding:0 var(--s3);border-radius:24px;background:var(--strong);color:var(--on-strong);font-size:15px;font-weight:500;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.write-fab svg{width:20px;height:20px}
body:has(.write-fab) .fb:not(.open){right:calc(var(--s4) + var(--fab-w) + var(--s3))}
@media(min-width:768px){
  .write-fab{right:var(--s6);bottom:var(--s6)}
  body:has(.write-fab) .fb,body:has(.write-fab) .fb.open{right:calc(var(--s6) + var(--fab-w) + var(--s3))}
}
@media(max-width:767px){body:has(.fb.open) .write-fab{visibility:hidden}}  /* 모바일 의견 시트는 화면 폭 전체 */

/* ── 내 나들목: 하이라이트한 문장 ── */
.me-quote{margin:0 0 var(--s1);padding-left:var(--s3);border-left:3px solid rgba(var(--hl),var(--hl-max));font-family:var(--serif);font-size:16px;line-height:1.7;white-space:pre-wrap;word-break:keep-all}
.me-quotes a{text-decoration:none;display:block}
.me-quotes a:hover .me-quote{text-decoration:underline;text-underline-offset:3px}

/* ── 알림 벨 (app.js 계정 영역) · 알림 목록 (views/notifications.js) ── */
.bell{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:50%;color:var(--text);text-decoration:none}
.bell svg{display:block;width:20px;height:20px}
.bell:hover,.bell[aria-current="page"]{background:var(--surface)}
.bell-badge{position:absolute;top:3px;right:1px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--err);color:var(--bg);font:700 11px/18px var(--sans);text-align:center;font-variant-numeric:tabular-nums}
.notif-list .item{padding:0}
.notif-list a{display:flex;align-items:flex-start;gap:var(--s3);padding:var(--s3) var(--s2);text-decoration:none}
.notif-list a:hover{background:var(--surface)}
.notif-dot{flex:none;width:8px;height:8px;margin-top:9px;border-radius:50%;background:transparent}
.notif.unread .notif-dot{background:var(--err)}
.notif-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.notif-line{font-size:15px;line-height:1.5;word-break:keep-all}
.notif.unread .notif-line{font-weight:700}
.notif-snippet{font-size:14px;color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── 공지사항: 홈 띠 · 목록 · 관리 (views/feed.js, notices.js, admin.js) ── */
.notice-bar{display:flex;align-items:center;gap:var(--s2);margin:0 0 var(--s3);padding:var(--s1) var(--s1) var(--s1) var(--s3);border:1px solid var(--line);border-left:4px solid var(--strong);border-radius:var(--r);background:var(--surface)}
.notice-tag{flex:none;display:inline-block;padding:1px 8px;border-radius:999px;background:var(--strong);color:var(--on-strong);font-size:12px;font-weight:700}
.notice-link{flex:1;min-width:0;min-height:44px;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;font-size:15px;font-weight:500}
.notice-link:hover{text-decoration:underline;text-underline-offset:3px}
.notice-close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r);color:var(--sub)}
.notice-close:hover{background:var(--bg);color:var(--text)}
.notice-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);margin-bottom:var(--s2)}
.notice-head h1{margin:0}
.notice-list{list-style:none;margin:0;padding:0}
.notice-item{scroll-margin-top:72px;border-bottom:1px solid var(--line)}
.notice-item summary{display:flex;align-items:center;gap:var(--s2);min-height:56px;padding:var(--s2) 0;cursor:pointer;list-style:none}
.notice-item summary::-webkit-details-marker{display:none}
.notice-item summary::after{content:"";flex:none;width:8px;height:8px;margin-left:var(--s1);border-right:2px solid var(--sub);border-bottom:2px solid var(--sub);transform:rotate(45deg);transition:transform .15s}
.notice-item[open] summary::after{transform:rotate(-135deg)}
.notice-title{flex:1;min-width:0;font-weight:500;word-break:keep-all}
.notice-date{flex:none}
.notice-body{padding:0 0 var(--s4);white-space:pre-line;word-break:keep-all;line-height:1.8}

/* ── 이미지 검사에서 막힌 이미지 안내 (js/shell/blocked-images.js) ── */
.dialog.blocked-dialog{width:min(460px,100%)}
.blocked-dialog .dialog-msg{margin-bottom:var(--s3);color:var(--text);word-break:keep-all}
/* 그래도 올리기 (관리자 승인 요청) */
.appeal-ask{margin-bottom:var(--s2)}
.appeal-time{margin:0 0 var(--s2);font-weight:700}
.appeal-sorry{margin:0 0 var(--s3)}
.appeal-modes{border:0;padding:0;margin:var(--s3) 0 var(--s4);display:flex;flex-direction:column;gap:var(--s2)}
.appeal-modes legend{font-size:13px;color:var(--sub);margin-bottom:var(--s1);padding:0}
.appeal-opt{display:flex;gap:var(--s2);align-items:flex-start;padding:var(--s2) var(--s3);border:1px solid var(--line);border-radius:var(--r);cursor:pointer}
.appeal-opt:has(input:checked){border-color:var(--text);background:var(--surface)}
.appeal-opt input{margin-top:4px;flex:none}
.appeal-opt b{display:block;font-size:14px}
.appeal-opt .hint{display:block;font-size:13px;margin:2px 0 0}
.appeal-opt.off{opacity:.5;cursor:default}
/* 관리자 검토 중·거절된 이미지 */
.fig-review{margin:0;font:600 12px/1.5 var(--sans);padding:4px 10px;border-radius:999px;align-self:flex-start;background:rgba(var(--hl),.35);color:var(--text)}
.fig-review.rejected{background:none;border:1px solid var(--err,#B3261E);color:var(--err,#B3261E)}
.rte figure.rte-img.review img{opacity:.85}
.img-blind-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:180px;border-radius:var(--r);border:1px dashed var(--line);
  background:repeating-linear-gradient(45deg,var(--surface) 0 12px,var(--bg) 12px 24px);color:var(--sub);font:600 14px/1.5 var(--sans);text-align:center;padding:var(--s4)}
.img-blind-box small{font-weight:400;font-size:12px}
.img-blind.rejected .img-blind-box{color:var(--err,#B3261E)}
.img-review{display:flex;flex-direction:column;gap:var(--s1)}
.blocked-thumbs{list-style:none;display:flex;flex-wrap:wrap;gap:var(--s2);margin:0 0 var(--s3);padding:0}
.blocked-thumbs img{display:block;width:72px;height:72px;object-fit:cover;border-radius:var(--r);border:2px solid var(--err-base)}
.blocked-mail{margin:0 0 var(--s4)}

/* 프로필 편집: 닉네임 */
.me-nick-row{display:flex;gap:var(--s2);align-items:center}
.me-nick-row .input{flex:1;min-width:0}

/* 스낵바: 올리기·고치기 결과 (화면 가운데 아래, 작게) */
.snackbar{position:fixed;left:50%;bottom:calc(var(--tabbar) + 16px + env(safe-area-inset-bottom,0px));transform:translate(-50%,8px);z-index:45;
  display:inline-flex;align-items:center;gap:8px;max-width:min(420px,calc(100vw - 32px));padding:8px 14px 8px 10px;border-radius:999px;
  background:var(--strong);color:var(--on-strong);font:500 13px/1.4 var(--sans);box-shadow:0 4px 16px rgba(0,0,0,.18);opacity:0;transition:opacity .18s,transform .18s}
.snackbar.show{opacity:1;transform:translate(-50%,0)}
.snack-ic{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--on-strong);color:var(--strong);font-size:11px;font-weight:800;flex:none}
.snackbar.err .snack-ic{background:var(--err-base,#F55151);color:#fff}
@media(min-width:768px){.snackbar{bottom:var(--s6)}}

/* 좌하단 '?' 사용 가이드 버튼 + 처음 한 번 말풍선 */
.help-fab{position:fixed;left:var(--s4);bottom:calc(var(--tabbar) + var(--s4) + env(safe-area-inset-bottom,0px));z-index:21;width:44px;height:44px;border-radius:50%;
  border:1px solid var(--line);background:var(--bg);color:var(--text);font:700 18px/1 var(--sans);cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.help-fab:hover{background:var(--surface)}
.help-tip{position:fixed;z-index:22;left:calc(var(--s4) + 44px + 12px);bottom:calc(var(--tabbar) + var(--s4) + 4px + env(safe-area-inset-bottom,0px));
  display:inline-flex;align-items:center;gap:6px;padding:8px 8px 8px 14px;border-radius:12px;background:var(--strong);color:var(--on-strong);font:500 13px/1.4 var(--sans);box-shadow:0 4px 16px rgba(0,0,0,.18);animation:help-tip-in .25s ease-out}
.help-tip::before{content:"";position:absolute;left:-6px;top:50%;width:12px;height:12px;background:var(--strong);transform:translateY(-50%) rotate(45deg);border-radius:2px}
.help-tip span{position:relative}
.help-tip-x{position:relative;width:24px;height:24px;border:0;border-radius:50%;background:none;color:inherit;font-size:16px;line-height:1;cursor:pointer}
@keyframes help-tip-in{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
@media(min-width:768px){.help-fab{left:var(--s6);bottom:var(--s6)}.help-tip{left:calc(var(--s6) + 44px + 12px);bottom:calc(var(--s6) + 4px)}}
/* 글 읽기의 '비판적 사고하기'는 '?' 버튼 오른쪽으로 */
body.has-help .critical{left:calc(var(--s4) + 44px + var(--s2))}
@media(min-width:768px){body.has-help .critical{left:calc(var(--s6) + 44px + var(--s2))}}
body:has(.guide-backdrop) .help-fab,body:has(.guide-backdrop) .help-tip{visibility:hidden}
@media(prefers-reduced-motion:reduce){.help-tip{animation:none}}
/* 글쓰기 화면(아래 저장 막대와 겹침)·하이라이트 버튼이 아래에 붙었을 때는 숨김 */
body:has(.view-write) .help-fab,body:has(.view-write) .help-tip,.hl-docked ~ .help-fab,body:has(.hl-docked) .help-fab{display:none}

/* ───── 글 속 이미지 크게 보기 (캐러셀, js/shell/lightbox.js) ───── */
.body figure.zoomable img{cursor:zoom-in}
.lb{position:fixed;inset:0;z-index:80;background:rgba(10,10,12,.88);color:#fff;overflow:hidden;--w:70vw;--hgt:70vh}
.lb-stage{position:absolute;inset:0}
.lb-slide{position:absolute;top:calc((100vh - var(--hgt)) / 2);width:var(--w);height:var(--hgt);display:flex}
.lb-slide img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.lb-cur{left:calc((100vw - var(--w)) / 2)}
/* 앞·뒤 사진: 가장자리에 사진의 20%만, 바깥쪽으로 흐려지게 */
.lb-prev{left:calc(var(--w) * -0.8);cursor:pointer}
.lb-prev img{object-position:right center;-webkit-mask-image:linear-gradient(to right,transparent 80%,rgba(0,0,0,.55) 100%);mask-image:linear-gradient(to right,transparent 80%,rgba(0,0,0,.55) 100%)}
.lb-next{left:calc(100vw - var(--w) * 0.2);cursor:pointer}
.lb-next img{object-position:left center;-webkit-mask-image:linear-gradient(to left,transparent 80%,rgba(0,0,0,.55) 100%);mask-image:linear-gradient(to left,transparent 80%,rgba(0,0,0,.55) 100%)}
.lb-cur.in-r{animation:lb-in-r .22s ease-out}
.lb-cur.in-l{animation:lb-in-l .22s ease-out}
@keyframes lb-in-r{from{opacity:.3;transform:translateX(6%)}to{opacity:1;transform:none}}
@keyframes lb-in-l{from{opacity:.3;transform:translateX(-6%)}to{opacity:1;transform:none}}
.lb-btn{position:absolute;z-index:2;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.lb-btn:hover{background:rgba(255,255,255,.22)}
.lb-btn svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lb-close{top:16px;right:16px;width:44px;height:44px}
.lb-go{top:50%;width:48px;height:48px;transform:translateY(-50%)}
.lb-go-prev{left:calc((100vw - var(--w)) / 2 - 60px)}
.lb-go-next{left:calc((100vw + var(--w)) / 2 + 12px)}
.lb-foot{position:absolute;left:0;right:0;bottom:calc((100vh - var(--hgt)) / 2 - 56px);text-align:center;font:13px/1.5 var(--sans);color:rgba(255,255,255,.85);padding:0 16px}
.lb-foot p{margin:2px 0}
.lb-count{font-variant-numeric:tabular-nums;color:rgba(255,255,255,.6)}
@media(max-width:600px){.lb-go{display:none}}
@media(prefers-reduced-motion:reduce){.lb-cur.in-r,.lb-cur.in-l{animation:none}}

/* ───── 가린 단어 (설정 > 디자인 설정 > 부적절한 단어) ───── */
.bw{background:var(--sub);color:transparent;border-radius:3px;cursor:pointer;text-shadow:none}
.bw *{color:transparent}
.bw.shown{background:none;color:inherit;cursor:auto}
.bw.shown *{color:inherit}

