/* 마음 법정 · 2026-09-19 전면 개편
   재미 앱 표준 «법정 웹툰» 톤(헌법 §7 · 정본 3.오늘운세 §4) + 마음이 분홍 강조. */
:root {
    --cream: #FFF6E5;
    --paper: #FFFFFF;
    --ink: #1A1A1A;
    --ink-soft: #4A4A4A;
    --mute: #7A7266;
    --heart: #FF6F93;
    --heart-soft: #FFE6EC;
    --red: #E8332A;
    --yellow: #FFD13F;
    --yellow-soft: #FFF1B8;
    --navy: #2E4374;
    --navy-soft: #E4E9F4;
    --gray-soft: #EEEDEA;
    --line: 3px solid var(--ink);
    --shadow: 5px 5px 0 var(--ink);
    --shadow-s: 3px 3px 0 var(--ink);
    --display: 'Black Han Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --body: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    --head-h: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); word-break: keep-all; min-height: 100vh; -webkit-tap-highlight-color: transparent;
       background-color: var(--cream); background-image: repeating-linear-gradient(135deg, rgba(26,26,26,.028) 0 14px, transparent 14px 28px); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.label { font-size: .74rem; font-weight: 900; color: var(--mute); letter-spacing: .02em; }

/* 머리 (헌법 §5) */
.shin-header { position: sticky; top: 0; z-index: 40; height: var(--head-h); display: flex; align-items: center; background: var(--cream); border-bottom: var(--line); }
.shin-header-inner { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--navy); color: #fff; border: 2px solid var(--ink); border-radius: 8px; font-family: serif; font-weight: 700; font-size: 18px; }
.brand-name { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.head-tools { display: flex; gap: 6px; flex: none; }
.tool-btn { width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; line-height: 1; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); text-decoration: none; transition: transform .1s, box-shadow .1s; }
.tool-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.tool-btn.off { background: #EDE6D8; opacity: .75; }

/* 공통 */
.card { background: var(--paper); border: var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 16px; border: var(--line); border-radius: 14px; background: var(--paper); font-weight: 800; box-shadow: var(--shadow-s); text-decoration: none; color: var(--ink); transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.ghost { box-shadow: none; border-width: 2px; }
.btn.wide { width: 100%; }
.btn:focus-visible, .tool-btn:focus-visible, .charge:focus-visible, .style:focus-visible, .qchip:focus-visible { outline: 3px solid var(--heart); outline-offset: 2px; }
.screen { padding: 16px 0 40px; }
.kicker { display: inline-block; font-size: .76rem; font-weight: 800; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; box-shadow: 2px 2px 0 var(--ink); }

/* ① 입장 */
.title-block { text-align: center; }
.logo { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 11vw, 3rem); line-height: 1.08; margin-top: 10px; }
.logo span { color: var(--heart); -webkit-text-stroke: 1.4px var(--ink); paint-order: stroke fill; }
.sub { font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin-top: 6px; text-wrap: balance; }
.hero { position: relative; margin-top: 14px; height: 250px; overflow: hidden; padding: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: .6; }
/* 인물 크기는 무대 «높이»에 맞춘다 — 폭에 맞추면 넓은 화면에서 그림이 커져 머리가 말풍선 밑으로 파고든다(2026-09-19 조변 지적) */
.hero-pros { position: absolute; left: -3%; bottom: -8px; height: 74%; width: auto; transform: scaleX(-1); filter: drop-shadow(-3px 3px 0 rgba(26,26,26,.18)); }
.hero-maumi { position: absolute; left: 50%; bottom: 4px; height: 46%; width: auto; transform: translateX(-45%); }
.hero-jo { position: absolute; right: 1%; bottom: -26px; height: 80%; width: auto; filter: drop-shadow(3px 3px 0 rgba(26,26,26,.18)); }
.bubble { position: absolute; top: 12px; background: var(--paper); border: var(--line); border-radius: 14px; padding: 7px 10px; box-shadow: var(--shadow-s); font-weight: 800; font-size: .82rem; line-height: 1.35; }
.bubble small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 700; color: var(--mute); }
.b-pros { left: 10px; background: var(--gray-soft); }
.b-jo { right: 10px; text-align: right; }
.b-jo::first-line { color: var(--red); }
.motto { margin-top: 12px; text-align: center; }
.motto b { display: inline-block; font-family: var(--display); font-weight: 400; font-size: 1.08rem; background: var(--heart-soft); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; }
.motto small { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; color: var(--mute); }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-top: 14px; }
.resume-info { font-weight: 800; margin-top: 2px; font-size: .88rem; }
.resume .btn { min-height: 40px; padding: 6px 12px; font-size: .88rem; }
.step-label { font-family: var(--display); font-size: 1.08rem; margin: 18px 0 8px; }
.step-label.in { margin: 14px 0 8px; }
.step-label.in:first-child { margin-top: 0; }
.step-label span { font-family: var(--body); font-size: .76rem; font-weight: 700; color: var(--mute); margin-left: 4px; }
.charges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.charge { position: relative; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); padding: 9px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 3px 3px 0 var(--ink); text-align: center; transition: transform .1s, box-shadow .1s; }
.charge:active { transform: translate(3px, 3px); box-shadow: none; }
.charge.on { background: var(--heart-soft); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.charge.custom { background: var(--yellow-soft); }
.charge .ci { font-size: 1.5rem; line-height: 1.15; }
.charge .cn { font-size: .84rem; font-weight: 900; line-height: 1.2; }
.charge .cl { font-size: .68rem; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }
.fact { margin-top: 16px; padding: 14px 14px 16px; scroll-margin-top: calc(var(--head-h) + 12px); }
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.field .lab { font-size: .82rem; font-weight: 900; }
.field .lab em { font-style: normal; font-weight: 700; color: var(--mute); font-size: .74rem; margin-left: 4px; }
.field input, .field textarea { width: 100%; font-size: 16px; line-height: 1.5; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style { border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); padding: 8px 4px; font-weight: 800; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.style[aria-checked="true"] { background: var(--navy); color: #fff; transform: translate(2px, 2px); box-shadow: none; }
.style-desc { font-size: .76rem; font-weight: 700; color: var(--mute); margin-top: 6px; min-height: 1.2em; }
.btn.open { margin-top: 14px; min-height: 54px; font-family: var(--display); font-weight: 400; font-size: 1.25rem; background: var(--red); color: #fff; }
.home-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.home-foot .btn { min-height: 42px; padding: 6px 8px; font-size: .84rem; }
.badge { background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 7px; font-size: .74rem; }
.flow { font-size: .8rem; font-weight: 700; color: var(--ink-soft); line-height: 1.6; margin-top: 12px; }
.limit-note { margin-top: 14px; font-size: .8rem; line-height: 1.6; background: rgba(128,128,128,.12); border-radius: 10px; padding: 10px 12px; }
/* 안내 한 줄 (헌법 §12-B 규격) */
.notice-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 12px; font-size: .8rem; line-height: 1.6; background: rgba(0,0,0,.035); border: 1px solid rgba(0,0,0,.09); border-radius: 10px; }
.notice-line svg { width: 14px; height: 14px; flex: none; margin-top: 3px; opacity: .5; }
.notice-line > span { flex: 1; min-width: 0; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; font-weight: 800; }
.credit { margin-top: 14px; text-align: center; font-size: .74rem; color: var(--mute); }

/* ② 재판 */
.screen.trial { padding: 10px 0 0; display: flex; flex-direction: column; height: calc(100vh - var(--head-h)); height: calc(100dvh - var(--head-h)); }
.bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; box-shadow: var(--shadow-s); border-radius: 14px; }
.bar-l { min-width: 0; flex: 1; }
.case { font-size: .72rem; font-weight: 800; color: var(--mute); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .72rem; font-weight: 800; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; background: var(--heart-soft); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stage-name { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; margin-top: 3px; }
.stage-goal { font-size: .72rem; font-weight: 700; color: var(--mute); }
.bar-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.stages { display: flex; gap: 4px; }
.st { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.st.done { background: var(--navy); }
.st.now { background: var(--heart); transform: scale(1.2); }
.mini { font-size: .76rem; font-weight: 800; border: 2px solid var(--ink); border-radius: 9px; background: var(--yellow); padding: 3px 10px; }
.chat { flex: 1; overflow-y: auto; padding: 14px 2px 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg .av { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: var(--navy-soft); overflow: hidden; }
.msg .av img { width: 100%; height: 100%; object-fit: cover; }
.msg .av-pros { background: var(--gray-soft); }
.msg .av-me { background: var(--heart-soft); }
.msg .av-me img { object-fit: contain; object-position: 50% 30%; transform: scale(1.35) translateY(8%); }
.msg .bub { max-width: 82%; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 9px 12px; box-shadow: 2px 2px 0 var(--ink); line-height: 1.65; font-size: .95rem; white-space: pre-line; }
.msg .who { display: block; font-size: .7rem; font-weight: 900; color: var(--navy); margin-bottom: 2px; }
.msg .q { display: block; margin-top: 8px; padding-top: 8px; border-top: 2px dashed #D8CDB6; font-weight: 800; }
.msg .q::before { content: '질문 · '; color: var(--heart); font-weight: 900; }
.msg.pros .bub { background: var(--gray-soft); font-weight: 700; }
.msg.pros .who { color: #555; }
.msg.me { justify-content: flex-end; }
.msg.me .bub { background: var(--heart-soft); border-radius: 16px 16px 4px 16px; }
.msg.me .who { color: #C0406A; }
.msg .warnb { background: #FFF4E0; }
.msg.new .bub { animation: popIn .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes popIn { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.event { align-self: center; font-size: .78rem; font-weight: 800; color: var(--navy); background: var(--navy-soft); border: 2px solid var(--navy); border-radius: 999px; padding: 4px 12px; text-align: center; }
.exclude { position: relative; align-self: center; width: min(92%, 380px); background: #FFFDF6; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-s); padding: 12px 14px 12px 86px; }
.exclude .stamp { position: absolute; left: 12px; top: 50%; width: 62px; height: 62px; margin-top: -31px; display: grid; place-items: center; border: 4px solid var(--red); border-radius: 50%; color: var(--red); font-family: var(--display); font-size: 1.1rem; transform: rotate(-14deg); background: rgba(232,51,42,.06); }
.exclude .ex-k { font-size: .72rem; font-weight: 900; color: var(--red); }
.exclude .ex-s { font-family: var(--display); font-size: 1.02rem; line-height: 1.35; margin-top: 2px; }
.exclude .ex-n { font-size: .82rem; line-height: 1.55; color: var(--ink-soft); margin-top: 4px; }
.exclude.in .stamp { animation: stampIn .45s cubic-bezier(.2,1.6,.4,1); }
.exclude.in { animation: popIn .3s ease-out; }
@keyframes stampIn { 0% { transform: rotate(-14deg) scale(2.4); opacity: 0; } 60% { transform: rotate(-14deg) scale(.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); } }
.thinking { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--mute); }
.thinking img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; object-position: 50% 6%; background: var(--navy-soft); }
.thinking span i { font-style: normal; animation: blink 1.2s infinite; }
.thinking span i:nth-child(2) { animation-delay: .2s; } .thinking span i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.dock { padding: 8px 0 max(8px, env(safe-area-inset-bottom)); border-top: var(--line); background: var(--cream); }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.qchip { flex: none; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); padding: 7px 12px; font-size: .86rem; font-weight: 800; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.qchip:active { transform: translate(2px, 2px); box-shadow: none; }
.qchip:disabled { opacity: .4; }
.say { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.say textarea { resize: none; min-width: 0; max-height: 120px; font-size: 16px; line-height: 1.45; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); }
.say textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.send { width: 48px; min-height: 46px; padding: 0; background: var(--navy); color: #fff; font-size: 1.1rem; }
.quota { font-size: .7rem; color: var(--mute); text-align: right; margin-top: 4px; min-height: 1em; }

/* ③ 선고 */
.judgment { position: relative; padding: 20px 16px 16px; overflow: hidden; }
.j-maumi { position: absolute; right: 10px; top: 12px; width: 21%; height: auto; }
.j-court { font-size: .76rem; font-weight: 800; color: var(--mute); }
.j-title { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .4em; margin-top: 4px; }
.j-no { font-size: .86rem; font-weight: 800; margin-top: 4px; padding-right: 24%; }
.j-line { font-size: .8rem; font-weight: 700; color: var(--mute); margin-top: 2px; padding-right: 24%; }
.v-stamp { width: 132px; height: 132px; margin: 16px auto 4px; display: grid; place-items: center; border-radius: 50%; border: 7px solid var(--red); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--red); color: var(--red); font-family: var(--display); font-size: 2.2rem; transform: rotate(-10deg); animation: stampIn .55s cubic-bezier(.2,1.6,.4,1) .15s both; }
.v-stamp.half { border-color: #C26A00; color: #C26A00; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px #C26A00; font-size: 1.45rem; }
.v-stamp.blue { border-color: var(--navy); color: var(--navy); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--navy); font-size: 1.45rem; }
.j-sec { margin-top: 14px; border-top: 2px dashed #D8CDB6; padding-top: 10px; }
.j-sec p:not(.label):not(.cite) { font-size: .95rem; line-height: 1.7; }
.j-order { font-family: var(--display); font-size: 1.2rem !important; line-height: 1.45 !important; margin-top: 2px; }
.cite { font-size: .72rem; font-weight: 700; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tchip { font-size: .78rem; font-weight: 800; color: var(--red); border: 2px solid var(--red); border-radius: 999px; padding: 2px 10px; background: #FFF5F4; }
.tchip.muted { color: var(--mute); border-color: #CFC6B4; background: var(--paper); }
.thought, .recovery { margin-top: 14px; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; }
.thought { background: var(--yellow-soft); }
.thought p:not(.label) { font-family: var(--display); font-size: 1.12rem; line-height: 1.5; margin-top: 3px; }
.recovery { background: var(--heart-soft); }
.recovery p:not(.label) { font-weight: 800; line-height: 1.6; margin-top: 2px; }
.ptype { display: flex; gap: 10px; align-items: center; margin-top: 14px; background: var(--gray-soft); border-radius: 12px; padding: 10px 12px; }
.ptype img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; object-fit: cover; flex: none; }
.pt-name { font-family: var(--display); font-size: 1.05rem; margin-top: 1px; }
.pt-what { font-size: .8rem; line-height: 1.55; color: var(--ink-soft); margin-top: 2px; }
.closing { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.closing img { width: 30%; max-width: 150px; height: auto; flex: none; margin-bottom: -16px; }
.say-jo { position: relative; flex: 1; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; font-weight: 800; line-height: 1.6; margin-bottom: 10px; box-shadow: 2px 2px 0 var(--ink); }
.vhelp { margin-top: 14px; border: 2px solid var(--navy); border-radius: 12px; padding: 10px 12px; background: var(--navy-soft); display: grid; gap: 8px; }
.vhelp p { font-size: .88rem; line-height: 1.6; }
.vhelp .btn { justify-content: flex-start; min-height: 44px; font-size: .9rem; }
.j-sign { text-align: right; font-size: .74rem; font-weight: 700; color: var(--mute); margin-top: 22px; }
.v-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.v-actions .wide { grid-column: 1 / -1; }
.lawyer-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; background: var(--navy); color: #fff; border: var(--line); border-radius: 16px; box-shadow: var(--shadow-s); text-decoration: none; transition: transform .1s, box-shadow .1s; }
.lawyer-card:active { transform: translate(3px, 3px); box-shadow: none; }
.lawyer-card img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: var(--navy-soft); object-fit: cover; flex: none; }
.lawyer-card b { display: block; font-size: .95rem; }
.lawyer-card small { display: block; font-size: .78rem; opacity: .85; margin-top: 1px; }
.lawyer-card .arrow { margin-left: auto; font-size: 1.6rem; line-height: 1; }

/* 시트·알림 */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(26,26,26,.55); }
.sheet-card { width: 100%; max-width: 460px; max-height: 84vh; overflow-y: auto; padding: 18px 16px 16px; }
.sheet-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 2px 0 8px; }
.sheet-card p { line-height: 1.65; color: var(--ink-soft); }
.sheet-card p.small { font-size: .82rem; margin-top: 8px; }
.sheet-btns { display: flex; gap: 8px; margin-top: 14px; }
.sheet-btns .btn { flex: 1; }
.traps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.trap { position: relative; border: 2px dashed #CFC6B4; border-radius: 12px; padding: 9px 10px; background: #FBF8F1; color: var(--mute); min-height: 74px; }
.trap b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.02rem; }
.trap small { display: block; font-size: .72rem; line-height: 1.45; margin-top: 3px; }
.trap.on { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.trap.on em { display: block; font-style: normal; font-size: .76rem; font-weight: 900; color: var(--red); margin-top: 2px; line-height: 1.35; }
.trap .ask { color: var(--navy); font-weight: 700; }
.trap .cnt { position: absolute; right: 8px; top: 8px; font-size: .66rem; font-weight: 900; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 6px; }
.cases { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.cases button { width: 100%; text-align: left; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; background: var(--cream); display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.cases .cv { grid-row: span 2; font-family: var(--display); font-size: .9rem; color: var(--red); border: 2px solid var(--red); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; text-align: center; line-height: 1.05; transform: rotate(-8deg); }
.cases .cv.half { color: #C26A00; border-color: #C26A00; font-size: .72rem; }
.cases .cv.blue { color: var(--navy); border-color: var(--navy); font-size: .72rem; }
.cases b { font-size: .92rem; }
.cases small { font-size: .74rem; color: var(--mute); line-height: 1.4; }
.crisis { display: grid; gap: 8px; margin-top: 12px; }
.crisis .btn { justify-content: flex-start; }
.toast { position: fixed; left: 50%; bottom: 150px; z-index: 80; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 800; padding: 9px 16px; border-radius: 12px; max-width: calc(100vw - 32px); text-align: center; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: var(--red); }

@media (min-width: 600px) {
    .hero { height: 290px; }
    .bubble { font-size: .9rem; padding: 8px 12px; }
    .msg .bub { font-size: 1rem; }
}
@media (max-width: 360px) {
    .charges { grid-template-columns: repeat(2, 1fr); }
    .hero { height: 230px; }
    .bubble { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 2026-11-12 민감정보(건강) 별도 동의 칸 · 헌법 v3.176 «보이는 줄은 한 줄, 자세한 것은 접어 둔다» */
.m-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; background: var(--heart-soft); border: 2px solid var(--ink); border-radius: 12px; font-size: .82rem; font-weight: 700; line-height: 1.55; cursor: pointer; }
.m-consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.m-consent span { min-width: 0; overflow-wrap: anywhere; }
.m-consent.need { box-shadow: 0 0 0 3px var(--yellow); }
.m-consent-more { margin-top: 6px; font-size: .76rem; color: var(--ink-soft); }
.m-consent-more summary { cursor: pointer; font-weight: 900; color: var(--navy); padding: 6px 0; }
.m-consent-more ul { margin: 4px 0 0; padding-left: 1.1em; line-height: 1.6; }
.m-consent-more li { margin: 2px 0; overflow-wrap: anywhere; }
.m-consent-more b { margin-right: .3em; }
