/* Mobile shell (390x844 design: S02_Today.dc.html). */
.m-root { min-height: 100vh; background: var(--bg); position: relative; }
.m-body { display: flex; flex-direction: column; gap: 14px; padding: 48px 18px 120px 18px; max-width: 520px; margin: 0 auto; }
.m-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 2px; }
.m-head .d { display: flex; flex-direction: column; gap: 2px; }
.m-head .date { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.m-head h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.m-me { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--reagent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
/* 휴대폰 「오늘」: 맞춘 시각 한 줄, 아래로 당기면 최신화·새로고침 고르기 (2026-10-22) */
.m-sync { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; align-self: flex-start; }
.m-sync svg { width: 13px; height: 13px; }
.m-pull { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; pointer-events: none; transform: translateY(-48px); transition: transform .15s; }
.m-pull span { margin-top: 8px; padding: 7px 14px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.m-pull.ready span { background: var(--reagent); color: var(--ink); }

.m-brief { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 22px; background: var(--ink); color: #fff; }
.m-brief .txt { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.m-brief .big { font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.m-play { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--reagent); color: var(--ink); display: flex; align-items: center; justify-content: center; text-decoration: none; border: none; cursor: pointer; }

.m-sec { display: flex; flex-direction: column; gap: 10px; }
.m-sh { display: flex; align-items: center; gap: 8px; padding: 6px 2px 0 2px; }
.m-sh h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.m-sh .n { background: #E4E7EC; }
.m-sh .hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }

.m-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); color: var(--text); text-decoration: none; }
.m-wrap { display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; -webkit-user-select: none; user-select: none; }
.m-wrap .m-acts { display: none; }
.m-wrap.open { border: 1.5px solid var(--text); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.m-wrap.open .m-acts { display: grid; }
.m-wrap .m-card { border: none; box-shadow: none; border-radius: 0; background: transparent; }
.m-row1 { display: flex; align-items: flex-start; gap: 10px; }
.m-row1 p { margin: 0; flex-grow: 1; font-size: 16px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.m-pill { flex-shrink: 0; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; }
.m-pill.warn { background: var(--warn-bg); color: var(--warn-text); }
.m-pill.plain { background: var(--hover); color: var(--text-2); }
.m-pill.family { background: var(--family-bg); color: var(--family-text); }
.m-row2 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.m-av { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.m-av.me { background: var(--ink); color: var(--reagent); }
.m-tag { margin-left: auto; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; display: flex; align-items: center; }
.m-tag.work { background: var(--sel); color: var(--link); }
.m-tag.family { background: var(--family-bg); color: var(--family-text); }
.m-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 10px 10px 10px; }
.m-acts button { height: 44px; border-radius: 12px; border: none; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.m-acts .hold { background: var(--hover); color: var(--text-2); }
.m-acts .tmr { background: var(--sel); color: var(--link); }
.m-acts .done { background: var(--ink); color: var(--reagent); }
.m-acts .i { width: 17px; height: 17px; }
.m-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.m-line .ib { width: 36px; height: 36px; border-radius: 10px; background: var(--sel); color: var(--link); display: flex; align-items: center; justify-content: center; }
.m-line .tx { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.m-line .tx b { font-size: 15px; font-weight: 600; }
.m-line .tx span { font-size: 12.5px; color: var(--muted); }
.m-line .when { font-size: 13px; font-weight: 700; color: var(--link); }
.m-faces { display: flex; }
.m-faces span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; }
.m-faces span + span { margin-left: -7px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 86px; padding: 8px 8px 26px 8px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; z-index: 10; }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.tabbar a[aria-current='page'] { color: var(--text); font-weight: 700; }
.tabbar .i { width: 22px; height: 22px; stroke-width: 1.8; }
.tab-mic { width: 40px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--reagent); display: flex; align-items: center; justify-content: center; }
.tab-mic .i { width: 20px; height: 20px; }
/* 아이콘 칸 높이를 마이크 버튼(30px)과 같게 해 네 메뉴의 글자 줄을 맞춤 (사용자 지적 2026-10-11) */
.tabbar a > .i { margin: 4px 0; flex: none; }
.tabbar a > .tab-mic { flex: none; }
/* 가운데 입력 버튼을 크게 (사용자 요구 2026-10-11): 둥근 56px, 위로 올라오고 글자 줄은 다른 메뉴와 같음 */
.tabbar a > .tab-mic { width: 56px; height: 56px; border-radius: 28px; margin-top: -26px; box-shadow: 0 6px 16px rgba(11, 15, 20, .28); border: 3px solid #fff; box-sizing: border-box; }
.tabbar a > .tab-mic .i { width: 26px; height: 26px; }
.badge { position: absolute; top: 2px; left: 54%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--work-blue); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* grouped settings card (phone 더보기) */
.m-group { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.m-row + .m-row { border-top: 1px solid var(--line-soft); }
.m-row .tx { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.m-row .tx b { font-size: 15px; font-weight: 600; }
.m-row .tx span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.m-row .btn { flex-shrink: 0; }
.m-row.stack { flex-direction: column; align-items: stretch; }
.m-row .pair2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-row .pair2 .btn { justify-content: center; }

/* long-press opens PLASK's row, not the system callout */
.m-wrap .m-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* 좁은 화면의 설정(더보기) 칸: 칸 이름이 한 글자씩 꺾이지 않게, 글이 좁아지면 단추는 아래 줄로 (사용자 지적 2026-10-11) */
.m-root .tk { flex-wrap: wrap; row-gap: 10px; }
.m-root .tk-txt { flex: 1 1 180px; }
.m-row.stack .seg { align-self: flex-start; }

/* 설정 하위 화면 (UX 정비 2026-10-11): ‹ 설정 · 제목 머리 + 본문, 탭 바 없음 */
.m-sub { min-height: 100vh; }
.m-sub-body { display: flex; flex-direction: column; gap: 14px; padding: 6px 18px 120px 18px; max-width: 560px; margin: 0 auto; }
.m-sub .sh { padding: 4px 2px; }
.m-sub .sh h2 { font-size: 14px; color: var(--text-3); }
/* 처음 설정의 고르기 카드 */
.setup-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.setup-pick { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-family: inherit; text-align: left; cursor: pointer; color: var(--text); }
.setup-pick.on { border: 2px solid var(--text); padding: 13px; }
/* 받은 것 요약 (검은 카드) */
.ib-sum { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 22px; background: var(--ink); color: #fff; }
.ib-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ib-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #161C25; }
.ib-stat span { font-size: 24px; font-weight: 700; }
.ib-stat small { font-size: 12.5px; color: #B7C0CC; }
.ib-card { gap: 10px; }
.ib-card .item-t { font-size: 15px; line-height: 1.45; }
/* 밀린 것 한 줄 (오늘) */
.late-line { text-decoration: none; }
.late-line .tk-txt .t { color: var(--warn-fg); }
/* 감사 기록 본문 */
.ai-pre { white-space: pre-wrap; max-height: 300px; overflow: auto; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px; font-size: 12px; margin: 0; }
/* 오늘 머리 「PC에 정리 부탁」 · 재생 버튼 (UX v2 P06·P10) */
span.m-sync { cursor: default; }
.m-head .m-ask { align-self: flex-end; margin: 0 8px 2px auto; height: 34px; padding: 0 11px; border-radius: 17px; border: 1px solid var(--field-line); background: #fff; font: 600 12.5px var(--font); color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.m-head .m-ask svg { width: 14px; height: 14px; }
.m-brief .m-play { border: 0; cursor: pointer; }
.m-brief .m-play svg { width: 24px; height: 24px; }
.m-head .d { min-width: 0; flex: 1 1 auto; } .m-head .m-ask { margin-left: 6px; }
