/* 원래 있던 거 — 색 네 개 + 이 도구 전용 모양만 (뼈대는 /shared/myosu.css) */
:root { --c: #0f766e; --c-deep: #0b5a54; --c-soft: #dcefeb; --bg: #f3f7f6; }

.file-in { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.page h1 { font-size: 22px; }
.center { text-align: center; margin-top: 8px; }
.sec { margin: 26px 2px 10px; font-size: 16px; font-weight: 800; }
.sec small { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 4px; }
.fine.left { text-align: left; }
.hero svg { display: block; margin: 8px auto 0; }
.summary .count small { font-size: 16px; color: var(--ink-2); font-weight: 700; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 6px -20px 2px; padding: 2px 20px 6px; scrollbar-width: none; }
.chip { flex: none; border: 0; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.chip.on { background: var(--c); color: #fff; box-shadow: none; }

/* 입주 네 단계 */
.steps { list-style: none; margin: 14px 0 0; padding: 14px 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 10px; }
.st { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.st i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 14px; }
.st b { display: block; font-size: 15px; color: var(--ink-2); }
.st span { font-size: 13px; }
.st--done i { background: var(--c); border-color: var(--c); color: #fff; }
.st--done b { color: var(--ink); }
.st--now i { border-color: var(--c); }
.st--now b { color: var(--c-deep); }

/* 한 줄 카드: 왼쪽 글, 오른쪽 버튼 */
.row-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.row-card b { display: block; font-size: 15px; }
.row-card span { display: block; font-size: 13px; color: var(--ink-2); }
.pill { flex: none; border: 0; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; }
.pill--soft { background: var(--c-soft); color: var(--c-deep); }
.primary + .secondary { margin-top: 10px; }

/* 목록 */
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.item b { display: block; font-size: 15px; }
.item span { display: block; font-size: 13px; color: var(--ink-2); }
.item--flat { cursor: default; }
.tag { flex: none; font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #eef0f2; color: var(--ink-2); }
.tag--asked { background: #fff1e6; color: #9a3412; }
.tag--fixed { background: var(--c-soft); color: var(--c-deep); }
.tag--refused { background: #fde8e8; color: #9b1c1c; }

/* 월세 열두 달 */
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 12px; }
.mo { border: 0; background: #f1f3f5; border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; color: var(--ink-2); }
.mo b { font-size: 14px; }
.mo span { font-size: 11px; min-height: 15px; }
.mo--on { background: var(--c); color: #fff; }
.mo--off { opacity: .4; }

/* 집 보기 카드 */
.cards { display: grid; gap: 10px; margin-top: 14px; }
.vcard { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: var(--surface); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }
.vcard img, .vcard-noimg { flex: none; width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: var(--c-soft); display: flex; align-items: center; justify-content: center; }
.vcard b { display: block; font-size: 16px; }
.vcard span { display: block; font-size: 13px; color: var(--ink-2); }
.vcard .off { color: #d4d7dc; }

/* 입력 */
.form { display: grid; gap: 14px; }
.fl { display: grid; gap: 6px; }
.fl > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fl input, .fl select, .fl textarea, .memo, .form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 16px; background: #fff; }
.fl input:focus, .memo:focus, .form textarea:focus, .fl select:focus { outline: none; border-color: var(--c); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 64px; height: 42px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.seg button.on { border-color: var(--c); background: var(--c-soft); color: var(--c-deep); }
.seg--wrap button { flex: 0 0 auto; padding: 0 12px; font-size: 14px; height: 38px; }
.stars { display: flex; gap: 4px; }
.star { border: 0; background: none; font-size: 30px; line-height: 1; color: #d4d7dc; padding: 2px; }
.star.on { color: #f5b83d; }
.ftitle { display: block; font-size: 15px; }

/* 집 보기 점검 */
.checks { padding: 4px 14px; }
.ck { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ck:last-child { border-bottom: 0; }
.ck b { display: block; font-size: 15px; }
.ck span { display: block; font-size: 12px; color: var(--muted); }
.tri { display: flex; flex: none; background: #f1f3f5; border-radius: 10px; padding: 3px; }
.tri button { border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 6px 8px; border-radius: 8px; }
.tri .t-good { background: var(--c); color: #fff; }
.tri .t-ok { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tri .t-bad { background: #c2410c; color: #fff; }

/* 사진 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid--s { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ph { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #e9eceb; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph--add { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--c-soft); color: var(--c-deep); font-weight: 700; font-size: 13px; }
.ph--add span { font-size: 28px; line-height: 1; }
.ph--none { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.ph-n { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 800; background: rgba(194, 65, 12, .92); color: #fff; padding: 2px 6px; border-radius: 6px; }
.mk { position: absolute; transform: translate(-50%, -50%); border: 3px solid #e5484d; border-radius: 50%; height: 0; pointer-events: none; }
.ph .mk { border-width: 2px; }

/* 찍기 체크리스트 */
.prog { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.prog-bar { flex: 1; height: 10px; border-radius: 6px; background: #e3e7e6; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.prog b { flex: none; font-size: 14px; }
.spots { display: grid; gap: 8px; }
.spot { background: var(--surface); border-radius: 16px; padding: 12px 12px 12px 14px; box-shadow: var(--shadow); }
.spot-top { display: flex; gap: 10px; align-items: center; }
.spot-top > i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; }
.spot--done .spot-top > i { background: var(--c); border-color: var(--c); }
.spot-top > div { flex: 1; min-width: 0; }
.spot-top b { display: block; font-size: 15px; }
.spot-top span { display: block; font-size: 12px; color: var(--muted); }
.sticky { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); margin-top: 18px; z-index: 5; }
.sticky .primary { margin-top: 0; }

/* 흠집 표시 */
.mark-box { position: relative; margin-top: 8px; border-radius: 16px; overflow: hidden; background: #111; cursor: crosshair; }
.mark-box img { display: block; width: 100%; height: auto; pointer-events: none; }
.mk--edit em { position: absolute; top: -12px; right: -12px; width: 22px; height: 22px; border-radius: 50%; background: #e5484d; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.marks { display: grid; gap: 8px; margin-top: 12px; }
.mrow { display: flex; gap: 8px; align-items: center; }
.mrow em { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e5484d; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mrow input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 16px; }

/* 미리보기·확인서 */
.doc-preview, .doc { position: relative; background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-top: 12px; overflow: hidden; }
.wm { position: absolute; right: -36px; top: 18px; transform: rotate(35deg); background: #c2410c; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 40px; }
.dp-k { margin: 0; color: var(--c-deep); font-size: 13px; font-weight: 800; }
.doc-preview h2, .doc h2 { margin: 2px 0 4px; font-size: 22px; letter-spacing: -0.03em; }
.doc h3, .doc-preview h3 { margin: 18px 0 8px; font-size: 15px; }
.doc-meta { margin: 0; font-size: 13px; color: var(--ink-2); }
.doc-note { margin: 8px 0 0; font-size: 13px; color: var(--c-deep); font-weight: 700; }
.dp-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.dp-n div { background: var(--c-soft); border-radius: 12px; padding: 10px; text-align: center; }
.dp-n b { display: block; font-size: 24px; color: var(--c-deep); line-height: 1.2; }
.dp-n span { font-size: 12px; color: var(--ink-2); }
.dp-miss { font-size: 13px; color: #9a3412; background: #fff6ed; border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; }
.dp-ok { font-size: 13px; color: var(--c-deep); font-weight: 700; margin: 8px 0 0; }
.defects { display: grid; gap: 10px; }
.df { display: flex; gap: 10px; align-items: flex-start; }
.df .ph { flex: none; width: 92px; }
.df b { display: block; font-size: 14px; }
.df b small { color: var(--muted); font-weight: 600; }
.df span { display: block; font-size: 13px; color: var(--ink-2); }
.spotblock { margin-top: 12px; }
.spotblock > b { font-size: 13px; }
.rec { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.rec b { font-size: 13px; }
.rec p { margin: 4px 0 0; }
.rec code { background: #f1f3f5; padding: 1px 5px; border-radius: 4px; }
.big-n { font-size: 32px; font-weight: 800; color: var(--c-deep); margin: 10px 0; }
.big-n small { font-size: 15px; color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 12px; }

/* 값 상자 */
.price { margin-top: 14px; background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: inset 0 0 0 2px var(--c), var(--shadow); }
.price-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price-top b { font-size: 16px; }
.price-top em { font-style: normal; font-weight: 800; font-size: 18px; color: var(--c-deep); }
.price ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.price li { font-size: 14px; color: var(--ink-2); padding-left: 20px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--c); font-weight: 800; }
.price s { color: var(--muted); }

/* 들어올 때·나갈 때 나란히 */
.pair { background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); margin-top: 10px; }
.doc .pair { box-shadow: inset 0 0 0 1px var(--line); }
.pair--changed { box-shadow: inset 0 0 0 2px #c2410c; }
.pair-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pair-top b { font-size: 15px; }
.pair-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pair-ph span:not(.ph) { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }

/* 문제 기록 타임라인 */
.tl { list-style: none; margin: 12px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--c-soft); display: grid; gap: 14px; }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.tl em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--c-deep); }
.tl p { margin: 2px 0 0; font-size: 15px; }
.tl-x { position: absolute; right: 0; top: -4px; border: 0; background: none; color: var(--muted); font-size: 20px; width: 32px; height: 32px; }
.issue { margin-top: 12px; }
.sum { margin-top: 12px; background: #f6f8f8; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.sum p { margin: 4px 0; }
.sum em { font-style: normal; font-weight: 800; color: var(--c-deep); margin-right: 6px; }
.sum small { color: var(--muted); }

/* 비교 표 */
.cmp { margin-top: 8px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto; }
.cmp-row { display: grid; grid-template-columns: 76px repeat(var(--n), minmax(96px, 1fr)); border-bottom: 1px solid var(--line); font-size: 13px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > span { padding: 10px 8px; color: var(--muted); font-weight: 700; background: #fafbfb; }
.cmp-row > div { padding: 10px 8px; }
.cmp-head img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 4px; }
.cmp-head b { font-size: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.dot.g { background: var(--c); } .dot.o { background: #a3a8b0; } .dot.b { background: #c2410c; }

/* 링크 상태 */
.links { margin-top: 12px; }
.links > b { font-size: 15px; }
.lk { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 8px 0 0; }
.lk .ok { color: var(--c-deep); }

/* 받는 사람 */
.ack { margin-top: 8px; background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: inset 0 0 0 2px var(--c), var(--shadow); }
.ack b { display: block; font-size: 16px; }
.ack span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.ack input { width: 100%; margin-top: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 16px; }

/* 기다림 */
.busy { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 20; background: rgba(21, 23, 28, .92); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; display: flex; gap: 8px; align-items: center; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* 겹쳐 찍기 카메라 · 크게 보기 */
.cam, .zoom { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; align-items: center; justify-content: center; }
.cam video, .cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cam img { opacity: .4; pointer-events: none; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: center; }
.cam-shot { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.3); }
.cam-x, .cam-o { border: 0; background: rgba(0,0,0,.5); color: #fff; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.zoom .cam-x { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; font-size: 22px; }
.cam-tip { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px #000; margin: 0; }
.zoom img { max-width: 100%; max-height: 100%; }
.app .card { margin-top: 12px; }
.app .chips + .tl { margin-top: 16px; }
.row-card .tiny { flex: none; white-space: nowrap; }
