/* msg055.com 프로토타입 — 카페 주황 톤, PC에서도 폰 폭(최대 480px) 가운데 1단 */
:root {
  --accent: #ff7a1a;
  --accent-dark: #e86400;
  --accent-soft: #fff3e8;
  --green: #2db400;
  --text: #222;
  --sub: #888;
  --line: #ececec;
  --bg: #f6f6f6;
}
* { box-sizing: border-box; }
html { background: #e4e4e4; }
body { max-width: 480px; min-height: 100vh; margin: 0 auto; box-shadow: 0 0 24px rgba(0, 0, 0, .08); font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--sub); font-size: 12px; }
[hidden] { display: none !important; }

/* 헤더 */
.site-header { background: #fff; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hd-inner { max-width: 1200px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; border: 0; background: none; font-size: 22px; padding: 4px 6px; }
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-mark { font-weight: 800; font-size: 20px; color: var(--accent); letter-spacing: -.5px; }
.logo-name { font-weight: 700; font-size: 16px; }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.grade-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); background: var(--accent-soft); padding: 4px 8px; border-radius: 6px; }
.grade-switch select { border: 1px solid #f0c9a8; border-radius: 4px; padding: 3px 4px; background: #fff; }
.btn-write { background: var(--accent); color: #fff; padding: 7px 12px; border-radius: 6px; font-weight: 700; font-size: 13px; }

/* 3단 레이아웃 */
.layout { max-width: 1200px; margin: 16px auto; padding: 0 16px; display: grid; grid-template-columns: 220px 1fr 240px; gap: 16px; align-items: start; }
.side-left, .main, .side-right .box { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.cafe-box { display: flex; gap: 10px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cafe-box p { margin: 2px 0 0; color: var(--sub); font-size: 12px; }
.cafe-thumb { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #ffb36b); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.my-grade { padding: 10px 16px; font-size: 12px; color: var(--sub); border-bottom: 1px solid var(--line); }
.my-grade b { color: var(--accent-dark); margin-left: 4px; }
.menu { list-style: none; margin: 0; padding: 8px 0; }
.menu a { display: flex; justify-content: space-between; padding: 9px 16px; }
.menu a:hover { background: #fafafa; }
.menu a.active { color: var(--accent-dark); font-weight: 700; background: var(--accent-soft); }
.menu em { font-style: normal; color: var(--sub); font-size: 12px; }
.side-right .box { padding: 14px 16px; margin-bottom: 12px; }
.side-right h3 { margin: 0 0 8px; font-size: 14px; }
.side-right p { margin: 4px 0; line-height: 1.6; font-size: 13px; }
.side-right .big { font-size: 18px; font-weight: 800; color: var(--accent-dark); }

/* 글 목록 */
.main { padding: 0 0 8px; }
.board-title { margin: 0; padding: 16px 18px; font-size: 18px; border-bottom: 2px solid var(--text); }
.list-head, .post-item a { display: grid; grid-template-columns: 1fr 100px 130px 70px; gap: 8px; align-items: center; }
.list-head { padding: 8px 18px; font-size: 12px; color: var(--sub); border-bottom: 1px solid var(--line); text-align: center; }
.list-head span:first-child { text-align: left; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item a { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.post-item a:hover { background: #fafafa; }
.post-item.is-new a { background: #fffbe6; }
.pi-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pi-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-board { flex: none; font-size: 11px; color: var(--sub); }
.pi-lock { flex: none; font-size: 11px; color: #c0392b; background: #fdecea; padding: 1px 6px; border-radius: 10px; }
.pi-lock.open { color: #888; background: #f1f1f1; }
.pi-author, .pi-date, .pi-views { text-align: center; color: #666; font-size: 12px; }
.badge-must { flex: none; display: inline-block; background: #ff4d4f; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }
.post-list .badge-must { margin-right: 0; }
/* 작업19: 필독 잠금 배지·제목 예약상태·선택 창·비공개 폴더 */
.badge-must.pin-locked { background: #a8071a; }
[data-pinlock], .ttl-st { cursor: pointer; }
.ttl-st { text-decoration: underline dotted; }
.choice-pop { position: absolute; z-index: 300; max-width: 280px; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.choice-pop p { margin: 0 0 4px; flex-basis: 100%; color: #555; font-size: 12px; line-height: 1.4; }
.choice-pop button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 4px 10px; font-size: 13px; }
.choice-pop button.on { border-color: #ff4d4f; color: #ff4d4f; font-weight: 700; }
.priv-folder { margin-left: 8px; border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 400; vertical-align: 2px; }
.priv-list { border-bottom: 2px solid var(--line); background: #fafafa; }
.priv-list .priv-open { margin: 4px 18px 10px; }
.mn-pin { width: 44px; padding: 2px; font-size: 12px; }
.w-pinlock { margin-left: -10px; border: 0; background: none; padding: 0 2px; font-size: 15px; line-height: 1; cursor: pointer; opacity: .4; }
.w-pinlock.on { opacity: 1; }
.empty { padding: 40px; text-align: center; color: var(--sub); list-style: none; }

/* 상세 */
body[data-page="post"] { background: #fff; }
.post-wrap { max-width: 760px; margin: 0 auto; }
.topbar { position: sticky; top: 59px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; font-weight: 700; font-size: 16px; z-index: 20; }
.post { padding: 18px 16px; }
.post-cat { display: inline-block; color: var(--accent-dark); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.post-title { font-size: 20px; line-height: 1.45; margin: 0 0 14px; word-break: keep-all; }
.post-writer { display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; display: grid; place-items: center; }
.post-meta { color: var(--sub); font-size: 12px; margin-top: 2px; }
.post-meta span { margin-left: 6px; }
/* 관리자 글 관리(관리자 등급만 출력) */
.admin-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.admin-bar a, .admin-bar button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 5px 12px; font-size: 13px; }
.admin-bar .on { border-color: #ff4d4f; color: #ff4d4f; font-weight: 700; }
.admin-bar .danger { color: #c0392b; }
.post-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.post-body { line-height: 1.7; font-size: 15px; }
.post-body img { max-width: 100%; height: auto; }
.comment-box { padding: 0 16px 16px; }

/* 출근부 본문 */
.lineup { text-align: center; }
.lineup p { margin: 6px 0; }
.lu-brand { font-size: 22px; font-weight: 800; letter-spacing: 3px; margin-top: 4px !important; }
.lu-today { font-size: 17px; font-weight: 700; }
.lu-green { color: var(--green); }
.lu-open { font-weight: 700; }
.lineup a { color: var(--accent-dark); font-weight: 700; }
.lu-divider { border: 0; border-top: 1px dashed #d6d6d6; margin: 20px auto; width: 80%; }
.lu-courses { margin: 0 auto; border-collapse: collapse; min-width: 240px; }
.lu-courses th, .lu-courses td { padding: 6px 12px; border-bottom: 1px solid #f0f0f0; }
.lu-courses th { color: var(--accent-dark); }
.lu-price { font-weight: 700; text-align: right; }
.lu-note { color: #666; font-size: 13px; }
.lu-sect { font-size: 18px; font-weight: 800; letter-spacing: 2px; margin-bottom: 14px !important; }
.lu-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 300px; margin: 0 auto; }
.lu-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 14px; background: #fffdfa; }
.lu-photo svg, .lu-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.editor .lu-photo { cursor: pointer; }
.lu-name { font-weight: 700; margin-top: 10px !important; }
.lu-hours { color: #555; font-size: 13px; }
.lu-area { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.lu-area.blue { background: #e3efff; color: #1e5fd8; }
.lu-area.yellow { background: #fff4c2; color: #9a6b00; }
.lu-area.gray { background: #eee; color: #555; }
.lu-foot { color: #555; font-size: 13px; line-height: 1.7; max-width: 480px; margin: 8px auto !important; word-break: keep-all; }

/* 잠금 화면 */
.lock-screen { text-align: center; padding: 48px 16px; background: #fafafa; border: 1px dashed #ddd; border-radius: 10px; margin: 8px 0; }
.lock-icon { font-size: 40px; }
.lock-msg { font-size: 17px; font-weight: 800; margin: 12px 0 6px; }
.lock-sub { color: #555; margin: 4px 0; }
.lock-demo { color: var(--sub); font-size: 12px; margin: 10px 0 0; }
.lock-btns { display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin: 16px auto 0; }
.lock-btns a { display: block; padding: 12px 20px; font-size: 15px; text-decoration: none; }


/* 필독 출근 카드(오늘 출근 선생님 슬라이드) — 크기·표시 값은 app.js가 CSS 변수·클래스로 넣는다 */
.lc-card { --lc-photo: 56px; --lc-title: 14px; --lc-name: 13px; --lc-hours: 12px; --lc-area: 11px; --lc-w: 112px; --lc-gap: 10px; --lc-strip: auto; background: #fffaf5; border-bottom: 1px solid var(--line); }
.lc-card.lc-fixed { overflow-y: auto; }
.lc-card { cursor: pointer; }
.post-item .lc-card > a { border-bottom: 0; }
.lc-card .pi-text { font-size: var(--lc-title); }
.lc-strip { padding: 0 18px 12px; }
.lc-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--accent-dark); }
.lc-label span { color: var(--green); margin-left: 4px; }
.lc-track { display: flex; gap: var(--lc-gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.lc-strip-fixed .lc-track { height: var(--lc-strip); }
.lc-t { flex: 0 0 var(--lc-w); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; min-width: 0; overflow-y: auto; }
.lc-photo { width: var(--lc-photo); height: var(--lc-photo); margin: 0 auto 6px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--accent), #ffb36b); color: #fff; font-weight: 800; font-size: calc(var(--lc-photo) * .42); display: grid; place-items: center; }
.lc-square .lc-photo { border-radius: 10px; }
.lc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-name { margin: 0; font-weight: 700; font-size: var(--lc-name); word-break: keep-all; }
.lc-hours { margin: 2px 0 0; color: #666; font-size: var(--lc-hours); word-break: keep-all; overflow-wrap: anywhere; }
.lc-area { margin: 2px 0 0; }
.lc-area .lu-area { font-size: var(--lc-area); padding: 1px 8px; }
.lc-hide-title .pi-title, .lc-hide-strip .lc-strip, .lc-hide-photo .lc-photo, .lc-hide-name .lc-name, .lc-hide-hours .lc-hours, .lc-hide-area .lc-area { display: none; }
/* 관리자 설정 패널(관리자 등급만 출력) */
.lc-admin { background: #fafafa; border-bottom: 1px solid var(--line); padding: 10px 18px 12px; font-size: 13px; }
.lc-admin summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); }
.lc-admin summary small { font-weight: 400; color: var(--sub); margin-left: 4px; }
.lc-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.lc-sec { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-width: 0; }
.lc-sec h4 { margin: 0 0 8px; font-size: 13px; }
.lc-row { display: grid; grid-template-columns: 84px 26px minmax(0, 1fr) 26px 44px; gap: 4px; align-items: center; margin-bottom: 6px; }
.lc-row input[type=range] { width: 100%; min-width: 0; margin: 0; accent-color: var(--accent); }
.lc-row output { text-align: right; font-size: 12px; color: #555; }
.lc-row button, .lc-btns button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 3px 0; cursor: pointer; font-size: 13px; }
.lc-btns { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.lc-btns button { padding: 4px 10px; }
.lc-btns button.on { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); font-weight: 700; }
.lc-hint { margin: 4px 0 0; color: var(--sub); font-size: 12px; }
.lc-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lc-checks label { display: flex; align-items: center; gap: 4px; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lc-status { color: var(--sub); font-size: 12px; }

/* 글쓰기 */
.write-wrap { max-width: 860px; margin: 16px auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding-bottom: 16px; }
#writeForm { padding: 16px 18px 0; }
.w-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.w-row select { margin-left: 4px; padding: 5px; border: 1px solid #ddd; border-radius: 4px; }
.w-title { width: 100%; font-size: 17px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid #ddd; border-bottom: 0; border-radius: 6px 6px 0 0; background: #fafafa; }
.toolbar button, .toolbar label { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 5px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tb-color input { width: 24px; height: 20px; border: 0; padding: 0; background: none; }
.editor { min-height: 320px; border: 1px solid #ddd; border-radius: 0 0 6px 6px; padding: 14px; line-height: 1.7; outline: none; }
.editor:empty::before { content: "내용을 입력하세요."; color: #bbb; }
.editor img { max-width: 100%; }
.w-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.btn-main, .btn-sub { padding: 9px 20px; border-radius: 6px; font-weight: 700; border: 1px solid var(--accent); }
.btn-main { background: var(--accent); color: #fff; }
.btn-sub { background: #fff; color: var(--accent-dark); }
.write-wrap .lock-screen { margin: 16px 18px 0; }

/* 폰 폭 1단 + 햄버거 메뉴(모든 화면 공통 — PC 3단 레이아웃 미사용) */
.side-right { display: none; }
.hamburger { display: block; }
.hd-inner { padding: 0 10px; gap: 6px; }
.logo-mark { font-size: 18px; }
.logo-name { font-size: 14px; }
.grade-switch span { display: none; }
.btn-write { padding: 6px 8px; font-size: 12px; }
.layout { display: block; margin: 0; padding: 0; }
.main { border-radius: 0; border-left: 0; border-right: 0; }
.side-left { position: fixed; top: 0; left: max(0px, calc(50% - 240px)); bottom: 0; width: 260px; z-index: 50; border-radius: 0; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; overflow-y: auto; }
.menu-open .side-left { transform: none; visibility: visible; }
.menu-dim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
.menu-open .menu-dim { display: block; }
.list-head { display: none; }
.post-item a { display: block; padding: 12px 14px; }
.pi-title { flex-wrap: wrap; }
.pi-text { white-space: normal; flex-basis: 100%; order: 2; line-height: 1.45; }
.pi-author, .pi-date, .pi-views { display: inline; text-align: left; margin-right: 8px; font-size: 12px; }
.post-item a > div:nth-child(2) { margin-top: 6px; display: inline-block; }
.topbar { top: 59px; }
.post-title { font-size: 18px; }
.lu-cards { gap: 10px; }
.lc-strip { padding: 0 14px 12px; }
.lc-admin { padding: 10px 14px 12px; }
.write-wrap { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }

/* 대표 배너 + 초대 + 알림(작업4 A4-5) */
.banner { position: relative; overflow: hidden; background: #222; }
.banner img, .banner video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-default { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, var(--accent), #ffb36b); color: #fff; }
.bn-default b { font-size: 26px; letter-spacing: 1px; }
.bn-default span { font-size: 13px; opacity: .9; }
.btn-invite { border: 1px solid #ddd; background: #fff; border-radius: 16px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.bn-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 14px; background: #fafafa; border-bottom: 1px solid var(--line); font-size: 13px; }
.bn-admin b { color: var(--accent-dark); }
.bn-admin .bn-file, .bn-admin button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.bn-h { display: flex; align-items: center; gap: 4px; flex: 1 1 200px; }
.bn-h input { flex: 1; min-width: 0; accent-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); max-width: 90%; background: rgba(34, 34, 34, .92); color: #fff; padding: 12px 18px; border-radius: 22px; font-size: 14px; z-index: 100; text-align: center; transition: opacity .4s; }
.toast.out { opacity: 0; }
/* 드로어 게시판 편집(관리자) */
.mn-editing .mn-label { border-bottom: 1px dashed var(--accent); cursor: text; }
.mn-input { width: 140px; font: inherit; padding: 2px 4px; border: 1px solid var(--accent); border-radius: 4px; }
.mn-admin { padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); }
.mn-admin button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 5px 10px; font-size: 13px; }
.mn-admin button.on { border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }
.mn-admin p { margin: 2px 0 0; }
/* 글쓰기: 임시저장·오늘/내일·템플릿 편집 */
.w-drafts { margin-bottom: 10px; }
.w-drafts .btn-sub { padding: 5px 12px; font-size: 13px; }
.draft-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.draft-list li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.draft-list li:last-child { border-bottom: 0; }
.df-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.df-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-list button, .w-day button, .tp-btns button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 4px 8px; font-size: 12px; }
.draft-list .danger, .tp-btns .danger { color: #c0392b; }
.w-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 10px; font-size: 13px; }
.w-day button { padding: 5px 14px; font-size: 13px; }
.w-day button.on { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); font-weight: 700; }
.toolbar .tb-tpl-edit { border-color: var(--accent); color: var(--accent-dark); }
.tpl-panel { margin: 16px 18px 0; padding: 12px; border: 2px solid var(--accent); border-radius: 8px; background: #fffaf5; font-size: 13px; }
.tpl-panel h3 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.tpl-panel h3 .btn-sub { padding: 4px 12px; font-size: 12px; }
.tpl-panel h4 { margin: 12px 0 6px; font-size: 13px; }
.tp-label { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 6px; }
.tp-label input { flex: 1; min-width: 0; padding: 6px; border: 1px solid #ddd; border-radius: 4px; font: inherit; font-weight: 400; accent-color: var(--accent); }
.tp-preview { margin: 4px 0 8px; word-break: break-all; }
.tp-demo-wrap { max-width: 300px; margin: 6px auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tp-demo { margin: 0 auto; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 8px; background: #e9ddd0; color: #8a7563; display: grid; place-items: center; font-size: 11px; }
.tp-list { list-style: none; margin: 0; padding: 0; }
.tp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tp-photo { width: 56px; height: 70px; border-radius: 6px; overflow: hidden; background: #e9ddd0; display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; }
.tp-fields { display: flex; flex-direction: column; gap: 4px; }
.tp-fields input { padding: 5px 6px; border: 1px solid #ddd; border-radius: 4px; font: inherit; }
.tp-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
/* 작업4 A4-7: 이름 버튼·에디터 카드 ✕·템플릿 본문 문구·하단 문자/전화·카드 끌어서 크기 조절 */
.w-names { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.w-names button { border: 1px solid #ddd; border-radius: 14px; padding: 5px 12px; font-size: 13px; font-weight: 700; background: #eee; color: #555; }
.w-names button.blue { background: #e3efff; color: #1e5fd8; border-color: #b9d3ff; }
.w-names button.yellow { background: #fff4c2; color: #9a6b00; border-color: #f0d98a; }
.editor .lu-card { position: relative; }
.editor .lu-card::after { content: "✕"; position: absolute; top: 4px; right: 4px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 26px; text-align: center; cursor: pointer; }
.tp-sub { margin: 10px 0 4px; font-weight: 700; }
.tp-courses { list-style: none; margin: 0 0 6px; padding: 0; }
.tp-courses li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 64px auto; gap: 4px; margin-bottom: 4px; }
.tp-courses input { min-width: 0; padding: 5px 6px; border: 1px solid #ddd; border-radius: 4px; font: inherit; }
.tp-courses button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 4px 8px; font-size: 12px; color: #c0392b; }
.tp-small { padding: 4px 12px; font-size: 12px; }
.cb-bar { --cb-h: 48px; position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 35; display: flex; gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.cb-bar a { flex: 1; height: var(--cb-h); display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; font-weight: 800; font-size: calc(var(--cb-h) * .34); cursor: pointer; }
.cb-sms { background: var(--green); }
.cb-tel { background: var(--accent); }
.cb-tools { position: absolute; right: 8px; bottom: 100%; display: flex; gap: 4px; padding-bottom: 4px; }
.cb-tools button, .cb-grip { border: 1px solid #ddd; background: #fff; border-radius: 12px; padding: 3px 10px; font-size: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.cb-num.need { border-color: #ff4d4f; color: #ff4d4f; font-weight: 700; }
.cb-grip { cursor: ns-resize; touch-action: none; user-select: none; color: var(--accent-dark); font-weight: 700; }
.lc-t { position: relative; }
.lc-h { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); touch-action: none; z-index: 3; }
.lc-h-photo { left: calc(50% + var(--lc-photo) / 2 - 12px); top: calc(10px + var(--lc-photo) - 12px); cursor: nwse-resize; }
.lc-h-card { right: 0; bottom: 0; cursor: nwse-resize; border-radius: 6px; background: #1e5fd8; }
.lc-hide-photo .lc-h-photo { display: none; }
.lc-h-text { cursor: ew-resize; background: #1e5fd8; }
.lc-h-text::after { content: "↔"; display: block; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.lc-sel { outline: 2px dashed #1e5fd8; outline-offset: 1px; }
.lc-h-edge { height: 14px; display: grid; place-items: center; cursor: ns-resize; touch-action: none; background: #fff3e8; border-bottom: 1px solid var(--line); }
.lc-h-edge span { width: 48px; height: 4px; border-radius: 2px; background: var(--accent); }
/* 작업4 A4-9: sticky 날짜·이름 줄 · 카드 순서 끌기 · 근무지/시간/꼬리표 · 로고 편집 · G 칸 사진 · 게시판 삭제 */
.w-sticky { position: sticky; top: var(--hd-h, 60px); z-index: 20; background: var(--bg); padding: 6px 0 2px; margin: 0 0 6px; border-bottom: 1px solid var(--line); }
.w-sticky .w-day { margin: 0 0 6px; }
.w-sticky .w-names { margin: 0 0 4px; }
.lu-area.green, .w-names button.green, .tp-pick button.green, .tp-colors .green { background: #e2f6dc; color: #1f8a00; border-color: #b6e3a8; }
.lu-area.pink, .w-names button.pink, .tp-pick button.pink, .tp-colors .pink { background: #ffe4ef; color: #c2185b; border-color: #f5b5cd; }
.tp-pick button.blue, .tp-colors .blue { background: #e3efff; color: #1e5fd8; border-color: #b9d3ff; }
.tp-pick button.yellow, .tp-colors .yellow { background: #fff4c2; color: #9a6b00; border-color: #f0d98a; }
.tp-pick button.gray, .tp-colors .gray { background: #eee; color: #555; border-color: #ddd; }
.lu-tag { display: inline-block; margin: 2px 2px 0 !important; padding: 1px 8px; border-radius: 10px; font-size: calc(12px * var(--lu-s, 1)); font-weight: 700; background: #ffe4ef; color: #c2185b; }
.lc-tag { display: inline-block; margin: 1px 1px 0; padding: 0 6px; border-radius: 8px; font-size: var(--lc-area); font-weight: 700; background: #ffe4ef; color: #c2185b; }
.editor .lu-card { touch-action: pan-y; -webkit-touch-callout: none; }
.editor .lu-card::before { content: "⇅"; position: absolute; top: 4px; left: 4px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 26px; text-align: center; cursor: grab; }
.editor.lu-drag-on { user-select: none; -webkit-user-select: none; }
.editor .lu-card.lu-dragging { opacity: .75; outline: 2px dashed var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.tp-hours { display: flex; align-items: center; gap: 4px; }
.tp-hours select { flex: 1; min-width: 0; padding: 5px 4px; border: 1px solid #ddd; border-radius: 4px; font: inherit; background: #fff; }
.tp-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-pick button { border: 1px solid #ddd; border-radius: 12px; padding: 3px 10px; font-size: 12px; background: #fff; color: #555; opacity: .55; }
.tp-pick button.on { opacity: 1; font-weight: 700; outline: 2px solid currentColor; outline-offset: 0; }
.tp-areas { list-style: none; margin: 0 0 6px; padding: 0; }
.tp-areas li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tp-areas input { flex: 1; min-width: 0; padding: 5px 6px; border: 1px solid #ddd; border-radius: 4px; font: inherit; }
.tp-areas .danger { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 4px 8px; font-size: 12px; color: #c0392b; }
.tp-colors { display: flex; gap: 3px; }
.tp-colors button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd; padding: 0; }
.tp-colors button.on { box-shadow: 0 0 0 2px var(--accent); }
.lg-sel { outline: 2px dashed #1e5fd8; outline-offset: 2px; }
.lg-h { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: -4px; align-self: center; border-radius: 50%; background: #1e5fd8; color: #fff; font-size: 12px; cursor: ew-resize; touch-action: none; user-select: none; }
.lg-edit { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border-bottom: 2px solid var(--accent); box-shadow: 0 4px 10px rgba(0, 0, 0, .08); font-size: 13px; }
.lg-edit input#lgText { flex: 1; min-width: 100px; padding: 5px 6px; border: 1px solid #ddd; border-radius: 4px; font: inherit; }
.lg-edit .btn-main, .lg-edit .btn-sub { padding: 5px 10px; font-size: 12px; }
.lg-edit p { width: 100%; margin: 0; }
.lg-color { display: inline-flex; align-items: center; gap: 4px; }
.lg-color input { width: 32px; height: 26px; padding: 0; border: 1px solid #ddd; }
.cafe-thumb { overflow: hidden; flex: 0 0 auto; }
.cafe-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cafe-thumb.ct-edit { cursor: pointer; outline: 2px dashed var(--accent); outline-offset: 2px; }
.ct-del { margin-left: auto; border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 4px 8px; font-size: 12px; color: #c0392b; }
.mn-editing li { display: flex; align-items: center; }
.mn-editing li > a { flex: 1; min-width: 0; }
.mn-grade { flex: none; width: 68px; margin-right: 6px; border: 1px solid #ddd; border-radius: 4px; padding: 3px 2px; font-size: 12px; background: #fff; }
.mn-hide { flex: none; margin-right: 6px; border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 2px 5px; font-size: 12px; line-height: 1.2; }   /* 작업17 */
.mn-hide.on { border-color: #c0392b; background: #fdecea; }
.mn-del { margin-right: 12px; border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 3px 8px; font-size: 12px; color: #c0392b; }
/* 작업4 A4-11: 꼬리표 여러 개·색 배지 · 본문 카드 바로 바꾸기 팝업 · 카드 크기 손잡이(--lu-s) */
.lu-tags { margin: 2px 0 0 !important; line-height: 1.5; }
.lu-tags:empty { display: none; }
.lc-tags { margin: 1px 0 0; line-height: 1.4; }
.lu-tag.blue, .lc-tag.blue { background: #e3efff; color: #1e5fd8; }
.lu-tag.yellow, .lc-tag.yellow { background: #fff4c2; color: #9a6b00; }
.lu-tag.green, .lc-tag.green { background: #e2f6dc; color: #1f8a00; }
.lu-tag.pink, .lc-tag.pink { background: #ffe4ef; color: #c2185b; }
.lu-tag.gray, .lc-tag.gray { background: #eee; color: #555; }
.lu-cards { max-width: min(100%, calc(300px * var(--lu-s, 1))); }
.lu-card { font-size: calc(1em * var(--lu-s, 1)); }
.lu-card .lu-hours { font-size: calc(13px * var(--lu-s, 1)); }
.lu-card .lu-area { font-size: calc(12px * var(--lu-s, 1)); }
.lu-photo[style] { zoom: var(--lu-s, 1); }
.editor .lu-tags:empty { display: block; }
.editor .lu-tags:empty::before { content: "+ 꼬리표"; color: #aaa; font-size: 12px; }
.editor .lu-hours, .editor .lu-area, .editor .lu-tags { cursor: pointer; }
.editor .lu-hours { text-decoration: underline dotted #bbb; text-underline-offset: 3px; }
.editor .lu-card { background-image: linear-gradient(135deg, transparent 50%, var(--accent) 50%); background-size: 22px 22px; background-position: right 3px bottom 3px; background-repeat: no-repeat; }
.editor .lu-card.lu-resizing { outline: 2px dashed var(--accent); }
.lu-pop { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 60; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
.lu-pop[hidden] { display: none; }
.lu-pop-t { margin: 0 0 8px; font-size: 14px; }
.lu-pop .tp-pick { gap: 6px; }
.lu-pop .tp-pick button { padding: 6px 14px; font-size: 14px; }
.lu-pop .tp-hours select { padding: 8px 6px; font-size: 15px; }
.lu-pop-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

/* 작업4 A4-13: 헤더 줄 [초대] · 메뉴 회원가입/로그인 · 로그인/회원가입 시안 · 본문 카드 요소별 크기(--lu-ph/nm/hr/ar/tg × --lu-s) */
.btn-invite { flex: none; white-space: nowrap; padding: 5px 8px; font-size: 12px; }
.logo { min-width: 0; overflow: hidden; }
.logo-mark, .logo-name { white-space: nowrap; }
.hd-right { flex: none; gap: 6px; }
.side-left { display: flex; flex-direction: column; }
.mn-auth { margin-top: auto; display: flex; border-top: 1px solid var(--line); }
.mn-auth a { flex: 1; text-align: center; padding: 14px 0; font-weight: 700; color: var(--accent-dark); }
.mn-auth a + a { border-left: 1px solid var(--line); }
.auth-wrap { background: #fff; min-height: 60vh; }
.auth-note { margin: 12px 18px 0; padding: 8px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.auth-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.auth-form input { border: 1px solid #ddd; border-radius: 6px; padding: 10px; font: inherit; font-weight: 400; }
/* 작업10: 문자인증 — 연락처 옆 [인증번호 받기]·인증번호 [확인], 비밀번호 찾기 새 비밀번호 칸 */
.auth-form [hidden] { display: none; }
.sms-row { display: flex; gap: 6px; }
.sms-row input { flex: 1; min-width: 0; }
.sms-row .btn-sub { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
.sms-row input[readonly] { background: #f3f3f3; color: var(--sub); }
.sms-msg { margin: -4px 0 0; }
.sms-msg:empty { display: none; }
.sms-msg.sms-err { color: #c0392b; }
.auth-form-sub { display: flex; flex-direction: column; gap: 12px; }
.auth-form label.sms-test { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.auth-alt { padding: 0 18px 20px; font-size: 13px; color: var(--sub); }
.auth-alt a { color: var(--accent-dark); font-weight: 700; }
.lu-cards { max-width: min(100%, calc(300px * var(--lu-s, 1) * max(1, var(--lu-ph, 1)))); }
.lu-photo:not([style]) { width: calc(100% * min(1, var(--lu-ph, 1))); margin: 0 auto; }
.lu-photo[style] { zoom: calc(var(--lu-s, 1) * var(--lu-ph, 1)); }
.lu-card .lu-name { font-size: calc(1em * var(--lu-nm, 1)); }
.lu-card .lu-hours { font-size: calc(13px * var(--lu-s, 1) * var(--lu-hr, 1)); }
.lu-card .lu-area { font-size: calc(12px * var(--lu-s, 1) * var(--lu-ar, 1)); }
.lu-card .lu-tag { font-size: calc(12px * var(--lu-s, 1) * var(--lu-tg, 1)); }
.editor .lu-photo, .editor .lu-name, .editor .lu-hours, .editor .lu-area, .editor .lu-tags { position: relative; }
.editor .lu-photo::after, .editor .lu-name::after, .editor .lu-hours::after, .editor .lu-area::after, .editor .lu-tags::after { content: "↔"; position: absolute; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; text-decoration: none; cursor: ew-resize; zoom: 1; }
.editor .lu-photo::after { content: "⤡"; right: 4px; bottom: 4px; cursor: nwse-resize; }
.editor .lu-name::after, .editor .lu-hours::after, .editor .lu-tags::after { right: 20px; top: 50%; margin-top: -11px; }
.editor .lu-area::after { left: 100%; top: 50%; margin: -11px 0 0 5px; }
.editor .lu-tags:empty { min-height: 22px; }
.grade-switch { padding: 3px 4px; }
.logo { flex: 1 1 auto; flex-wrap: wrap; align-items: center; align-content: center; gap: 0 6px; line-height: 1.15; max-height: 56px; }
.logo-mark, .logo-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hd-inner, .hd-right { gap: 4px; }
.btn-invite { padding: 5px 6px; }
.btn-write { padding: 6px 6px; }

/* 관리자 페이지(작업4 A4-15) — 회원관리·SEO, 390px에서 가로로 넘치지 않게 카드형 */
.mn-adminpage { flex-basis: 100%; padding: 8px 10px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent-dark); font-weight: 700; font-size: 13px; text-align: center; }
.ad-deny { margin: 40px 18px; padding: 24px 12px; text-align: center; font-weight: 700; color: var(--sub); background: #fafafa; border-radius: 8px; }
.ad-tabs { display: flex; border-bottom: 1px solid var(--line); }
.ad-tabs button { flex: 1; border: 0; background: #fff; padding: 12px 0; font-weight: 700; color: var(--sub); border-bottom: 2px solid transparent; }
.ad-tabs button.on { color: var(--accent-dark); border-bottom-color: var(--accent); }
.ad-count { margin: 12px 18px 4px; font-size: 13px; }
.ad-count b { color: var(--accent-dark); }
.ad-members { list-style: none; margin: 0; padding: 8px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ad-mem { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.ad-mem-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ad-mem-top b { overflow-wrap: anywhere; }
.ad-badge { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #eee; color: #666; }
.ad-grade { margin-left: auto; font-size: 12px; color: var(--accent-dark); background: var(--accent-soft); padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.ad-mem dl { display: grid; grid-template-columns: 48px 1fr; gap: 3px 8px; margin: 0; font-size: 13px; }
.ad-mem dt { color: var(--sub); }
.ad-mem dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ad-seo textarea { border: 1px solid #ddd; border-radius: 6px; padding: 10px; font: inherit; font-weight: 400; resize: vertical; }
.ad-og { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.ad-og-img { width: 100%; max-width: 240px; aspect-ratio: 1.91 / 1; border: 1px dashed #ccc; border-radius: 6px; display: grid; place-items: center; overflow: hidden; background: #fafafa; }
.ad-og-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-fav-img { width: 64px; height: 64px; border: 1px dashed #ccc; border-radius: 6px; display: grid; place-items: center; overflow: hidden; background: #fafafa; }
.ad-fav-img img { max-width: 100%; max-height: 100%; }
.ad-og-btns { display: flex; gap: 6px; }
/* 작업18: 검색 노출용 매장 사진 + alt 키워드 칸(사진 옆), 첫 화면 오른쪽 매장 사진 박스 */
.ad-store { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ad-store .ad-og-img { flex: 0 1 240px; }
.ad-store-alt { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.store-photo { padding: 0; overflow: hidden; }
.store-photo img { display: block; width: 100%; height: auto; }
.ad-og-btns button { border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 6px 10px; font-size: 13px; }
.ad-preview { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.ad-preview p { margin: 0 0 6px; }
.sp-title { color: #1a0dab; font-size: 17px; line-height: 1.3; }
.sp-url { color: #006621; font-size: 12px; margin: 2px 0; }
.sp-desc { color: #545454; font-size: 13px; line-height: 1.4; }

/* 실사이트(작업7) — 로그인 상태 탭·데이터 가져오기 */
.mn-auth .mn-me { flex: 1; text-align: center; padding: 14px 0; font-weight: 700; color: var(--text, #222); }
.mn-auth button { flex: 1; border: 0; border-left: 1px solid var(--line); background: #fff; padding: 14px 0; font-weight: 700; color: var(--accent-dark); font-size: inherit; cursor: pointer; }
.ad-import-list { margin: 10px 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.ad-import-chk { display: block; margin: 10px 0; font-size: 13px; }
.ad-import-h { margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--line, #e5ddd5); font-size: 15px; }

/* 작업8 — 로고 이미지 · 바탕색 편집 줄 · 검색엔진 소유확인 */
.logo-mark .logo-img { display: block; width: auto; max-width: 100%; object-fit: contain; }
/* 로고 이미지가 있으면 줄바꿈하지 않고 이미지 칸이 줄어든다(390px에서 이미지 위·사이트 이름 아래가 잘리던 문제) */
.logo:has(.logo-img) { flex-wrap: nowrap; }
.logo-mark:has(.logo-img) { min-width: 0; flex: 0 1 auto; }
.logo:has(.logo-img) .logo-name { flex-shrink: 0; }
.bg-edit { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60; width: calc(100% - 24px); max-width: 456px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); font-size: 13px; }
.bg-edit .btn-main, .bg-edit .btn-sub { padding: 5px 10px; font-size: 12px; }
.ad-verify { padding: 0 18px 18px; }
.ad-vf { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.ad-vf-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ad-vf-top a { color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.ad-vf-in { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 8px; font: inherit; font-size: 12px; }
.ad-vf-btns { display: flex; gap: 6px; margin-top: 8px; }
.ad-vf-btns .btn-main, .ad-vf-btns .btn-sub { padding: 6px 10px; font-size: 12px; }
.ad-vf-res { margin: 8px 0 0; word-break: break-all; }
/* 작업12: 마이페이지 */
.my-info { display: grid; grid-template-columns: 64px 1fr; gap: 8px 10px; margin: 0; padding: 16px 18px 4px; font-size: 14px; }
.my-info dt { color: var(--sub); }
.my-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.my-ok { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.my-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.my-btns .btn-sub { padding: 7px 12px; font-size: 13px; }
.my-pane { border-top: 1px solid var(--line); margin-top: 12px; }
.my-h { margin: 18px 18px 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.my-empty { padding: 0 18px; }
.my-posts { list-style: none; margin: 0; padding: 0 18px; }
.my-posts li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.my-posts li a { min-width: 0; overflow-wrap: anywhere; }
.my-posts li .muted { white-space: nowrap; }
.my-out { margin-top: 24px; }
.my-withdraw { border: 0; background: none; padding: 0; color: var(--sub); font-size: 13px; text-decoration: underline; cursor: pointer; }
/* 작업23: 메뉴 「앱 설치」 + 아이콘·이름 선택 창 + 설치 전용 화면(app-install.php) */
.mn-install { margin: 4px 16px 10px; padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; color: var(--accent-dark); cursor: pointer; }
.ai-pop { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 60; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
.ai-pop h3 { margin: 0 0 6px; }
.ai-pop .muted { margin: 8px 0 4px; }
.ai-icons { display: flex; gap: 12px; }
.ai-icons label { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.ai-icons img { border-radius: 12px; }
.ai-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.ai-row input[type="text"] { flex: 1; min-width: 0; padding: 6px 8px; }
.ai-err { color: #d33; font-size: 13px; min-height: 1em; margin: 4px 0; }
.ai-btns { display: flex; gap: 8px; justify-content: flex-end; }
.ai-page { max-width: 480px; margin: 0 auto; padding: 40px 20px; text-align: center; background: #fff; min-height: 100vh; }
.ai-icon { border-radius: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.ai-name { margin: 12px 0 4px; }
.ai-go { margin: 16px 0 8px; padding: 12px 40px; font-size: 16px; border: 0; cursor: pointer; }
.ai-msg { font-size: 14px; color: var(--sub); }
/* 작업25: 필독 알림 — 가입 체크칸·마이페이지 켜기/끄기 스위치 */
.auth-form label.push-chk { flex-direction: row; font-weight: 400; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.auth-form .push-chk input { width: auto; margin: 0; padding: 0; accent-color: var(--accent); }
.push-chk .muted { font-size: 12px; }
.push-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.push-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.push-sw-ui { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #ccc; transition: background .15s; flex: none; }
.push-sw-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.push-sw input:checked + .push-sw-ui { background: var(--accent); }
.push-sw input:checked + .push-sw-ui::after { left: 20px; }
.push-sw input:focus-visible + .push-sw-ui { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.push-sw input:disabled + .push-sw-ui { opacity: .5; }
/* 작업26: 관리자 회원 카드 알림 상태 · 메뉴 회원 칸 알림 스위치 */
.ad-push { font-size: 12px; color: #888; background: #f1f1f1; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.ad-push.on { color: var(--accent-dark); background: var(--accent-soft); }
.mn-auth .mn-push { flex: none; gap: 4px; padding: 0 8px; border-left: 1px solid var(--line); }
select.ad-grade { border: 0; font: inherit; font-size: 12px; cursor: pointer; }   /* 작업29: 관리자 회원 등급 변경 */
