/* 책읽는아이 웹 — 공책 종이 바탕 + 잉크색(남색) + 형광펜(노랑) */
:root {
  --bg: #F7F3EA; --card: #FFFFFF; --ink: #22252E; --sub: #6F6A5F; --faint: #B4AD9F; --line: #EDE6D7; --field: #F5F1E8;
  --pri: #4146D8; --pri-soft: #ECEDFD; --red: #E5484D; --red-soft: #FDECEC; --green: #16A34A; --amber: #D97706; --blue: #2563EB;
  --hl: #FFE066; --hl-soft: #FFF6CC; --board: #1F2A44; --board2: #2A3758;
  --shadow: 0 1px 0 rgba(120, 100, 60, .06), 0 6px 18px -8px rgba(80, 64, 30, .16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
/* 공책 모눈 점 */
body { background-image: radial-gradient(rgba(130, 110, 70, .13) 1px, transparent 1.2px); background-size: 22px 22px; background-attachment: fixed; }
body { font: 15px/1.35 Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; letter-spacing: -.01em; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
#app { max-width: 720px; margin: 0 auto; min-height: 100vh; }

.row { display: flex; align-items: center; }
.grow { flex: 1; min-width: 0; }
.sub { color: var(--sub); } .faint { color: var(--faint); } .pri { color: var(--pri); }
.b { font-weight: 700; }
.s11 { font-size: 11px; } .s12 { font-size: 12px; } .s13 { font-size: 13px; }
.card { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 12px; }
.chip { display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; padding: 8px 10px;
  border-radius: 99px; background: var(--field); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.pri { background: var(--pri-soft); color: var(--pri); }
.chip.on { background: var(--pri); color: #fff; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.white { background: var(--card); box-shadow: 0 1px 2px rgba(20, 24, 40, .1); }
.chip.small { font-size: 11px; padding: 4px 9px; }
/* 미확정 책 단계(희망 단계 5표 전): 흐리게. 칩 안에 있으면 칩째 흐리고 점선 테두리 */
.lv-tent { opacity: .5; }
.chip:has(> .lv-tent) { opacity: .6; outline: 1px dashed currentColor; outline-offset: -1px; }
.chip > .lv-tent { opacity: 1; }
.btn { display: block; width: 100%; text-align: center; font-weight: 700; padding: 14px 16px; border-radius: 14px; background: var(--pri-soft); color: var(--pri); transition: transform .12s; }
.btn.primary { background: linear-gradient(135deg, #5157E6, #3A3FC9); color: #fff; box-shadow: 0 6px 14px -6px rgba(65, 70, 216, .6); }
.btn:active, .chip:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.icon-btn { width: 36px; height: 36px; margin-left: 6px; border-radius: 99px; background: var(--field); font-size: 20px; font-weight: 700; }
button:hover, .click:hover { filter: brightness(.97); }
.click { cursor: pointer; }
.input { width: 100%; border: 0; outline: 0; background: var(--field); border-radius: 12px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input:focus { box-shadow: 0 0 0 2px #C9CCFA; background: #fff; }

/* 로그인 */
.login { padding: 32px 24px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 460px; margin: 0 auto; }
.login h1 { font-size: 30px; margin: 14px 0 0; }
.login-hero { text-align: center; margin-bottom: 22px; }
.login-hero .logo { width: 76px; height: 76px; margin: 0 auto; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: linear-gradient(145deg, #5B61EC, #3A3FC9); box-shadow: 0 12px 26px -10px rgba(65, 70, 216, .65); transform: rotate(-6deg); }
.login h1.title-h1 { margin: 0; line-height: 0; }
.title-img { width: min(76%, 260px); height: auto; display: block; margin: 6px auto 4px; }
.login-sub { color: var(--sub); font-size: 14px; margin-top: 10px; }
.login-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.login-feats span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--sub); }
.seg { display: flex; background: var(--field); border-radius: 12px; padding: 4px; }
.seg button { flex: 1; padding: 10px 0; border-radius: 9px; font-size: 14px; color: var(--sub); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(20, 24, 40, .12); }
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); margin: 16px 0 6px 2px; }
.err { color: var(--red); font-size: 13px; margin-top: 14px; white-space: pre-line; }
.err.ok { color: var(--green); }

/* 메인 틀 */
.top { padding: 14px 16px 10px 20px; position: sticky; top: 0; z-index: 5; isolation: isolate; }
/* 헤더 바탕: 네모 경계가 튀지 않게 아래쪽(PC 는 양옆도)을 하늘로 서서히 녹인다 */
.top::before { content: ''; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(247, 243, 234, .72), rgba(247, 243, 234, .5) 70%, rgba(247, 243, 234, 0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.top h1 { font-size: 24px; margin: 1px 0 0; }
/* 아이가 둘 이상: 이름 칩 줄 (한 번 눌러 바꾸기) */
.top.has-kids { flex-wrap: wrap; }
.kid-seg { flex-basis: 100%; display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.kid-seg::-webkit-scrollbar { display: none; }
.kid-seg .chip { flex: none; box-shadow: none; }
.kid-seg .chip.white { background: var(--pri-soft); color: var(--pri); }   /* 고른 아이와 아닌 아이는 색으로만 가른다 (그림자·띄움 없음) */
.top-date { font-size: 12px; font-weight: 700; color: var(--pri); letter-spacing: .02em; }
/* 형광펜 밑줄 */
.hl { position: relative; isolation: isolate; padding: 0 4px; margin: 0 -4px; }
.hl::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 54%; bottom: 6%; pointer-events: none;
  background: var(--hl); border-radius: 0.6em 0.35em 0.6em 0.4em / 0.5em 0.5em 0.5em 0.5em; transform: rotate(-1.2deg);
  box-shadow: 0 0 6px 1px var(--hl); opacity: .85; }
.sync { font-size: 11.5px; margin-top: 4px; color: var(--sub); }
.sync.bad { color: var(--amber); }
.content { padding: 0 16px 112px; }
/* 폰: 아래에 떠 있는 둥근 메뉴 */
.nav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6; border-radius: 22px;
  background: rgba(31, 42, 68, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 28px -8px rgba(20, 24, 40, .5); }
.nav .in { max-width: 700px; margin: 0 auto; display: flex; padding: 6px; gap: 2px; }
.nav button { flex: 1; padding: 7px 0 6px; font-size: 11px; color: rgba(255, 255, 255, .62); border-radius: 16px; }
.nav button span { display: block; font-size: 19px; margin-bottom: 2px; opacity: .6; filter: grayscale(.5); }
.nav button.on { color: var(--board); font-weight: 700; background: var(--hl); }
.nav button.on span { opacity: 1; filter: none; }
/* 👥(모임) 이모지는 OS 기본 색이 어두운 실루엣이라 칠판색 메뉴에 묻힌다 — 선택 안 됐을 때만 밝게 보정 */
.nav button.nav-team:not(.on) span { opacity: .75; filter: grayscale(.35) brightness(2.4); }
.nav-today { display: none; }

/* 달력 */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid .dow { text-align: center; font-size: 11.5px; padding: 12px 0 6px; color: var(--sub); }
.cal-grid .cell { height: 42px; display: flex; align-items: center; justify-content: center; }
.cal-grid .day { width: 36px; height: 36px; border-radius: 12px; font-size: 14px; transition: transform .12s; }
.sat { color: var(--blue) !important; } .sun { color: var(--red) !important; }
/* 기록한 날: 공부 시간이 길수록 진하게 (90분·180분 기준) */
.day.rec { font-weight: 700; color: #3A3FC9 !important; }
.day.lv1, .cal-legend .lv1 { background: #E6E8FD; }
.day.lv2, .cal-legend .lv2 { background: #BFC4FA; }
.day.lv3, .cal-legend .lv3 { background: #7D84F0; }
.day.lv3 { color: #fff !important; }
.day.today { box-shadow: inset 0 0 0 2px #F2B705; font-weight: 700; }
.day.sel { background: var(--board); color: #fff !important; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(31, 42, 68, .7); transform: scale(1.06); }
.day.sel.today { box-shadow: inset 0 0 0 2px var(--hl), 0 4px 10px -4px rgba(31, 42, 68, .7); }
.cal-foot { gap: 6px; margin-top: 12px; align-items: stretch; }
.cal-stat { background: var(--field); border-radius: 14px; padding: 9px 10px; min-width: 0; }
.cal-stat b { display: block; font-size: 14.5px; line-height: 1.25; word-break: keep-all; }
.cal-stat span { display: block; font-size: 11px; color: var(--sub); margin-top: 2px; }
.cal-stat.hot { background: var(--hl-soft); }
.cal-legend { justify-content: flex-end; gap: 4px; margin-top: 8px; font-size: 10.5px; color: var(--faint); }
.cal-legend i { width: 11px; height: 11px; border-radius: 3px; }

/* 노트 */
.day-head { padding: 24px 4px 4px; }
.day-head .title { font-size: 21px; font-weight: 800; }
.day-prog { gap: 10px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--pri); }
.day-prog .bar { height: 10px; border-radius: 99px; background: rgba(65, 70, 216, .1); overflow: hidden; }
.day-prog .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7D84F0, #4146D8); transition: width .3s; }
/* 카테고리 카드: 왼쪽에 과목 색 띠 */
.cat-card { position: relative; overflow: hidden; padding-left: 20px; }
.cat-card .dot { display: none; }
.cat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.cat-card .quick .chip { background: var(--card); border: 1px solid var(--line); }
.cat-card .quick .chip.red { background: var(--red-soft); border-color: transparent; }
.cat-card .add-book { background: var(--cs); box-shadow: inset 0 0 0 1.5px var(--c); color: var(--c); border-radius: 10px; }
.en-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--c); background: var(--cs); padding: 3px 6px; border-radius: 6px; margin-right: 6px; }
.day-head .total { font-size: 13px; font-weight: 700; color: var(--sub); text-align: right; white-space: pre-line; }
.dot { width: 10px; height: 10px; border-radius: 99px; margin-right: 8px; flex: none; }
.time { font-size: 16px; font-weight: 800; padding: 6px 12px; border-radius: 12px; background: var(--field); color: var(--faint); font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: 6px; margin-top: 12px; }
.quick .chip { flex: 1; padding: 9px 0; }
.quick .chip.edit { flex: none; width: 38px; font-size: 15px; }
@media (max-width: 360px) { .cat-card .quick { gap: 4px; } .cat-card .quick .chip { font-size: 11px; } .cat-card .quick .chip.edit { width: 32px; font-size: 14px; } }
.books { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: flex-start; }
.book { width: 62px; flex: none; text-align: left; position: relative; }
.bk-who { position: absolute; top: 3px; left: 3px; padding: 1px; border-radius: 99px; background: rgba(255, 255, 255, .85); line-height: 0; max-width: 56px; overflow: hidden; }
.bk-who .who-row { gap: 1px; }
.bk-who .who { width: 15px; height: 15px; font-size: 9px; }
.cover { display: block; background: linear-gradient(160deg, #EEE8DA, #E2DACA); border-radius: 4px 8px 8px 4px; object-fit: cover; flex: none;
  box-shadow: inset 3px 0 0 rgba(0, 0, 0, .08), 0 3px 8px -3px rgba(60, 40, 10, .35); }
/* 같은 날 같은 책 여러 번: 표지 오른쪽 위 「×N」 */
.bk-n { position: absolute; top: 3px; right: 3px; min-width: 20px; padding: 1px 5px; border-radius: 99px; background: var(--pri); color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.book .t { font-size: 10.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book .lx { font-size: 10px; font-weight: 700; color: var(--pri); margin-top: 2px; }
.book .lx.vd { color: var(--sub); }
.book .lx.cm { color: var(--green); }
.video-list { margin-top: 6px; }
.video-row { padding: 10px 0; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); }
.video-row:first-child { border-top: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 노트 항목의 '최근에 넣은 책' 줄 */
.recent { margin-top: 8px; }
.recent:empty { display: none; }
.recent-tg { font-size: 12px; font-weight: 700; color: var(--sub); padding: 4px 2px; }
.recent-list { display: flex; gap: 6px; overflow-x: auto; margin-top: 4px; padding-bottom: 2px; }
.recent-chip { flex: none; display: flex; align-items: center; max-width: 190px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 12px; }
.recent-chip .rp { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 2px 4px 4px; text-align: left; }
.recent-chip .rx { flex: none; padding: 4px 8px; color: var(--faint); font-size: 11px; }
.recent-chip .cover { width: 22px; height: 31px; }
.recent-chip .rt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-chip.ing { max-width: 240px; border-color: var(--pri, var(--line)); }
.recent-chip .rn { flex: none; color: var(--sub); font-weight: 700; }
.add-book { flex: none; border-radius: 8px; background: var(--pri-soft); box-shadow: inset 0 0 0 1px #D5D9FF; color: var(--pri); font-size: 12.5px; font-weight: 700; line-height: 1.3; }

/* 표 (계획·분석) */
.t-row { display: flex; align-items: center; border-radius: 8px; }
.t-row.k1 { background: #F8F5EE; } .t-row.k2 { background: var(--pri-soft); }
.t-row .lb { padding: 9px 0 9px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.t-row .c { flex: 1; text-align: center; padding: 9px 1px; white-space: pre-line; min-width: 0; }
.p-cell { flex: 1; height: 36px; margin: 1.5px; border-radius: 8px; font-size: 10.5px; background: var(--field); color: var(--faint); min-width: 0; }
.p-cell.out { background: none; cursor: default; }
.track { flex: 1; height: 8px; border-radius: 99px; background: var(--field); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; }

/* 대화상자·알림 */
.modal-bg { position: fixed; inset: 0; z-index: 20; background: rgba(20, 24, 40, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card); border-radius: 24px; padding: 22px; width: 100%; max-width: 380px; max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; animation: pop .16s ease-out; }
/* 스크롤은 안쪽 내용만. 창 둥근 모서리 안쪽에 얇게 그린다 */
.modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.22) transparent; }
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.22); border-radius: 99px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal h2, .modal .acts { flex: none; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal h2 { font-size: 17px; margin: 0 0 12px; }
.modal .msg { white-space: pre-line; color: var(--sub); font-size: 14px; }
.modal .item { display: block; width: 100%; text-align: left; padding: 13px 4px; font-size: 15px; border-top: 1px solid var(--line); }
.modal .item:first-of-type { border-top: 0; }
.modal .acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; }
.modal .acts button { padding: 9px 14px; border-radius: 10px; font-weight: 700; color: var(--pri); }
.modal .acts button.left { margin-right: auto; color: var(--sub); }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 30; background: rgba(27, 31, 42, .92); color: #fff;
  font-size: 13px; padding: 10px 16px; border-radius: 99px; max-width: 90vw; text-align: center; }
.empty { text-align: center; color: var(--sub); font-size: 14px; padding-top: 56px; white-space: pre-line; line-height: 1.6; }

/* --- PC(넓은 화면): 메뉴는 왼쪽 세로줄, 내용은 여러 단 --- */
.brand { display: none; }
@media (min-width: 1000px) {
  #app.main { max-width: none; margin: 0 0 0 220px; }
  .top, .content { max-width: 1240px; margin: 0 auto; }
  .top { padding: 22px 28px 14px 32px; }
  .top::before { -webkit-mask-image: linear-gradient(#000 55%, transparent), linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 55%, transparent), linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-composite: intersect; }
  .top h1 { font-size: 30px; }
  /* PC: 아이 이름 칩은 줄을 바꾸지 않고 제목 줄 오른쪽(☰ 앞)에 둔다 — 머리가 높아지면 따라오는 달력(top: 92px)과 겹친다 */
  .top.has-kids { flex-wrap: nowrap; }
  .top.has-kids > .kid-seg { flex: 0 1 auto; min-width: 0; margin: 0 10px 0 0; order: 1; }
  .top.has-kids > .wx-slot, .top.has-kids > .chip { order: 2; }
  .content { padding: 0 28px 48px; }
  .content > .empty { grid-column: 1 / -1; }
  .toast { bottom: 32px; left: calc(50% + 110px); }

  /* PC: 왼쪽 칠판색 메뉴 */
  .nav { top: 0; left: 0; right: auto; bottom: 0; width: 220px; padding: 24px 14px; border-radius: 0; display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--board2), var(--board)); box-shadow: none; }
  .brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #fff; padding: 0 8px 26px; }
  .brand-img { width: 150px; height: auto; display: block; }
  .brand .logo { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--hl); transform: rotate(-6deg); }
  .nav .in { flex-direction: column; gap: 4px; max-width: none; padding: 0; margin: 0; }
  .nav button { flex: none; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; text-align: left; }
  .nav button:not(.on):hover { background: rgba(255, 255, 255, .08); filter: none; }
  .nav button span { display: inline; margin: 0; font-size: 18px; }
  .nav-today { display: block; margin-top: auto; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); color: #fff; }
  .nav-today .k { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
  .nav-today .v { font-size: 22px; font-weight: 800; margin: 4px 0 6px; color: var(--hl); }
  .nav-today .k.split { margin: -2px 0 6px; color: rgba(255, 255, 255, .8); }

  /* 노트: 왼쪽 달력(따라옴) + 오른쪽 그날의 카드 여러 단 */
  .tab-note { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
  .note-cal { position: sticky; top: 92px; }
  .tab-note > .range-view { grid-column: 1 / -1; }   /* 기간·항목 골라 보기는 노트 두 칸 틀을 통째로 쓴다 */
  .note-day { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .note-day > .card { margin-top: 0; }
  .note-day > .day-head, .note-day > .wide { grid-column: 1 / -1; }
  .note-day > .day-head { padding-top: 2px; }

  /* 계획 목록: 카드 여러 단 */
  .plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .plan-list > .card { margin-top: 0 !important; }
  .plan-list > .btn { grid-column: 1 / -1; width: auto; justify-self: start; padding: 12px 22px; }
  .plan-list > .empty { grid-column: 1 / -1; }

  /* 계획 편집: 왼쪽 설정·세부계획, 오른쪽 주차별 표 */
  .plan-edit { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 24px; }
  .pe-bar { grid-column: 1 / -1; }
  .pe-set { grid-column: 1; grid-row: 2; }
  .pe-memo { grid-column: 1; grid-row: 3; align-self: start; }
  .pe-weeks { grid-column: 2; grid-row: 2 / span 2; }
  .pe-hint { margin-top: 12px !important; }
  .pe-weeks .p-cell { height: 40px; font-size: 12.5px; }
  .pe-weeks .lb, .pe-weeks .t-row .c { font-size: 12.5px !important; }

  /* 분석: 왼쪽 이번 달 요약(따라옴), 오른쪽 주차별 표 */
  .stat-cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
  .stat-cols > :first-child { position: sticky; top: 92px; }
  .stat-cols > :first-child > .card:first-child { margin-top: 0; }
  .stat-weeks > .card:first-child { margin-top: 0 !important; }
  .stat-weeks .lb, .stat-weeks .t-row .c { font-size: 13px !important; }
  .stat-weeks .t-row .lb { padding-left: 8px; }

  /* 책: 왼쪽 찾기, 오른쪽 넣은 책 목록 */
  .book-cols { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start; }
  .book-cols .list-title { margin-top: 2px !important; }
}

/* 카메라 바코드 스캔 */
.scan-bg { position: fixed; inset: 0; z-index: 25; background: #000; display: flex; align-items: center; justify-content: center; }
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: relative; width: min(82vw, 420px); height: min(34vw, 170px); border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
.scan-bg.under { z-index: 15; }   /* 이어 찍기 중 확인 창(.modal-bg 20)을 카메라 위로 — 영상은 멈추지 않게 숨기지 않는다 */
.scan-frame { transition: border-color .15s, background-color .15s; }
.scan-frame.hit { border-color: #3DDC84; background: rgba(61, 220, 132, .28); }
.scan-hint { position: absolute; left: 20px; right: 20px; top: calc(50% + min(17vw, 85px) + 22px); color: #fff; text-align: center; font-size: 14px; line-height: 1.5; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.scan-close { position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 12px 34px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1B1F2A; font-size: 15px; font-weight: 700; }

/* 책 점수 */
.book .sc { font-size: 10px; font-weight: 700; color: var(--amber); margin-top: 2px; }
.sc-chip { color: var(--amber); background: #FEF3E2; }
.scan-count { position: absolute; left: 16px; right: 16px; top: calc(64px + env(safe-area-inset-top)); padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.books-n { margin-top: 10px; }
.books-n:empty { display: none; }
.scan-swap { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top)); padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700; }
.scan-top { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top)); display: flex; gap: 8px; align-items: center; }
.scan-top .scan-swap { position: static; }
/* 노트 이어 찍기: 카메라를 켜 둔 채 넣을 항목 고르기 (닫기 단추 바로 위, 많으면 옆으로 민다) */
.scan-cats { position: absolute; left: 0; right: 0; bottom: calc(88px + env(safe-area-inset-bottom)); display: flex; gap: 7px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scan-cats::-webkit-scrollbar { display: none; }
.scan-cats > :first-child { margin-left: auto; }
.scan-cats > :last-child { margin-right: auto; }
.scan-cat { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.scan-cat.on { background: #fff; color: #1B1F2A; }

/* 모임방 */
.team-code { background: var(--hl-soft); border: 1.5px dashed #E8C440; border-radius: 14px; padding: 10px 12px; }
.team-note { margin-top: 12px; background: var(--field); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.team-result { margin-top: 10px; border: 1px solid #F0E2B0; border-top: 4px solid #F2C94C; border-radius: 16px; padding: 12px 14px; position: relative; background: #FFFCF0; }
.team-result::after { content: '★'; position: absolute; right: 12px; top: 8px; color: #F2B705; font-size: 15px; }
.team-cmts { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.team-cmt { padding: 5px 0; line-height: 1.45; }
.tab-team .team-post { margin-top: 12px; }
.ava { width: 34px; height: 34px; border-radius: 99px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.team-cmts { background: var(--field); border: 0 !important; border-radius: 14px; padding: 8px 12px 10px !important; }
.team-cmts .input { background: #fff; }
@media (min-width: 1000px) {
  .team-cols { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start; }
  /* 왼쪽 칸은 따라온다. 화면보다 길면 top 을 teamSide()(app.js)가 줄여, 화면과 함께 내려가다 아래 끝(글쓰기 「올리기」)이 보이는 데서 멈춘다 (건의 #18) — 칸 안 스크롤바는 두지 않는다 */
  .team-side { position: sticky; top: 92px; }
  .team-cols .list-title { margin-top: 2px !important; }
}
.chip.recruit { background: #E3F6EA; color: #1E8E4E; }
/* 모임원 학습기록 */
.rec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rec-table th { font-size: 11px; color: var(--sub); font-weight: 700; text-align: left; padding: 4px 4px 6px; }
.rec-table td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.rec-table tr.me td { background: var(--hl-soft); }
.rec-table tbody tr:nth-child(1) td:first-child::before { content: '🥇'; } .rec-table tbody tr:nth-child(2) td:first-child::before { content: '🥈'; }
.rec-table tbody tr:nth-child(3) td:first-child::before { content: '🥉'; }
.rec-table tbody tr:nth-child(-n+3) td:first-child { font-size: 0; } .rec-table tbody tr:nth-child(-n+3) td:first-child::before { font-size: 15px; }
.card.rec-kid { padding-top: 12px; padding-bottom: 12px; }
.rec-head { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rec-head .rec-line { display: block; margin-top: 4px; }
.rec-day { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--field); }
.rec-cat { margin-top: 8px; }
.rec-text { margin-top: 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; color: var(--text, inherit); }
.rec-book { gap: 8px; margin-top: 5px; }
.rec-book .cover { flex: none; }
/* 💗 코멘트 하트 (숫자만, 누른 사람은 보이지 않는다) */
.heart { flex: none; border: 1px solid var(--line); background: var(--card, #fff); color: var(--sub); border-radius: 999px; padding: 1px 9px; font-size: 12px; line-height: 1.6; cursor: pointer; font-family: inherit; }
.heart.on { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
.heart.ro { cursor: default; border-color: transparent; background: none; color: #e11d48; padding: 1px 4px; }
.cm-hrow { display: flex; align-items: flex-start; gap: 6px; }
.cm-hrow > :first-child { flex: 1; min-width: 0; }
.cm-hrow > .heart { margin-top: 3px; }
.post-heart { display: flex; margin-top: 10px; }
.post-heart > .heart { padding: 3px 14px; font-size: 13px; }
.post-heart > .heart.ro { padding: 1px 4px; }
.rec-cm { margin: 3px 0 0 34px; color: var(--sub); line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
.tb-row { gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.tb-row .cover { flex: none; }
.tb-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* 노트 항목 늘리기·줄이기 */
.cat-set-btn { width: 100%; margin-top: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }
.cat-set-ico { flex: none; width: 36px; height: 36px; margin-left: 8px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 18px; line-height: 1; padding: 0; cursor: pointer; }
.cat-set { max-height: 62vh; overflow-y: auto; }
.cat-set-row { gap: 6px; margin-top: 6px; }
.cat-set-row .input { min-width: 0; padding: 9px 10px; }
.cat-set-row .kind-chip { flex: none; }
.cat-set-row .kind-chip.vd { color: #DC2626; background: #FEE2E2; }
.cat-set-row .kind-chip.ls { color: #4F46E5; background: #E0E7FF; }
.cat-dot { width: 22px; height: 22px; flex: none; border: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--field); cursor: pointer; }
.icon-btn.sm { margin-left: 0; width: 30px; height: 30px; flex: none; font-size: 14px; background: var(--field); }
.icon-btn.sm:disabled { opacity: .3; }
.icon-btn.sm.red { color: #E5484D; }
@media (min-width: 1000px) { .note-day .cat-set-btn { grid-column: 1 / -1; margin-top: 0; } }
.db-tag { background: var(--hl-soft); color: #8A6A00; }

/* --- more.js: 탭 안 작은 메뉴, 읽은책·기록·도전·보물, 연간·도장판, 더보기 --- */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav .chip { flex: none; padding: 9px 14px; }
.nav button { min-width: 0; white-space: nowrap; }
.stars { display: flex; gap: 4px; }
.stars button { font-size: 30px; line-height: 1; color: var(--line); }
.stars button.on, .star-txt { color: #F2B705; }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 190px; }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.bar-v { font-size: 9.5px; color: var(--sub); height: 16px; white-space: nowrap; overflow: hidden; }
.bar-box { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line); }
.bar-box i { display: block; width: 42%; max-width: 16px; min-height: 0; border-radius: 4px 4px 0 0; }
.bar-l { font-size: 10.5px; color: var(--sub); padding-top: 5px; }
.hbars { display: none; }
@media (max-width: 999.98px) {
  .mo-bars { display: none; }
  .hbars { display: flex; flex-direction: column; margin-top: 4px; }
  .hbar-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 26px; padding: 3px 0; text-align: left; border-radius: 6px; }
  .hbar-row:active { background: var(--field); }
  .hbar-l { width: 30px; flex: none; font-size: 12px; color: var(--sub); text-align: right; }
  .hbar-box { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 18px; border-left: 1px solid var(--line); }
  .hbar-box i { display: block; height: 9px; min-width: 0; border-radius: 0 4px 4px 0; }
  .hbar-box i.peer { height: 4px; }
  .hbar-v { width: 64px; flex: none; font-size: 12px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
}
.x-scroll { overflow-x: auto; }
.num-table { border-collapse: collapse; font-size: 12px; min-width: 100%; font-variant-numeric: tabular-nums; }
.num-table th, .num-table td { padding: 7px 6px; text-align: right; white-space: nowrap; border-top: 1px solid var(--line); }
.num-table thead th { border-top: 0; color: var(--sub); font-size: 11px; }
.num-table tbody th { text-align: left; font-weight: 700; position: sticky; left: 0; background: var(--card); }
.num-table tr.sum td, .num-table tr.sum th { background: #F8F5EE; font-weight: 700; }
/* 가장 많이 읽은 칸 (건의 #75) */
.num-table td.top { background: var(--pri-soft); color: var(--pri); font-weight: 700; }
.lg.top-lg { background: var(--pri-soft); border: 1px solid var(--pri); }
/* 영어책 종류별 카드 (건의 #75) */
.ek-stack { flex: none; height: 18px; margin-top: 10px; }
.ek-row, .ek-mo { width: 100%; gap: 8px; text-align: left; border-radius: 6px; }
.ek-row { margin-top: 9px; }
.ek-mo { margin-top: 6px; }
.ek-row:active, .ek-mo:active { background: var(--field); }
.ek-name { width: 84px; flex: none; white-space: nowrap; }
.ek-mo-l { width: 30px; flex: none; text-align: right; }
.ek-val { width: 96px; flex: none; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ek-mo .ek-val { width: 64px; }
.trees { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin-top: 14px; }
.tree { text-align: center; min-width: 0; }
.tree span { display: block; font-size: 24px; line-height: 1.1; opacity: .25; filter: grayscale(1); }
.tree.full span, .tree.part span { opacity: 1; filter: none; }
.tree small { display: block; font-size: 9px; color: var(--sub); height: 12px; white-space: nowrap; }
.treasures { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.treasure { padding: 12px 4px 10px; border-radius: 16px; background: #FFFCF0; border: 1px solid #F0E2B0; text-align: center; }
.treasure span { display: block; font-size: 34px; line-height: 1.15; }
.treasure b { display: block; font-size: 12px; margin-top: 4px; }
.treasure small { display: block; font-size: 10px; color: var(--faint); margin-top: 2px; }
.ratio { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: var(--field); }
.ym-row { gap: 8px; padding: 6px 0; }
.stack { flex: 1; display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--field); }
.stack i { display: block; height: 100%; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stamp { border-radius: 16px; background: var(--field); padding: 10px 4px; text-align: center; }
.stamp.future { opacity: .45; }
.stamp-m { font-size: 12px; font-weight: 700; color: var(--sub); }
.stamp-i { width: 66px; height: 66px; margin: 8px auto; border-radius: 99px; border: 2px dashed var(--faint); display: flex; align-items: center; justify-content: center; }
.stamp.ok { background: var(--hl-soft); }
.stamp.ok .stamp-i { border: 3px double var(--red); color: var(--red); transform: rotate(-12deg); }
.stamp.ok .stamp-i span { font-size: 12.5px; font-weight: 800; line-height: 1.15; width: 40px; }
.stamp-n { font-size: 11px; color: var(--sub); height: 14px; }
.more-grid { display: grid; grid-template-columns: 1fr; }
.more-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 2px; border-top: 1px solid var(--line); }
.more-item .mi { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.more-item b { display: block; font-size: 14.5px; }
.more-item small { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; }
@media (min-width: 1000px) {
  .book-cols > .card, .book-cols > div > .card:first-child { margin-top: 0; }
  .stat-cols > .stamps { grid-template-columns: repeat(4, 1fr); }
  .stat-cols > .card { margin-top: 0; }
  .more-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

/* --- 인쇄: 화면에서는 #print 를 감추고, 인쇄할 때는 #print 만 낸다 --- */
#print { display: none; }
@media print {
  html, body { background: #fff !important; background-image: none !important; }
  body > *:not(#print) { display: none !important; }
  /* 얇은 테두리(.8pt)가 인쇄 영역 오른쪽 끝에 닿으면 잘려서 좌우로 2pt 띄운다 */
  #print { display: block; color: #000; font-size: 11pt; line-height: 1.4; padding: 0 2pt; }
  #print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pg { break-after: page; }
  .pg:last-child { break-after: auto; }
  .p-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12pt; border-bottom: 2.5pt solid #000; padding-bottom: 5pt; margin-bottom: 10pt; }
  .p-head h1 { font-size: 20pt; margin: 0; }
  .p-sub { font-size: 10.5pt; text-align: right; white-space: pre-wrap; }
  .p-table { width: 100%; border-collapse: collapse; margin-bottom: 10pt; table-layout: fixed; }
  .p-table th, .p-table td { border: .8pt solid #555; padding: 4pt 5pt; text-align: center; font-size: 10pt; word-break: break-all; }
  .p-table th { background: #EEE; font-weight: 700; }
  .p-table td.l { text-align: left; word-break: normal; }
  .p-table.tall td, .p-table.tall tbody th { height: 29pt; vertical-align: top; }
  .p-plan { font-size: 8pt; color: #777; float: left; }
  .p-table.small { table-layout: auto; }
  .p-table.small th, .p-table.small td { font-size: 9pt; padding: 3pt 4pt; }
  .p-table.small tr { break-inside: avoid; }
  .p-table.reads { table-layout: fixed; }
  .p-table.reads td.l { word-break: normal; overflow-wrap: anywhere; }
  .p-table.reads td.p-rt { font-size: 8pt; letter-spacing: 0; white-space: nowrap; overflow: hidden; padding: 3pt 1pt; }
  .p-table.reads.img td { vertical-align: middle; }
  .p-table.reads td.pic { padding: 2pt; }
  .p-cover { display: block; width: 100%; max-width: 14mm; height: 19mm; object-fit: contain; margin: 0 auto; }
  .p-table.cal td { height: 42pt; vertical-align: top; text-align: left; padding: 3pt 4pt; }
  .p-table.cal td.off { background: #F4F4F4; }
  .p-dn { font-size: 9pt; color: #555; }
  .p-dv { font-size: 10.5pt; font-weight: 700; text-align: center; margin-top: 3pt; }
  .p-table.form th { width: 16%; } .p-table.form td { height: 24pt; }
  .p-stars { font-size: 16pt; letter-spacing: 3pt; }
  .p-kv { display: flex; gap: 8pt; margin-bottom: 10pt; }
  .p-kv div { flex: 1; border: .8pt solid #555; border-radius: 6pt; padding: 6pt 8pt; }
  .p-kv span { display: block; font-size: 9pt; color: #555; } .p-kv b { font-size: 13pt; }
  .p-note { font-size: 9.5pt; color: #444; margin: 2pt 0 10pt; white-space: pre-wrap; }
  .p-label { font-size: 10.5pt; font-weight: 700; margin-bottom: 2pt; }
  .p-lines { margin-top: 12pt; break-inside: avoid; }
  .p-line { height: 22pt; border-bottom: .8pt solid #888; }
  .p-two { display: flex; gap: 10mm; } .p-two > div { flex: 1; margin-top: 4pt; }
  .p-box { border: .8pt solid #555; border-radius: 6pt; padding: 8pt 10pt; margin-bottom: 10pt; break-inside: avoid; }
  .p-box.draw { height: 200pt; }
  .p-board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5pt; margin: 14pt 0; }
  .p-board div { aspect-ratio: 1; border: 1.2pt solid #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10pt; color: #999; }
  .p-board div.ten { border-width: 2.4pt; color: #000; font-weight: 700; }
  .p-coupons { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 62mm; gap: 5mm; }
  .p-coupon { border: 1.6pt dashed #333; border-radius: 10pt; padding: 10pt; display: flex; flex-direction: column; text-align: center; break-inside: avoid; }
  .p-ck { font-size: 11pt; font-weight: 700; letter-spacing: 1pt; }
  .p-ct { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 19pt; font-weight: 800; word-break: keep-all; }
  .p-cf { font-size: 9.5pt; color: #333; margin-top: 2pt; }
  .p-word { display: flex; align-items: stretch; height: 21mm; margin-bottom: 3mm; border-top: .8pt solid #666; border-bottom: .8pt solid #666; break-inside: avoid; }
  .p-word div { flex: 1; display: flex; align-items: center; padding-left: 6pt; font-size: 26pt; white-space: nowrap; overflow: hidden; }
  .p-w1 { font-weight: 700; border-right: .8pt solid #666; } .p-w2 { color: #C8C8C8; } .p-w3 { flex: 1.4 !important; }
  .p-w2, .p-w3 { background: linear-gradient(transparent calc(50% - .3pt), #CCC calc(50% - .3pt), #CCC calc(50% + .3pt), transparent calc(50% + .3pt)); }
  .p-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8mm 6mm; }
  .p-times > div { border: .8pt solid #555; border-radius: 6pt; padding: 8pt 10pt; font-size: 14pt; line-height: 1.75; }
  .p-times b { display: block; font-size: 15pt; border-bottom: .8pt solid #555; margin-bottom: 4pt; }
}

/* 모임 게시판 글 HTML */
.post-body { margin-top: 8px; line-height: 1.55; word-break: break-word; overflow-wrap: anywhere; }
.plain-text, .rich.keep-nl { white-space: pre-wrap; }
.cmt-body { margin-left: 6px; word-break: break-word; }
.rich { overflow-x: auto; }
.rich.inline { overflow: visible; }
.rich > :first-child { margin-top: 0; } .rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .7em; }
.rich h1, .rich h2, .rich h3, .rich h4, .rich h5, .rich h6 { margin: .8em 0 .4em; line-height: 1.3; }
.rich h1 { font-size: 1.5em; } .rich h2 { font-size: 1.3em; } .rich h3 { font-size: 1.15em; }
.rich a { color: var(--pri); text-decoration: underline; }
.rich img { max-width: 100%; height: auto; border-radius: 10px; vertical-align: middle; }
.rich ul, .rich ol { margin: .4em 0 .7em; padding-left: 1.4em; }
.rich blockquote { margin: .6em 0; padding: 6px 12px; border-left: 4px solid var(--hl); background: var(--hl-soft); border-radius: 0 10px 10px 0; }
.rich pre, .rich code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--field); border-radius: 6px; }
.rich code { padding: 1px 5px; } .rich pre { padding: 10px 12px; white-space: pre-wrap; }
.rich pre code { padding: 0; background: none; }
.rich table { border-collapse: collapse; margin: .5em 0; max-width: 100%; }
.rich th, .rich td { border: 1px solid var(--line); padding: 5px 9px; }
.rich th { background: var(--field); }
.rich hr { border: 0; border-top: 1px dashed var(--line); margin: .8em 0; }
.rich mark { background: var(--hl); }
.post-look:not(:empty) { margin: 10px 0 0; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; }

/* 글에 붙인 책·영상 (attach.js) */
.bkatt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 10px; }
.bkatt-list:empty { display: none; }
.bkatt-card { position: relative; display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); text-align: left; }
.bkatt-card.click { cursor: pointer; }
.bkatt-card > .cover { flex: none; }
.bkatt-tx { flex: 1; min-width: 0; }
.bkatt-t { font-size: 13px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.bkatt-s { margin-top: 3px; font-size: 11.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkatt-x { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(31,42,68,.8); color: #fff; font-size: 11px; line-height: 22px; text-align: center; padding: 0; }

/* 모임 글 첨부 파일 (건의 #80) */
.tfile-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tfile-list:empty { display: none; }
.tfile-item { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field, #f8fafc); }
.tfile-item.busy { opacity: .65; }
.tfile-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
button.tfile-go { cursor: pointer; }
button.tfile-go:hover .tfile-name { text-decoration: underline; }
.tfile-ic { flex: none; font-size: 16px; line-height: 1; }
.tfile-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfile-sz { flex: none; font-size: 11.5px; color: var(--sub); }
.tfile-dn { flex: none; font-size: 13px; color: var(--pri); }
.tfile-x { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(31,42,68,.8); color: #fff; font-size: 11px; line-height: 22px; text-align: center; padding: 0; cursor: pointer; }
.tfile-note { margin-top: 6px; font-size: 11.5px; color: var(--sub); line-height: 1.45; }
.tfile-note:empty { display: none; }

/* 게시글 사진 */
.pic-box { display: flex; flex-wrap: wrap; gap: 8px; }
.pic-box:not(:empty) { margin-top: 10px; }
.pic { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--field); border: 1px solid var(--line); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic.busy img { opacity: .45; }
.pic-wait { position: absolute; inset: auto 0 0 0; font-size: 10.5px; text-align: center; padding: 3px 0; background: rgba(255,255,255,.85); color: var(--sub); }
.pic-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(31,42,68,.8); color: #fff; font-size: 11px; line-height: 22px; text-align: center; }
.post-imgs { display: grid; gap: 6px; margin-top: 10px; }
.post-imgs.n1 { grid-template-columns: 1fr; }
.post-imgs.n2 { grid-template-columns: 1fr 1fr; }
.post-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.post-img { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--field); aspect-ratio: 1; cursor: zoom-in; }
.post-imgs.n1 .post-img { aspect-ratio: auto; max-height: 420px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-imgs.n1 .post-img img { height: auto; max-height: 420px; object-fit: contain; }
.img-view .img-big { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 10px; }
.modal:has(.img-view) { max-width: 820px; }

/* --- 가입 고지 · 광장(community.js) --- */
.notice { background: var(--field); border-radius: 14px; padding: 4px 14px; font-size: 12.5px; line-height: 1.55; color: var(--sub); max-height: 260px; overflow: auto; text-align: left; }
.notice > div { padding: 9px 0; border-top: 1px solid var(--line); }
.notice > div:first-child { border-top: 0; }
.notice b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.modal .notice { max-height: none; }
/* 이용 안내 창은 화면이 넓으면 넓게, 넓은 화면에선 두 단으로 */
.modal.notice-modal { max-width: min(760px, 92vw); }
/* 공지 한 건 — PC 에서는 넓은 창에 글자도 조금 크게 */
@media (min-width: 720px) { .modal.nt-modal { max-width: min(760px, 92vw); padding: 28px 32px; } .modal.nt-modal h2 { font-size: 20px; } .modal.nt-modal .modal-body > div > .plain-text { font-size: 15px; line-height: 1.75; } }
@media (min-width: 720px) { .modal.notice-modal .notice { column-count: 2; column-gap: 28px; } .modal.notice-modal .notice > div { break-inside: avoid; } .modal.notice-modal .notice { padding-top: 0; clip-path: inset(1px 0 0 0 round 14px); } .modal.notice-modal .notice > div:first-child { border-top: 1px solid var(--line); } }
.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font-size: 13.5px; line-height: 1.45; cursor: pointer; text-align: left; }
.check input { width: 19px; height: 19px; flex: none; margin: 1px 0 0; accent-color: var(--pri); }
.cm-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.cm-row:first-child { border-top: 0; }
.cm-title { font-weight: 700; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.cm-title .chip { margin-right: 6px; vertical-align: 1px; }
.cm-thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: var(--field); }
.cm-one { max-width: 760px; }
.cm-one.wide { max-width: 900px; }
.pf-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.pf-grid .pf-card { margin-top: 0; text-align: left; display: block; width: 100%; }
/* 포트폴리오 직접 넣은 기록 */
.pf-item { padding: 14px 0; border-top: 1px solid var(--line); }
.card > .row + .pf-item { border-top: 0; padding-top: 6px; }
.pf-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 14px 10px; justify-items: center; }
.pf-books .book { width: 62px; }
.pf-cm { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--field); line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
@media (min-width: 600px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .nav button { font-size: 10px; } .nav button span { font-size: 17px; } .nav .in { padding: 5px 4px; gap: 0; } }

/* 헤더 날씨 하늘 (weather.js) */
.wx-slot:empty { display: none; }
.wx { position: relative; display: block; margin-right: 8px; border-radius: 14px; box-shadow: 0 1px 2px rgba(20, 24, 40, .12); }
.wx-scene { position: relative; width: 64px; height: 44px; border-radius: 14px; overflow: hidden; background: linear-gradient(#6DB8F7, #BFE3FF); }
.wx-scene.big { width: 100%; height: 130px; border-radius: 18px; }
.wx-scene i { position: absolute; display: block; }
.wx-temp { position: absolute; right: 5px; bottom: 3px; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
/* 하늘 색 */
.wx-scene.day.sky-partly { background: linear-gradient(#80BFEF, #CFE6F7); }
.wx-scene.day.sky-cloudy, .wx-scene.day.sky-fog { background: linear-gradient(#A3B1C2, #D9E0E8); }
.wx-scene.day.p-rain, .wx-scene.day.p-sleet { background: linear-gradient(#7F8CA1, #B5BFCD); }
.wx-scene.day.p-snow { background: linear-gradient(#B9C7D6, #EDF2F7); }
.wx-scene.night { background: linear-gradient(#141B3F, #34407A); }
.wx-scene.night.sky-cloudy, .wx-scene.night.sky-fog, .wx-scene.night.p-rain, .wx-scene.night.p-sleet, .wx-scene.night.p-snow { background: linear-gradient(#232A3E, #475069); }
.wx-scene.thunder { background: linear-gradient(#4A5266, #7C8699); }
/* 해 */
.wx-scene .sun { width: 22px; height: 22px; left: 8px; top: 6px; border-radius: 50%; background: radial-gradient(#FFE98A, #FFC929); box-shadow: 0 0 10px 3px rgba(255, 214, 64, .7); }
.wx-scene .sun::before { content: ''; position: absolute; inset: -7px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 214, 64, .75) 0 8deg, transparent 8deg 30deg);
  -webkit-mask: radial-gradient(transparent 58%, #000 60%); mask: radial-gradient(transparent 58%, #000 60%); animation: wx-spin 14s linear infinite; }
/* 달 (초승달: 그림자로 깎는다) */
.wx-scene .moon { width: 18px; height: 18px; left: 9px; top: 6px; border-radius: 50%; box-shadow: 5px 3px 0 0 #FFF0A8; filter: drop-shadow(0 0 5px rgba(255, 240, 168, .55)); animation: wx-bob 6s ease-in-out infinite; }
.wx-scene .stars { inset: 0; }
.wx-scene .stars::before, .wx-scene .stars::after { content: ''; position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.wx-scene .stars::before { left: 0; top: 0; box-shadow: 40px 7px #fff, 52px 18px #fff, 33px 25px rgba(255,255,255,.7), 12px 33px #fff, 58px 4px rgba(255,255,255,.6); animation: wx-twinkle 2.6s ease-in-out infinite; }
.wx-scene .stars::after { left: 0; top: 0; box-shadow: 46px 30px #fff, 24px 12px rgba(255,255,255,.8), 6px 22px #fff, 30px 38px rgba(255,255,255,.6); animation: wx-twinkle 3.4s ease-in-out infinite .9s; }
.wx-scene.big .stars::before { transform: scale(2.4); transform-origin: 0 0; }
.wx-scene.big .stars::after { transform: scale(2.4) translateX(60px); transform-origin: 0 0; }
/* 구름 */
.wx-scene .cloud { width: 26px; height: 9px; border-radius: 9px; background: #fff; opacity: .95; animation: wx-drift 9s ease-in-out infinite alternate; }
.wx-scene .cloud::before, .wx-scene .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.wx-scene .cloud::before { width: 12px; height: 12px; left: 4px; top: -6px; }
.wx-scene .cloud::after { width: 15px; height: 15px; left: 11px; top: -9px; }
.wx-scene .cloud.c0 { left: 24px; top: 20px; }
.wx-scene .cloud.c1 { left: 2px; top: 30px; transform: scale(.8); animation-duration: 12s; animation-delay: -4s; }
.wx-scene .cloud.c2 { left: 36px; top: 9px; transform: scale(.9); animation-duration: 10s; animation-delay: -7s; }
.wx-scene.sky-cloudy .cloud, .wx-scene.p-rain .cloud, .wx-scene.p-sleet .cloud, .wx-scene.p-snow .cloud { background: #E6EAF0; }
.wx-scene.p-rain .cloud, .wx-scene.p-sleet .cloud, .wx-scene.thunder .cloud { background: #C3CAD5; top: 11px; }
.wx-scene.night .cloud { background: #8A93AE; opacity: .9; }
.wx-scene.big .cloud { zoom: 2.4; }
.wx-scene.big .cloud.c0 { left: 38%; } .wx-scene.big .cloud.c1 { left: 8%; } .wx-scene.big .cloud.c2 { left: 66%; }
.wx-scene.big .sun, .wx-scene.big .moon { zoom: 2.2; }
/* 안개 */
.wx-scene .fogband { left: -30%; width: 160%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .7); animation: wx-drift 6s ease-in-out infinite alternate; }
.wx-scene .fogband.f0 { top: 22%; } .wx-scene .fogband.f1 { top: 62%; animation-delay: -3s; }
/* 비·눈 */
.wx-scene .drop { top: -10px; width: 1.5px; height: 8px; border-radius: 2px; background: rgba(225, 238, 255, .95); animation: wx-rain .7s linear infinite; }
.wx-scene .flake { top: -6px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px rgba(255, 255, 255, .9); animation: wx-snow 3s linear infinite; }
.wx-scene.big .drop { height: 14px; width: 2px; }
.wx-scene.big .flake { width: 6px; height: 6px; }
.wx-scene .flash { inset: 0; background: #fff; opacity: 0; animation: wx-flash 5s linear infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-bob { 50% { transform: translateY(2px); } }
@keyframes wx-twinkle { 50% { opacity: .25; } }
@keyframes wx-drift { from { margin-left: -4px; } to { margin-left: 6px; } }
@keyframes wx-rain { to { transform: translate(-6px, 150px); } }
@keyframes wx-snow { 25% { margin-left: var(--sx); } 75% { margin-left: calc(var(--sx) * -1); } to { transform: translateY(150px); } }
@keyframes wx-flash { 0%, 90%, 94%, 100% { opacity: 0; } 91%, 95% { opacity: .75; } }
.wx-scene:not(.big) .drop { animation-name: wx-rain-s; } .wx-scene:not(.big) .flake { animation-name: wx-snow-s; }
@keyframes wx-rain-s { to { transform: translate(-4px, 60px); } }
@keyframes wx-snow-s { 25% { margin-left: var(--sx); } 75% { margin-left: calc(var(--sx) * -1); } to { transform: translateY(56px); } }
@media (prefers-reduced-motion: reduce) { .wx-scene *, .wx-scene *::before, .wx-scene *::after { animation-play-state: paused !important; } }
.wx-scene .haze { inset: 0; background: rgba(196, 160, 96, .22); } .wx-scene .haze.d2 { background: rgba(186, 146, 82, .36); } .wx-scene .haze.d3 { background: rgba(168, 128, 70, .5); }
.chip.air.a0 { background: #E3F0FF; color: #1D6FD1; } .chip.air.a1 { background: #E4F6E9; color: #15803D; }
.chip.air.a2 { background: #FFF0DC; color: #C2620A; } .chip.air.a3 { background: #FDE6E6; color: #C42B30; }

/* 화면 배경 전체 하늘 (weather.js wxBackdrop) — 내용 뒤에 은은하게 */
#app { position: relative; z-index: 1; }
.wx-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.wx-fg { z-index: 2; }   /* 내용 위(창·알림 아래). 누르는 데 방해하지 않는다 */
.wx-fg .bg-glare { right: -18vmax; top: -18vmax; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(rgba(255, 216, 100, .22), rgba(255, 220, 120, .08) 45%, transparent 70%); animation: wx-bob 16s ease-in-out infinite; }
.wx-fg.sky-partly .bg-glare { opacity: .6; }
.wx-fg .bg-veil { inset: 0; background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); }
.wx-fg.night .bg-veil { background: linear-gradient(rgba(190, 196, 215, .16), rgba(190, 196, 215, .08)); }
.wx-bg i { position: absolute; display: block; }
.wx-bg .bg-tint { inset: 0; background: linear-gradient(rgba(110, 182, 250, .30), rgba(150, 205, 255, .10) 45%, transparent 75%); transition: background 2s; }
.wx-bg.day.sky-partly .bg-tint { background: linear-gradient(rgba(128, 184, 236, .28), rgba(160, 200, 235, .08) 50%, transparent 78%); }
.wx-bg.day.sky-cloudy .bg-tint { background: linear-gradient(rgba(140, 152, 170, .30), rgba(160, 170, 185, .10) 55%, transparent 85%); }
.wx-bg.day.sky-fog .bg-tint { background: linear-gradient(rgba(215, 220, 226, .55), rgba(225, 228, 232, .35) 60%, rgba(235, 236, 238, .2)); }
.wx-bg.day.p-rain .bg-tint, .wx-bg.day.p-sleet .bg-tint { background: linear-gradient(rgba(100, 116, 145, .32), rgba(120, 135, 160, .12) 55%, transparent 90%); }
.wx-bg.day.p-snow .bg-tint { background: linear-gradient(rgba(176, 194, 218, .36), rgba(200, 214, 232, .14) 55%, transparent 90%); }
.wx-bg.night .bg-tint { background: linear-gradient(rgba(26, 34, 92, .34), rgba(40, 50, 110, .14) 50%, rgba(40, 50, 110, .05)); }
.wx-bg.night.sky-cloudy .bg-tint, .wx-bg.night.p-rain .bg-tint, .wx-bg.night.p-sleet .bg-tint, .wx-bg.night.p-snow .bg-tint
  { background: linear-gradient(rgba(38, 44, 66, .36), rgba(55, 62, 86, .14) 55%, rgba(55, 62, 86, .05)); }
.wx-bg.night.sky-fog .bg-tint { background: linear-gradient(rgba(70, 76, 100, .34), rgba(150, 155, 170, .22) 60%, rgba(180, 182, 190, .15)); }
/* 해·달 */
.wx-bg .bg-sun { right: 4%; top: 6px; width: 170px; height: 170px; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle, rgba(255, 228, 120, .95) 0 26%, rgba(255, 210, 80, .45) 34%, rgba(255, 214, 90, .12) 55%, transparent 70%); animation: wx-bob 12s ease-in-out infinite; }
.wx-bg .bg-sun::before { content: ''; position: absolute; inset: -60px; border-radius: 50%; opacity: .35;
  background: repeating-conic-gradient(rgba(255, 214, 90, .55) 0 5deg, transparent 5deg 22deg);
  -webkit-mask: radial-gradient(transparent 22%, #000 30%, transparent 70%); mask: radial-gradient(transparent 22%, #000 30%, transparent 70%); animation: wx-spin 80s linear infinite; }
.wx-bg .bg-moon { right: 12%; top: 96px; width: 64px; height: 64px; border-radius: 50%; opacity: .75; box-shadow: 16px 10px 0 0 #FFF1B5; filter: drop-shadow(0 0 18px rgba(255, 238, 160, .55)); animation: wx-bob 14s ease-in-out infinite; }
.wx-bg .veiled { opacity: .22; filter: blur(4px); }
.wx-bg .bg-star { width: calc(3px * var(--z)); height: calc(3px * var(--z)); border-radius: 50%; background: #FFF8DC; box-shadow: 0 0 6px 1px rgba(255, 244, 200, .8); opacity: .7; animation: wx-twinkle 3s ease-in-out infinite; }
/* 구름: 화면을 천천히 가로지른다 */
.wx-bg .bg-cloud { left: 0; width: var(--w); height: calc(var(--w) * .32); border-radius: 999px; background: rgba(255, 255, 255, .9); filter: blur(6px) drop-shadow(0 10px 14px rgba(110, 130, 165, .25)); opacity: .9; animation: wx-cross 120s linear infinite; }
.wx-bg .bg-cloud::before, .wx-bg .bg-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.wx-bg .bg-cloud::before { width: 45%; height: 140%; left: 14%; bottom: 20%; }
.wx-bg .bg-cloud::after { width: 38%; height: 120%; left: 46%; bottom: 25%; }
.wx-bg .bg-cloud.far { opacity: .5; transform: scale(.7); }
.wx-bg.sky-cloudy .bg-cloud, .wx-bg.p-rain .bg-cloud, .wx-bg.p-sleet .bg-cloud { background: rgba(176, 184, 198, .6); }
.wx-bg.p-snow .bg-cloud { background: rgba(214, 220, 230, .7); }
.wx-bg.night .bg-cloud { background: rgba(120, 128, 156, .45); }
/* 안개 */
.wx-bg .bg-fog { left: -40%; width: 180%; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .26); filter: blur(22px); animation: wx-sway 60s ease-in-out infinite alternate; }
.wx-bg.night .bg-fog { background: rgba(200, 205, 220, .22); }
/* 비·눈 */
.wx-bg .bg-drop { top: -40px; width: 1.5px; height: calc(30px * var(--z)); border-radius: 2px; background: linear-gradient(transparent, rgba(80, 110, 160, .34)); animation: wx-bg-rain 1.1s linear infinite; }
.wx-bg.night .bg-drop { background: linear-gradient(transparent, rgba(200, 215, 240, .45)); }
.wx-bg .bg-flake { top: -12px; width: calc(7px * var(--z)); height: calc(7px * var(--z)); border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(120, 140, 175, .55); opacity: .7; animation: wx-bg-snow 12s linear infinite; }
.wx-bg .bg-flash { inset: 0; background: #fff; opacity: 0; animation: wx-flash-bg 9s linear infinite; }
/* 미세먼지: 누런 뿌연 막 + 떠다니는 알갱이 */
.wx-bg .bg-haze { inset: 0; background: linear-gradient(rgba(206, 176, 120, .10), rgba(206, 176, 120, .05)); }
.wx-bg.dust2 .bg-haze { background: linear-gradient(rgba(196, 160, 100, .18), rgba(200, 170, 115, .10)); }
.wx-bg.dust3 .bg-haze { background: linear-gradient(rgba(180, 140, 84, .27), rgba(190, 155, 100, .17)); }
.wx-bg .bg-mote { width: calc(4px * var(--z)); height: calc(4px * var(--z)); border-radius: 50%; background: rgba(150, 118, 66, .35); filter: blur(.6px); animation: wx-mote 20s ease-in-out infinite; }
@keyframes wx-cross { from { transform: translateX(-120%); } to { transform: translateX(calc(100vw + 20%)); } }
@keyframes wx-sway { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
@keyframes wx-bg-rain { to { transform: translate(-60px, calc(100vh + 80px)); } }
@keyframes wx-bg-snow { 25% { margin-left: var(--sx); } 75% { margin-left: calc(var(--sx) * -1); } to { transform: translateY(calc(100vh + 30px)); } }
@keyframes wx-mote { 33% { transform: translate(40px, -30px); } 66% { transform: translate(-30px, 20px); opacity: .5; } }
@keyframes wx-flash-bg { 0%, 92%, 95%, 100% { opacity: 0; } 93%, 96% { opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .wx-bg *, .wx-bg *::before, .wx-bg *::after { animation-play-state: paused !important; } }

/* --- AI 평가 (ai.js) --- */
.ai-wait { text-align: center; line-height: 1.6; }
.ai-wait b { display: block; margin: 6px 0; }
.ai-grow-box { width: 100%; aspect-ratio: 16 / 9; margin: -6px 0 2px; border-radius: 16px; overflow: hidden; background: #fff; }
.ai-grow { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.ai-grow.fade { opacity: 0; }
.ai-spin { font-size: 40px; animation: ai-bob 1.2s ease-in-out infinite; }
@keyframes ai-bob { 50% { transform: translateY(-8px) rotate(8deg); } }
.ai-cards > .card:first-child { margin-top: 0; }
.ai-card .mi { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ai-card .sub { margin-top: 3px; line-height: 1.5; }
.ai-tip { font-size: 13.5px; line-height: 1.6; color: var(--sub); }
.ai-est { margin: 12px 0 8px; font-weight: 700; line-height: 1.5; }
.ai-text { white-space: pre-wrap; line-height: 1.75; font-size: 15px; background: var(--field); border-radius: 14px; padding: 14px; word-break: break-word; }
.ai-text.fixed { background: var(--pri-soft); }
.ai-q { margin-top: 16px; }
.ai-choice { display: flex; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.ai-choice .no { flex: none; color: var(--sub); }
.ai-choice.on { border-color: var(--pri); background: var(--pri-soft); font-weight: 700; }
.ai-choice.right { border-color: #1E8E4E; background: #E3F6EA; }
.ai-choice.wrong { border-color: var(--red); background: var(--red-soft); }
.ai-choice:disabled { cursor: default; }
.ai-why { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--sub); }
.ai-sec { margin-top: 16px; }
.ai-h { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ai-p { line-height: 1.7; font-size: 14px; white-space: pre-wrap; }
.ai-cheer { background: var(--hl-soft); border-radius: 14px; padding: 12px 14px; }
.ai-ul { margin: 0; padding-left: 20px; line-height: 1.65; font-size: 14px; }
.ai-ul li { margin-top: 4px; }
.ai-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.ai-scores > div { background: var(--field); border-radius: 14px; padding: 10px 12px; line-height: 1.45; }
.ai-stars { color: #EAB308; letter-spacing: 1px; }
.ai-fix { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.ai-fix:first-child { border-top: 0; }
.ai-fix s { color: var(--red); }
@media (min-width: 1000px) { .ai-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .ai-cards > .card { margin-top: 0; } }
@media print { .ai-print .ai-text, .ai-print .ai-scores > div, .ai-print .ai-cheer { background: none; border: 1px solid #bbb; } .ai-print .ai-sec { break-inside: avoid; } }
.ai-engine { margin-top: 0; border: 1px dashed var(--line); }
.ai-engine .seg button[disabled] { opacity: .4; }
.ai-engine .seg { flex: none; }
.ai-engine .seg button { white-space: nowrap; padding: 8px 14px; flex: none; }
/* 유튜브 플레이어 창 */
.modal.wide { max-width: 720px; }
.yt-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cm-line { margin-top: 4px; color: var(--sub); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }

/* 회원 평균 점수 줄 (app.js avgScore) */
.avg-sc { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--pri); }
.avg-sc.small { margin-top: 3px; font-size: 12px; font-weight: 500; }
.avg-sc.none { color: var(--sub); font-weight: 500; }
.rd-range { gap: 6px; margin-top: 8px; align-items: center; }
.rd-range .input { flex: 1; min-width: 0; padding-top: 8px; padding-bottom: 8px; }
/* 제목 찾기에서 여러 권 고르기: 넣은 권수 띠, 넣은 줄 */
.pick-count { margin: 4px 0 6px; padding: 8px 12px; border-radius: 10px; background: var(--cs, #eef4ff); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.picked { opacity: .55; }

/* 학습노트 메모 HTML·사진 (noteRich, dayRecord) */
.note-rich-bar { margin-top: 6px; }
.note-rich-bar .chip[disabled] { opacity: .6; }
.rich-ed { white-space: normal; overflow-wrap: anywhere; cursor: text; overflow-x: hidden; -webkit-user-select: text; user-select: text; }
.rich-ed:empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.rich-ed.ro { cursor: default; }
.rich-ed img { max-width: min(100%, 320px); }
.fx-html { flex: none; border: 0; background: none; color: var(--faint); font-size: 11px; padding: 4px 6px; text-decoration: underline; cursor: pointer; }
.note-day.locked .fx-bar, .note-day.locked .fx-html, .note-day.locked .fx-pal { display: none; }
.rec-text .rich:not(.keep-nl) { white-space: normal; }
.rec-text .rich img { max-height: 320px; }
.rec-memo { display: flex; gap: 6px; align-items: flex-start; }
.rec-memo > .rich, .rec-memo > .plain-text { flex: 1; min-width: 0; }

/* 모임이 읽은 책 · 점수별 묶음 제목 */
.sc-band { margin: 14px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line, #e5e7eb); }

/* 별점: 회색 별 위에 점수만큼 노란 별을 덮는다 */
.sc-stars { position: relative; display: inline-block; color: #D9DEE5; white-space: nowrap; line-height: 1; letter-spacing: 0.5px; }
.sc-stars .on { position: absolute; left: 0; top: 0; overflow: hidden; color: #F5A623; }
.book .sc .sc-stars { font-size: 10px; letter-spacing: 0; }
.bw-pick { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bw-pick .chip { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.chip.bw-best, .chip.on.bw-best { color: #B45309; background: #FEF3E2; border-color: #F5A623; }
.chip.bw-worst, .chip.on.bw-worst { color: #475569; background: #E9EDF2; border-color: #94A3B8; }
.bw-ages { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; font-weight: 500; }
.star-pick { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.star-pick button { font-size: 34px; line-height: 1; padding: 2px 4px; border: 0; background: none; color: #D9DEE5; cursor: pointer; }
.star-pick button.on { color: #F5A623; }
.best-chip { color: #B45309; background: #FDE9B8; font-weight: 700; }
/* 학습 결과 카드: 코멘트를 누르지 않아도 두 줄까지 */
.book .lx.cm-peek { font-weight: 500; line-height: 1.3; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
/* 저장 줄: 상태 글 + 💾 저장 버튼 */
.sync.row { gap: 8px; align-items: center; flex-wrap: wrap; }
.sync .save-btn { padding: 3px 10px; }
/* 🏆 베스트 고르기 단추 (모임장) */
.best-pick { color: #B45309; background: #fff; border: 1px dashed #F5C77E; }
.best-pick.on { background: #FDE9B8; border-style: solid; }
/* 건의 게시판 (suggest.js) */
.sg-item { display: block; width: 100%; text-align: left; padding: 10px 2px; border-top: 1px solid var(--line); background: none; }
.sg-item .sg-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; justify-content: center; gap: 3px; margin-top: 10px; }
.pager .chip { flex: 0 1 32px; min-width: 0; min-height: 32px; padding: 4px 0; text-align: center; border: 1px solid var(--line); }
.pager .chip:disabled { opacity: .35; cursor: default; }
.sg-new { color: #fff; background: #E5484D; font-weight: 700; }
.chip.sg-done { color: #1A7F37; background: #DDF4E4; }
.chip.sg-fin { color: #0B5CAD; background: #DDEBFA; }
.nt-cmt { padding: 8px 0; border-top: 1px solid var(--line); }
.sg-reply { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--field); line-height: 1.6; }
.pm-card { border-style: dashed; }
/* 📘 사용법 안내 (help.js) */
.help-item { border-top: 1px solid var(--line); }
.help-item > summary { display: flex; align-items: center; gap: 10px; padding: 11px 2px; cursor: pointer; list-style: none; font-size: 14px; }
.help-item > summary::-webkit-details-marker { display: none; }
.help-item > summary::after { content: '▾'; color: var(--faint); transition: transform .15s; }
.help-item[open] > summary::after { transform: rotate(180deg); }
.help-body { padding: 0 4px 12px 32px; font-size: 13px; line-height: 1.65; color: var(--ink); word-break: keep-all; }
.help-body p { margin: 0 0 6px; }
.help-body ul { margin: 0 0 6px; padding-left: 16px; }
.help-body li { margin: 2px 0; }

/* --- 2026-11-24 회원 건의: 프로필 그림 · 결과 카드 항목별 · 노트 한 줄씩 · 내 설정 · 읽고 싶은 책 --- */
.ava.emo { font-size: 19px; font-weight: 400; color: inherit; }
.ava.ava-pic { background: var(--field); overflow: hidden; padding: 0; }
.ava.ava-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.big { width: 64px; height: 64px; font-size: 26px; }
.ava.big.emo { font-size: 36px; }
.ava-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.ava-pick { height: 40px; border-radius: 12px; background: var(--field); font-size: 21px; font-weight: 700; }
.ava-pick.on { box-shadow: 0 0 0 2.5px var(--pri); background: var(--card); }
.ava-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.ava-col { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ava-col.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4.5px var(--pri); }
.tr-cat { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #EADFB8; }
.tr-cat .books { margin-top: 6px; }
.tr-memos { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #EADFB8; }
.tr-memo { margin-top: 6px; }
.tr-memo .rec-text { margin-top: 2px; }
.set-row { gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); align-items: center; }
.set-row b { display: block; font-size: 14.5px; }
.set-row small { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; line-height: 1.45; }
.set-seg { flex: none; }
.set-seg button { flex: none; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.wish-btn { flex: none; background: var(--field); color: var(--sub); }
.wish-btn.on { background: var(--hl-soft); color: #8A6A00; }
/* 읽은 아이 배지: 아이 이름 첫 글자 동그라미 (plus.js whoBadges). 흐린 것은 읽는 중 */
.who-row { display: inline-flex; gap: 3px; flex: none; align-items: center; cursor: pointer; vertical-align: middle; }
.who { width: 18px; height: 18px; border-radius: 99px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.who.ing { opacity: .45; }
.who-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 8px; }
.who-item { display: inline-flex; align-items: center; gap: 4px; }
.tb-cov-who { position: absolute; top: 4px; left: 4px; padding: 2px; border-radius: 99px; background: rgba(255, 255, 255, .85); line-height: 0; }
.nt-chip { flex: none; }
@media (max-width: 520px) { .set-row { flex-wrap: wrap; } }
/* 항목 설정 줄: 단추가 늘어 이름 칸이 눌리지 않게 이름 칸을 넉넉히 두고 남는 단추는 다음 줄로 넘긴다 */
.cat-set-row { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
.cat-set-row .input { flex: 1 1 130px; }
.cat-set-row + .cat-set-row { margin-top: 10px; }
@media (min-width: 1000px) { .note-day.one { grid-template-columns: minmax(0, 1fr); } }
@media print { .p-range .rec-day { break-inside: avoid; border: .8pt solid #bbb; background: none; margin-top: 8pt; } .p-range .chip { border: .6pt solid #999; } }
/* 모임이 읽은 책 › 🖼 표지만: 표지를 크게 늘어놓는다 */
.tb-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 10px; margin-top: 8px; }
.tb-cov { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tb-cov .cover { width: 100% !important; max-width: 160px; height: auto !important; aspect-ratio: 12 / 17; object-fit: cover; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.tb-cov-t { margin-top: 5px; width: 100%; text-align: center; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tb-cov-n { position: absolute; top: 4px; right: 4px; }
/* 모임 › 읽은책 표지만 보기: 표지를 크게 — PC 7권, 중간 화면 5권, 휴대폰 3권 */
.tb-covers.big { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; }
.tb-covers.big .tb-cov .cover { max-width: none; }
@media (min-width: 1000px) { .tb-covers.big { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px 14px; } .tb-covers.big .tb-cov-t { font-size: 13px; } }
/* ☑ 골라 담기: 고른 표지는 테두리와 ✓, 고를 수 없는 영상은 흐리게. 아래 띠는 화면 아래(폰은 떠 있는 메뉴 위)에 붙어 따라온다 */
.tb-covers.selm .tb-cov-t { min-height: 33px; }   /* 제목이 한 줄이어도 ✓ 자리가 표지 위에 오게 */
.tb-cov-chk { position: absolute; bottom: 44px; right: 6px; width: 24px; height: 24px; border-radius: 99px; border: 2px solid #fff; background: rgba(20, 24, 40, .35); color: #fff; font-weight: 800; font-size: 14px; line-height: 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tb-cov-chk.on { background: var(--pri, #3b82f6); }
.tb-cov.sel .cover { outline: 3px solid var(--pri, #3b82f6); outline-offset: 1px; }
.tb-cov.dim { opacity: .4; }
.tb-selbar { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 4; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card, #fff); box-shadow: 0 4px 18px -4px rgba(20, 24, 40, .35); }
@media (min-width: 1000px) { .tb-selbar { bottom: 16px; } }
/* 폰에서는 120px 칸이면 한 줄에 2개뿐이라 표지가 너무 크다 — 3개씩(넓은 폰은 4개) */
@media (max-width: 600px) { .tb-covers { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; } .tb-cov-t { font-size: 11px; } .tb-cov .chip.small { font-size: 10px; padding: 1px 5px; } }
@media (max-width: 600px) { .tb-covers.big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } .tb-covers.big .tb-cov-t { font-size: 12px; } }

/* ⏰ 인증(건의 #13) — 카메라 화면의 서버 시각·안내·셔터, 게시판 「오늘 인증」 카드, 글의 순번 칩 */
.ck-clock { position: absolute; left: 0; right: 0; top: calc(18px + env(safe-area-inset-top)); color: #fff; text-align: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); pointer-events: none; }
.ck-frame { position: absolute; left: 50%; top: 50%; width: min(94vw, calc(100vh - 300px), 560px); aspect-ratio: 1; transform: translate(-50%, calc(-50% - 40px)); border: 2px solid rgba(255, 255, 255, .9); border-radius: 6px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); pointer-events: none; }
.ck-guide { position: absolute; left: 20px; right: 20px; bottom: calc(176px + env(safe-area-inset-bottom)); color: #fff; text-align: center; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); pointer-events: none; }
.ck-shutter { position: absolute; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: 70px; height: 70px; border-radius: 99px; border: 5px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .35); }
.ck-shutter:active { background: rgba(255, 255, 255, .8); }
/* 내 책장 앱 안 카메라(책등·책장 사진) — 찍히는 전체 영역이 잘리지 않게 contain, 가로 촬영 시 셔터를 오른쪽으로 */
.sh-cam .scan-video { object-fit: contain; }
.sh-cam-guide { position: absolute; left: 16px; right: 16px; bottom: calc(176px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 440px; padding: 7px 12px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; text-align: center; font-size: 13px; line-height: 1.45; pointer-events: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .sh-cam .ck-shutter { left: auto; right: calc(20px + env(safe-area-inset-right)); top: 50%; bottom: auto; transform: translateY(-50%); }
  .sh-cam .scan-close { left: calc(18px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; padding: 10px 22px; }
  .sh-cam-guide { left: 108px; right: 108px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.ck-card .ck-list { margin-top: 8px; max-height: 296px; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; margin-right: -4px; padding-right: 4px; }   /* 5명 높이 기준 프레임 유지, 6명 이상은 내부 스크롤 */
.ck-card .ck-list::-webkit-scrollbar { width: 5px; }
.ck-card .ck-list::-webkit-scrollbar-thumb { background: rgba(111, 106, 95, .28); border-radius: 99px; }
.ck-desc { margin-top: 6px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ck-row { gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.ck-row:first-child { border-top: 0; }
.ck-row.me .b { color: var(--pri, #3b82f6); }
.ck-say { margin-top: 2px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-n { width: 24px; height: 24px; border-radius: 99px; background: var(--line, #e5e7eb); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.ck-n.ck-m1 { background: #FEF3C7; color: #B45309; box-shadow: inset 0 0 0 1px #FCD34D; }   /* 1~3등: 같은 크기, 옅은 금·은·동 */
.ck-n.ck-m2 { background: #F1F5F9; color: #475569; box-shadow: inset 0 0 0 1px #CBD5E1; }
.ck-n.ck-m3 { background: #FBEDE3; color: #9A3412; box-shadow: inset 0 0 0 1px #F3C3A3; }
.ck-pic { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; overflow: hidden; background: #f3f4f6; cursor: zoom-in; }
.ck-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-chip { background: #FEF3C7; color: #92400E; white-space: nowrap; }
.ck-chip.first { background: #F59E0B; color: #fff; }

/* ✏️ 노트 기한이 지난 날: 보기만 (넣기·시간·사진 단추는 숨기고, 책은 눌러 볼 수 있다) */
.note-lock { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #F3F4F6; color: var(--sub, #6b7280); line-height: 1.5; }
.note-day.locked .add-book, .note-day.locked .recent, .note-day.locked .cat-set-btn, .note-day.locked .cat-set-ico, .note-day.locked .card .chip.white[type="button"] { display: none; }
.note-day.locked .time { pointer-events: none; }
.ck-styles { display: flex; flex-wrap: wrap; gap: 6px; }

/* 아이 성별 표시 (건의 #16·#17) — 색으로 가른다: 남아 파랑 · 여아 분홍. 밝히지 않은 아이는 표시가 없다 */
.sex-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: 1px; flex: none; }
.sex-tag.m { background: #DBEAFE; color: #1D4ED8; }
.sex-tag.f { background: #FCE7F3; color: #BE185D; }
.sex-dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: 0; flex: none; box-shadow: 0 0 0 1.5px #fff; }
.sex-dot.m { background: #3B82F6; }
.sex-dot.f { background: #EC4899; }
.chip.sex-chip.m.on { background: #2563EB; color: #fff; }
.chip.sex-chip.f.on { background: #DB2777; color: #fff; }
.chip.sex-chip.m.white { color: #1D4ED8; }
.chip.sex-chip.f.white { color: #BE185D; }

/* 메모 칸 글자 효과 단추 (건의 #24): 굵게 · 글자색 · 형광펜 */
.fx-bar { gap: 4px; flex-wrap: wrap; align-items: center; min-width: 0; }
.fx-btn { flex: none; min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 12px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fx-btn.fx-b { font-weight: 800; font-size: 14px; }
.fx-btn.fx-c { padding: 0; width: 26px; }
.fx-btn.fx-c i { display: block; width: 14px; height: 14px; border-radius: 50%; }
.fx-btn[disabled] { opacity: .4; }
.fx-btn.fx-x { color: var(--sub); font-size: 11px; }
.fx-btn.fx-m { background: #FEF08A; color: #713F12; border-color: #FDE047; font-weight: 700; }
.fx-btn.fx-more { padding: 0; width: 26px; font-weight: 700; font-size: 14px; color: var(--sub); }
.fx-btn.fx-more.on { background: var(--pri-soft); color: var(--pri); border-color: var(--pri); }
.fx-pal { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.fx-pal[hidden] { display: none; }
.fx-btn.fx-sw { width: 28px; height: 28px; }
.fx-btn.fx-sw i { width: 16px; height: 16px; }
.fx-btn.fx-pick { height: 28px; padding: 0 9px; gap: 5px; font-size: 11.5px; font-weight: 600; }
.fx-btn.fx-pick.on { background: var(--pri-soft); color: var(--pri); border-color: var(--pri); }
.fx-btn.fx-pick i { display: block; width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.fx-custom { flex: 0 0 100%; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.fx-custom[hidden] { display: none; }
.fx-sv { position: relative; width: 100%; height: 132px; border-radius: 8px; cursor: crosshair; touch-action: none; user-select: none;
  background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.fx-sv-dot, .fx-hue-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.fx-hue { position: relative; width: 100%; height: 16px; border-radius: 99px; cursor: ew-resize; touch-action: none; user-select: none;
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.fx-hue-dot { top: 50%; }
.fx-custom-foot { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fx-custom-prev { gap: 6px; padding: 4px 9px; border-radius: 8px; background: var(--field); }
.fx-prev-dot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.fx-prev-txt { font-size: 13px; font-weight: 700; }
.fx-prev-hex { font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; }
.fx-custom-acts { gap: 5px; margin-left: auto; }
.fx-btn.fx-cancel { height: 30px; padding: 0 11px; color: var(--sub); font-size: 12px; font-weight: 600; }
.fx-btn.fx-ok { height: 30px; padding: 0 14px; background: var(--pri); color: #fff; border-color: var(--pri); font-size: 12px; font-weight: 700; }

/* 노트 책 순서 바꾸기 (건의 #20) */
.book.ord { cursor: default; outline: 2px dashed var(--pri-soft); outline-offset: -2px; border-radius: 10px; }
.book.ord .ord-bar { position: absolute; left: 0; width: 62px; top: 58px; display: flex; justify-content: space-between; padding: 2px; }
.book.ord .ord-bar button { width: 26px; height: 26px; border-radius: 99px; background: var(--pri); color: #fff; font-size: 13px; font-weight: 800; line-height: 26px; padding: 0; }
.book.ord .ord-bar button:disabled { opacity: .25; }
/* 책 넣을 날 고르기 (건의 #26) */
.day-pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.day-pick::-webkit-scrollbar { display: none; }
.day-pick .chip { flex: none; }
/* 모임 게시판 날짜 줄 (건의 #23) */
.post-day { display: flex; align-items: center; gap: 8px; margin: 18px 4px 0; font-size: 12px; font-weight: 700; color: var(--sub); }
.post-day::before, .post-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.post-day.today { color: var(--pri); }
.rel-day { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--field); color: var(--sub); }
.rel-day.today { background: var(--pri); color: #fff; }
.rel-day.yday { background: #FEF3C7; color: #B45309; }
/* 메모칸 저절로 늘리기 (건의 #27) */
textarea.grow-ta { resize: none; overflow: hidden; }

/* 🏠 내 책장 (shelf.js) */
.sh-target { margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--pri-soft); color: var(--pri); line-height: 1.5; }
.sh-target .faint { color: var(--sub); font-weight: 400; }
.sh-tabs { flex-wrap: wrap; overflow: visible; padding-bottom: 4px; }
.sh-map { position: relative; border-radius: 12px; overflow: hidden; background: var(--field); line-height: 0; user-select: none; -webkit-user-select: none; }
.sh-map img { display: block; width: 100%; height: auto; pointer-events: none; }
.sh-map.edit { touch-action: none; cursor: crosshair; }
.sh-zone { position: absolute; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .95); border-radius: 8px; background: rgba(65, 70, 216, .18); box-shadow: 0 0 0 1px rgba(20, 24, 40, .45); padding: 0; display: flex; align-items: flex-start; justify-content: flex-start; overflow: hidden; }
.sh-zone span { margin: 3px; padding: 2px 7px; border-radius: 99px; background: rgba(20, 24, 40, .72); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; max-width: calc(100% - 6px); overflow: hidden; text-overflow: ellipsis; }
.sh-zone.on { background: rgba(65, 70, 216, .42); border-color: var(--pri); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pri); }
.sh-zone.on span { background: var(--pri); }
.sh-zone.ghost { border-style: dashed; background: rgba(255, 255, 255, .3); pointer-events: none; }
/* 내 책장 넣기 단추 — 두 칸씩, 글자가 잘리지 않게 줄을 바꾼다 */
.sh-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sh-add .chip { min-width: 0; min-height: 46px; padding: 8px 10px; border-radius: 14px; border: 1px solid #DDD3BD; font-size: 14px; white-space: normal; overflow: visible; line-height: 1.3; text-align: center; word-break: keep-all; }
.sh-add .chip.wide { grid-column: 1 / -1; flex-wrap: wrap; column-gap: 8px; }
.sh-add .chip small { font-size: 12px; font-weight: 700; color: var(--sub); }
.sh-zbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.sh-zbtns .chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 14px; font-size: 14px; text-align: left; white-space: normal; line-height: 1.3; }
.sh-zbtns .chip i { flex: none; font-style: normal; font-size: 12px; font-weight: 700; opacity: .7; }
.sh-where { margin-top: 4px; color: var(--pri); }
.sh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.sh-have { margin-top: 8px; padding: 7px 10px; border-radius: 10px; background: #E3F6EA; color: #1E8E4E; font-weight: 700; line-height: 1.5; }
.sh-rs { flex: none; box-shadow: none; border: 1px solid var(--line); background: var(--card); color: var(--faint); }
.sh-rsrow { gap: 6px; margin-top: 6px; align-items: center; }
.sh-rsname { flex: none; width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-rs.r1 { background: #E3F6EA; border-color: transparent; color: #1E8E4E; }
.sh-rs.r2 { background: #FEF3C7; border-color: transparent; color: #B45309; }
.sh-chk { flex: none; width: 22px; height: 22px; border-radius: 99px; border: 2px solid var(--faint); color: #fff; font-weight: 800; font-size: 13px; line-height: 18px; text-align: center; }
.sh-chk.on { background: var(--pri); border-color: var(--pri); }
.sh-hints .row + .row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.sh-row.sel { background: var(--pri-soft); margin: 0 -8px; padding-left: 8px !important; padding-right: 8px !important; border-radius: 10px; }
.modal.wide { max-width: 640px; }
/* PC 글쓰기 칸 크게 — 게시판·광장·공지·건의·포트폴리오 글, 운영자 답변, 댓글 */
@media (min-width: 1000px) {
  textarea.write-ta { min-height: 300px; font-size: 15px; line-height: 1.65; }
  textarea.cmt-ta { min-height: 92px; }
  .modal:has(textarea.write-ta) { max-width: min(820px, 92vw); padding: 26px 30px; }
  .modal:has(textarea.cmt-ta) { max-width: min(640px, 92vw); }
}

/* 모임방 위 메뉴 한 줄 (건의 #36) — 게시판·학습기록·읽은 책·아이 고르기를 바로 오간다. 폰에서는 옆으로 밀어 본다 */
.room-tabs { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.room-tabs::-webkit-scrollbar { display: none; }
.room-tabs .chip { flex: none; white-space: nowrap; }

/* 건의 #39 노트 항목의 단계가 바뀌는 곳 — 줄을 바꾸고 단계를 작게 적는다 */
.books .lv-brk { flex: 0 0 100%; font-size: 11px; font-weight: 700; color: var(--sub); border-top: 1px dashed var(--line, #E5E7EB); padding-top: 6px; margin-top: -2px; }
/* 건의 #45 읽은책에서 여러 권 골라 단계 넣기 */
.lv-selbar { position: sticky; top: 92px; z-index: 4; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.row.lv-picked { background: var(--pri-soft); }
.lv-check { flex: none; width: 22px; align-self: center; text-align: center; }
/* ⏰ 인증 카드: 한마디를 누르면 펼침, 사진을 누르면 큰 사진 아래 한마디 전체 (건의 #43) */
.ck-row .open .ck-say { white-space: pre-wrap; word-break: break-word; overflow: visible; }
.img-cap { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--field); max-height: 30vh; overflow-y: auto; }
/* 🗓 출석부 (건의 #43) */
.att-day .att-list { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.att-list th { text-align: left; font-weight: 600; color: var(--sub); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.att-list td { padding: 6px; border-bottom: 1px solid var(--line); }
.att-list tr.me td { background: #FFF8DB; }
.att-st.o { color: #4F46E5; font-weight: 700; }
.att-st.x { color: #DC2626; font-weight: 700; }
.att-st.wait, .att-st.future, .att-st.none { color: var(--faint, #9ca3af); }
.chip.att-o { background: #E8E8FB; color: #4338CA; }
.chip.att-x { background: #FEE2E2; color: #B91C1C; }
.att-leg { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sub); }
.att-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.att-grid { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.att-grid th { font-weight: 700; color: var(--sub); padding: 2px 0; text-align: center; white-space: nowrap; }
.att-grid th.att-d span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 7px; }
.att-grid th.sun { color: #EF4444; }
.att-grid th.sat { color: #3B82F6; }
.att-grid th.today span { box-shadow: inset 0 0 0 2px #F59E0B; }
.att-grid th.pick span { background: #1F2937; color: #fff; }
.att-grid td.pick { background: rgba(0, 0, 0, .05); border-radius: 6px; }
.att-grid .att-name { position: sticky; left: 0; z-index: 1; background: var(--card, #fff); text-align: left; padding-right: 8px; white-space: nowrap; min-width: 92px; }
.att-grid tr.me td { background-color: #FFF8DB; }
.att-who b { font-size: 13px; }
.att-td { padding: 0; cursor: pointer; }
.att-c { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 700; vertical-align: middle; }
.att-c.o { background: #E3E3FA; }
.att-c.x { background: #FEE2E2; color: #DC2626; box-shadow: inset 0 0 0 1px #FCA5A5; }
.att-c.wait { background: #fff; box-shadow: inset 0 0 0 1px #D1D5DB; }
.att-c.future { background: #F5F4EF; }
.att-c.none { background: transparent; box-shadow: inset 0 0 0 1px #EEE; }
.att-n { text-align: center; font-weight: 700; min-width: 30px; }
td.att-n.o { color: #4F46E5; }
td.att-n.x { color: #DC2626; }
td.att-n.zero { color: #D1D5DB; }
/* 💬 노트 항목의 코멘트 모아 보기 (건의 #58) */
.cm-fold { margin-top: 6px; }
.cm-fold > summary { cursor: pointer; color: var(--green); font-weight: 600; padding: 2px 0; }
.cm-item { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line, #eee); padding: 6px 0; font: inherit; color: inherit; cursor: pointer; }
.cm-item .cm-txt { margin-top: 2px; color: var(--sub); line-height: 1.45; white-space: pre-wrap; word-break: break-all; }

/* 🎧 듣기·구독처 (where.js, 건의 #67) */
.wh-box { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.wh-box .label { display: inline; }
.chip.wh-gone { background: transparent; color: var(--faint, #999); text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--line); }
.chip.wh-tag { background: #eef7f1; color: #2f7a4c; }
.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wh-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; min-width: 0; }
.wh-tile .wh-mark { width: 34px; height: 34px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.wh-tile .wh-nm { font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; word-break: keep-all; }
.wh-tile .wh-st, .wh-tile .wh-ct { font-size: 10.5px; color: var(--faint); line-height: 1.2; }
.wh-tile.yes { border-color: var(--green); background: #effaf3; box-shadow: inset 0 0 0 1px var(--green); }
.wh-tile.yes .wh-st { color: var(--green); font-weight: 700; }
.wh-tile.no { background: #f6f6f7; }
.wh-tile.no .wh-mark { filter: grayscale(1); opacity: .5; }
.wh-tile.no .wh-nm { text-decoration: line-through; color: var(--faint); }
.wh-tile.no .wh-st { color: var(--red); font-weight: 700; }
/* 책 찾기 › 🎧 듣기·구독처 검색 (건의 #71) */
.wh-find-pick { margin-top: 12px; }
.wh-pf-grp { margin-top: 8px; }
.wh-pf-grp:first-child { margin-top: 0; }
.wh-pf-lbl { font-size: 11px; font-weight: 700; color: var(--faint); margin-bottom: 5px; }
.wh-pf-row { display: flex; flex-wrap: wrap; gap: 6px; }
.wh-pf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s; }
.wh-pf-chip.zero { opacity: .62; }
.wh-pf-chip.has { border-color: #c5e3cf; background: #f6fcf8; }
.wh-pf-chip.on { opacity: 1; border-color: var(--green); background: var(--green); color: #fff; font-weight: 700; }
.wh-pf-dot { width: 18px; height: 18px; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wh-pf-ico { font-size: 13px; line-height: 1; }
.wh-pf-n { font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--sub); }
.wh-pf-chip.has .wh-pf-n { background: #dff2e6; color: #246a3f; }
.wh-pf-chip.on .wh-pf-n { background: rgba(255,255,255,.24); color: #fff; }
.wh-lv-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.wh-empty { text-align: center; padding: 24px 8px; line-height: 1.5; }
/* 분석 › 일일 (건의 #73) */
.d-bar { position: relative; overflow: visible; height: 12px; }
.d-bar > i { border-radius: 99px; }
.d-pm { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink); opacity: .55; }
.d-pm-lg { display: inline-block; width: 2px; height: 11px; margin-right: 4px; vertical-align: -1px; background: var(--ink); opacity: .55; }
.d-split { display: flex; }
.d-split > i { border-radius: 0; }
.d-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px 8px; margin-top: 12px; }
.d-book { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; text-align: center; min-width: 0; }
.d-book-t { width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.d-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.d-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; }
.d-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* 🏛 도서관 · 책가방 · 책 꾸러미 (library.js) */
.lib-item { padding: 10px 0; }
.lib-regs { display: flex; gap: 5px; flex-wrap: wrap; }
.lib-search-list { margin-top: 10px; max-height: 48vh; overflow-y: auto; border-top: 1px solid var(--line); }
.lib-book-card { padding: 14px; }
.lib-st-list { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.lib-st-row { background: var(--field); border-radius: 11px; padding: 8px 10px; }
.lib-pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; flex: none; white-space: nowrap; }
.lib-pill.ok { background: #DCFCE7; color: #15803D; }
.lib-pill.out { background: #FEF3C7; color: #B45309; }
.lib-pill.no { background: rgba(0, 0, 0, .06); color: var(--sub); }
.lib-pill.unk { background: rgba(0, 0, 0, .05); color: var(--faint); }
.lib-pill.has { background: #DBEAFE; color: #1D4ED8; }
.lib-pack-row { padding: 10px 0; }
.lib-pack-sts { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.lib-pack-st { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lib-pack-lib { color: var(--sub); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-pack-q { flex: 1 1 160px; min-width: 0; padding: 6px 10px; font-size: 13px; }
.lib-call { margin-top: 4px; font-size: 11.5px; color: var(--sub); line-height: 1.4; }
.lib-call-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.lib-call-txt { font-size: 11.5px; color: var(--sub); line-height: 1.4; }
.lib-map-link { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #FFF8DB; color: #8A5A00; border: 1px solid #F4DF8B; text-decoration: none; flex: none; white-space: nowrap; }
.lib-map-link:hover { background: #FEE500; color: #3C1E1E; border-color: #E5CC00; }
.lib-bag-btn { flex: none; background: var(--field); color: var(--sub); }
.lib-bag-btn.on { background: var(--pri); color: #fff; }
.find-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
/* 매일 첫 접속 말풍선 알림 배너 */
.lib-banner { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 29;
  width: min(92vw, 480px); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px;
  background: var(--board); color: #fff; box-shadow: 0 12px 28px -6px rgba(20, 24, 40, .48); border: 1px solid rgba(255, 255, 255, .14); }
.lib-banner-body { flex: 1; min-width: 0; }
.lib-banner-sub { margin-top: 3px; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-banner-x { flex: none; width: 26px; height: 26px; border-radius: 99px; color: rgba(255, 255, 255, .7); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lib-banner-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
@media (min-width: 1000px) {
  .lib-banner { bottom: 26px; left: calc(50% + 110px); }
}
/* 읽고 싶은 책에서 담기: ☑ 여러 권 골라 한꺼번에 담기 줄 (창 안에서 위에 붙어 있음) */
.lib-wish-selbar { position: sticky; top: 0; z-index: 2; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line); }
.lib-wish-chk { width: 18px; height: 18px; flex: none; cursor: pointer; }
/* 📋 청구기호 표 · 📚 빌린 책 (library.js) — 표지 없이 시트처럼 */
.modal.lib-sheet-modal { max-width: min(1180px, 98vw); width: 98vw; height: 94vh; max-height: 94vh; padding: 16px 16px 12px; }
.modal-bg:has(.lib-sheet-modal) { padding: 6px; }
.lib-sheet-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.lib-sheet-modal .lib-sheet-wrap { max-height: calc(94vh - 230px); }
.lib-sheet-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.lib-sheet-t th { position: sticky; top: 0; z-index: 1; background: var(--card); text-align: left; font-size: 12px; color: var(--sub); font-weight: 700; padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.lib-sheet-t td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lib-sheet-t tbody tr { cursor: pointer; }
.lib-sheet-t tbody tr:nth-child(even) td { background: rgba(0, 0, 0, .018); }
.lib-sheet-t tbody tr.on td { background: var(--pri-soft, #EEF2FF); }
.lib-sheet-t .ck { width: 34px; text-align: center; }
.lib-sheet-t .ck input { width: 18px; height: 18px; cursor: pointer; }
.lib-sheet-t .nw { white-space: nowrap; }
.lib-sheet-t .call { font-variant-numeric: tabular-nums; }
.lib-sheet-t .ttl { min-width: 160px; }
.lib-sheet-t tr.lib-sheet-grp td { background: rgba(0, 0, 0, .05) !important; font-weight: 700; font-size: 12px; padding: 6px 8px; cursor: default; }
.lib-sheet-cp { margin-left: 4px; font-size: 12px; color: var(--faint); padding: 0 3px; }
.lib-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 10px; scrollbar-width: none; }
.lib-tab { flex: none; padding: 7px 14px 6px; border: 1px solid var(--line); border-bottom: none; border-radius: 10px 10px 0 0; background: rgba(0, 0, 0, .03); font-size: 13px; font-weight: 700; color: var(--sub); white-space: nowrap; margin-bottom: -2px; }
.lib-tab.on { background: var(--card); color: var(--pri, #4F46E5); border-color: var(--line); box-shadow: inset 0 3px 0 var(--pri, #4F46E5); border-bottom: 2px solid var(--card); }
.lib-tab-n { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--faint); }
.lib-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; margin-right: 6px; vertical-align: 1px; }
.lib-dot.ok { background: #22C55E; } .lib-dot.out { background: #F59E0B; } .lib-dot.has { background: #60A5FA; }
.lib-sheet-t tr.st-ok td.ck { box-shadow: inset 4px 0 0 #22C55E; }
.lib-sheet-t tr.st-out td.ck { box-shadow: inset 4px 0 0 #F59E0B; }
.lib-sheet-t tr.st-has td.ck { box-shadow: inset 4px 0 0 #60A5FA; }
.lib-sheet-t tr.st-out td.ttl .b, .lib-sheet-t tr.st-out td.au { opacity: .6; }
.lib-sheet-t .au { min-width: 90px; }
.lib-sheet-t .loc { display: none; }
/* 휴대폰: 옆으로 밀지 않고 제목·청구기호·지은이가 한 화면에 보이게. 자료실은 청구기호 아래 작은 글씨로 */
@media (max-width: 599px) {
  .lib-sheet-modal .set-seg { flex-wrap: wrap; max-width: 100%; }
  .lib-sheet-modal .set-seg button { padding: 6px 7px; font-size: 12px; }
  .lib-sheet-modal .lib-sheet-t { table-layout: fixed; font-size: 12px; }
  .lib-sheet-modal .lib-sheet-t th, .lib-sheet-modal .lib-sheet-t td { padding-left: 4px; padding-right: 4px; overflow-wrap: anywhere; word-break: keep-all; }
  .lib-sheet-modal .lib-sheet-t .ck { width: 30px; }
  .lib-sheet-modal .lib-sheet-t .ttl { min-width: 0; width: 37%; }
  .lib-sheet-modal .lib-sheet-t .call { width: 34%; white-space: normal; }
  .lib-sheet-modal .lib-sheet-t .au { min-width: 0; width: auto; font-size: 11px; }
  .lib-sheet-modal .lib-sheet-t .room { display: none; }
  .lib-sheet-modal .lib-sheet-t .under { display: block; }
  .lib-sheet-modal .lib-sheet-t .loc { display: inline; font-size: 10.5px; font-weight: 400; color: var(--sub); }
  .lib-sheet-modal .lib-dot { width: 7px; height: 7px; margin-right: 4px; }
}

/* 🗓 오늘의 이야기 (출석 한마디, 2026-11-28) */
.say-list { margin-top: 8px; max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.say-row { padding: 7px 0; border-top: 1px solid var(--line); }
.say-row:first-child { border-top: 0; }
.say-row.me > .row .b { color: var(--pri, #3b82f6); }
.say-body { margin-top: 2px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.say-lock { padding: 8px 10px; border-radius: 10px; background: var(--soft, #f6f4ef); line-height: 1.5; }
.ck-who { gap: 6px; flex-wrap: wrap; }
.ck-row .heart { flex: none; padding: 0 8px; font-size: 12px; line-height: 1.7; }
/* 모임 글쓰기는 오른쪽 넓은 칸 — 「크게 쓰기」면 더 높게 */
textarea.team-ta.big { min-height: 60vh; }
