/* 쪼개 보면 — 도구 색 네 개와 이 도구에만 있는 모양. 머리·버튼·카드·아래 탭·토스트·바닥글은 공용 /shared/myosu.css */
:root { --c: #8a5433; --c-deep: #5e3720; --c-soft: #f6ebe1; --bg: #faf6f1; --tint: #f8f0e8; }

.brand { cursor: pointer; }
.app .card { margin: 12px 0; }
h1.qh { font-size: 24px; line-height: 1.35; margin: 6px 0 10px; letter-spacing: -0.03em; }
.page-h { font-size: 24px; margin: 6px 0 4px; letter-spacing: -0.03em; }
.lead { color: var(--ink-2); font-size: 15px; margin: 0 0 8px; }
.note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.back { border: 0; background: none; color: var(--muted); padding: 0; min-height: 36px; font-size: 14px; font-weight: 600; }
.link { border: 0; background: none; color: var(--c-deep); font-weight: 700; padding: 0; min-height: 40px; font-size: 15px; }

/* 태그 */
.tag { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c-deep); font-weight: 700; margin-right: 4px; }
.tag.o { background: transparent; border: 1.5px solid var(--c); }
.tag.mine { background: var(--c); color: #fff; }
.k { color: var(--muted); font-size: 13px; margin-right: 6px; }

/* 오늘 */
.today { box-shadow: inset 0 0 0 2px var(--c); }
.streak { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--c-deep); }
.today .q { font-size: 20px; font-weight: 800; line-height: 1.4; margin: 8px 0 2px; }
.try { box-shadow: inset 0 0 0 2px var(--c-soft); background: var(--surface); }
.next { background: var(--c-soft); border-radius: 14px; padding: 10px 14px; margin: 12px 0 0; font-size: 15px; }
.next b { color: var(--c-deep); }
.two { display: flex; gap: 8px; }
.two > * { flex: 1; }
.best { box-shadow: inset 0 0 0 2px var(--c); }

/* 캐릭터 말풍선 */

/* 단계 표시와 단계 제목 */
.dots { display: flex; gap: 6px; align-items: center; margin: 4px 0 2px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.dots b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 13px; }
.dots b.on { background: var(--c); color: #fff; }
.dots b.done { background: var(--c-soft); color: var(--c-deep); }
.step { font-size: 16px; font-weight: 800; margin: 24px 0 6px; display: flex; gap: 8px; align-items: center; }
.step b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: 14px; flex: none; }

/* 쪼갠 식 */
.eq { font-size: 22px; line-height: 1.45; font-weight: 800; padding: 16px; border: 2.5px dashed var(--c); border-radius: 20px; margin: 14px 0; overflow-wrap: anywhere; background: var(--surface); }
.eq .q { color: var(--c-deep); }
.eq .o { color: var(--c); padding: 0 5px; }
.eq .e { color: var(--muted); font-weight: 500; font-size: 17px; }
.eq small { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 6px; }

/* 고르기·칸 */
.pick { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; margin: 8px 0; cursor: pointer; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; }
.pick.on { box-shadow: inset 0 0 0 2px var(--c); background: var(--c-soft); }
.pick input { width: 22px; height: 22px; accent-color: var(--c); flex: none; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { background: var(--surface); border: 0; box-shadow: var(--shadow); min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 700; }
.chip.on { background: var(--c); color: #fff; box-shadow: none; }
.chip:disabled { opacity: .4; }
.wrow { background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; padding: 10px; margin: 8px 0; }
.line { display: flex; gap: 6px; align-items: center; }
.app input[type=text], .app textarea { flex: 1; font-size: 16px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); width: 100%; }
.app input[type=text]:focus, .app textarea:focus { outline: none; border-color: var(--c); }
.app textarea { min-height: 76px; resize: vertical; margin-top: 8px; font-family: inherit; }
.kids { margin: 8px 0 0 16px; border-left: 3px solid var(--c-soft); padding-left: 10px; }
.opb { min-width: 44px; min-height: 40px; border: 0; border-radius: 999px; background: var(--c-soft); color: var(--c-deep); font-weight: 800; font-size: 18px; }
.x { min-width: 36px; min-height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }

/* 결과 */
.praise { list-style: none; padding: 0; margin: 8px 0; }
.praise li { background: var(--c-soft); border-radius: 14px; padding: 10px 14px; margin: 6px 0; font-weight: 700; }
.share { background: var(--tint); border-radius: 14px; padding: 12px; font-size: 15px; white-space: pre-wrap; margin: 8px 0 0; }
details.more { margin: 6px 0; }
details.more summary { cursor: pointer; color: var(--c-deep); font-weight: 700; padding: 10px 0; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }

/* 원인 추적 표 */
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; width: 100%; }
.bar b { display: block; height: 100%; background: var(--c-deep); opacity: .5; }
.bar b.hot { background: var(--c); opacity: 1; }

/* 지난 문제: 진도표·목록 */
.cal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0 8px; }
.cal button { min-height: 54px; padding: 4px 0; border-radius: 12px; font-size: 16px; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; background: var(--surface); color: var(--muted); border: 2px solid var(--line); }
.cal button small { font-size: 11px; font-weight: 600; }
.cal .done { background: var(--c); border-color: var(--c); color: #fff; }
.cal .today { border-color: var(--c); color: var(--c-deep); background: var(--c-soft); box-shadow: none; }
.cal .miss { border: 2px dashed var(--c); color: var(--c-deep); }
.cal .lock { opacity: .4; cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }
.list a { display: flex; justify-content: space-between; gap: 10px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; cursor: pointer; }
.list a > span { flex: 1; }
.list small { color: var(--muted); white-space: nowrap; }
.list small.ok { color: var(--c-deep); font-weight: 700; }

/* 도감: 초콜릿 한 판 */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 7px; background: #5e3720; border-radius: 16px; margin: 12px 0; }
.piece { border-radius: 10px; padding: 10px 2px; text-align: center; font-size: 13px; color: #cdb3a1; background: #3f2414; border: 2px dashed #75503a; min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
.piece.on { background: #a0673f; border: 2px solid #b57a4f; color: #fff; font-weight: 800; }
.piece b { display: block; font-size: 15px; }
.piece span { display: block; font-size: 11px; font-weight: 500; opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.stat { background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; padding: 12px 6px; text-align: center; }
.stat b { display: block; font-size: 24px; color: var(--c-deep); }
.stat span { font-size: 13px; color: var(--muted); }

.pop { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* 결론 카드(공용 .summary)의 「/ 30일」 */
.summary .count .of { font-size: 15px; color: var(--muted); font-weight: 700; }
