:root {
  --bg: #f6f4ef; --card: #fff; --ink: #26221c; --soft: #7a7268; --line: #e8e3da;
  --accent: #d2552f; --home: #1f8a5b; --home-bg: #e3f4ea; --late: #b26a00; --late-bg: #fdf0d5;
  --out: #6b7280; --out-bg: #eceef1; --heart: #e0425a; --c: #6b7280;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
        "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
main { max-width: 34rem; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 1rem) 1rem calc(env(safe-area-inset-bottom) + 6rem); }
body.plain main { padding-bottom: 2rem; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.5rem; margin: 0; letter-spacing: -.02em; line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
h2 .add { margin-left: auto; font-size: .9rem; font-weight: 600; padding: .25rem .7rem;
  border-radius: 99px; background: #fbe9e2; }
p { margin: 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .25rem .25rem 1rem; }
.top .sub { color: var(--soft); font-size: .9rem; }
.top.month { justify-content: center; }
.top.month h1 { min-width: 9rem; text-align: center; font-variant-numeric: tabular-nums; }
.nav { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--card); color: var(--ink); font-size: 1.6rem; line-height: 1; border: 1px solid var(--line); }
.nav.text { width: auto; padding: 0 1rem; border-radius: 99px; font-size: .95rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1rem; margin-bottom: .9rem; }
.empty, .hint, .sum { color: var(--soft); font-size: .92rem; }
.hint { margin: -.4rem 0 .6rem; }
.sum { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.center { text-align: center; margin-top: 1.25rem; }

.avatar { display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 700; font-size: 1.1rem; }
.avatar.small { width: 2rem; height: 2rem; font-size: .9rem; }
.avatar.big { width: 4.5rem; height: 4.5rem; font-size: 1.9rem; }
.badge { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }
.badge.together { background: #fde4e8; color: var(--heart); }

/* 저녁 선택 */
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.opt { font: inherit; font-weight: 600; font-size: .95rem; min-height: 3.25rem; padding: .4rem .2rem; border-radius: .9rem;
  border: 1.5px solid var(--line); background: #faf8f4; color: var(--ink); cursor: pointer; word-break: keep-all; }
.opt.on.home { background: var(--home); border-color: var(--home); color: #fff; }
.opt.on.late { background: var(--late); border-color: var(--late); color: #fff; }
.opt.on.out { background: var(--out); border-color: var(--out); color: #fff; }
.people { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; }
.people li { display: flex; align-items: center; gap: .6rem; }
.people .name { font-weight: 600; }
.chip { margin-left: auto; font-size: .85rem; font-weight: 600; padding: .2rem .65rem; border-radius: 99px; }
.chip.home, .cell.home { background: var(--home-bg); color: var(--home); }
.chip.late, .cell.late { background: var(--late-bg); color: var(--late); }
.chip.out, .cell.out { background: var(--out-bg); color: var(--out); }
.chip.none { color: var(--soft); background: none; padding-right: 0; font-weight: 400; }

/* 일정 목록 */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.events a { display: flex; align-items: stretch; gap: .7rem; color: inherit; padding: .6rem .7rem .6rem 0;
  background: #faf8f4; border-radius: .8rem; overflow: hidden; }
.events .bar { width: .3rem; background: var(--c); border-radius: 0 3px 3px 0; flex: none; }
.events .body { display: grid; min-width: 0; flex: 1; }
.events strong { overflow-wrap: anywhere; }
.events small { color: var(--soft); font-size: .84rem; }
.events .memo { white-space: pre-line; overflow-wrap: anywhere; }
.who-tag { align-self: center; flex: none; font-size: .78rem; font-weight: 700; color: var(--c);
  border: 1.5px solid var(--c); border-radius: 99px; padding: .1rem .55rem; }

/* 이번 주 저녁 표 */
.week { width: 100%; border-collapse: separate; border-spacing: 0 .3rem; table-layout: fixed; font-size: .85rem; }
.week thead th { font-weight: 600; font-size: .8rem; padding-bottom: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week thead .dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); margin-right: .25rem; }
.week tbody th { width: 3.6rem; text-align: left; font-weight: 600; white-space: nowrap; }
.week tbody th small { color: var(--soft); font-weight: 400; }
.week th.sun, .week th.sun small { color: #d6402f; } .week th.sat, .week th.sat small { color: #2f6fde; }
.week td { padding: 0 .15rem; text-align: center; }
.week tr.together th::after { content: " ♥"; color: var(--heart); }
.cell { display: block; width: 100%; min-height: 2.5rem; line-height: 2.5rem; border-radius: .6rem; font: inherit;
  font-size: .82rem; font-weight: 600; border: 0; padding: 0; }
.cell.none { background: #f4f1eb; color: #b3aca1; font-weight: 400; }
.cell.mine { cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.14); }
.cell.mine.none { color: var(--accent); background: #fff; box-shadow: inset 0 0 0 1.5px #ecc5b8; }

/* 달력 */
.cal { padding: .75rem .5rem; }
.dow, .wk { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow { font-size: .78rem; color: var(--soft); text-align: center; padding-bottom: .35rem; }
.sun { color: #d6402f; } .sat { color: #2f6fde; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 3.4rem;
  padding: .3rem 0; border-radius: .7rem; color: var(--ink); }
.day.sun { color: #d6402f; } .day.sat { color: #2f6fde; }
.day.other { opacity: .32; }
.day .num { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.day.today .num { background: var(--ink); color: #fff; font-weight: 700; }
.day.sel { background: #f3ede2; box-shadow: inset 0 0 0 1.5px #d9cdb8; }
.dots { display: flex; gap: 2px; height: .4rem; }
.dots i, .legend i { display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; }
.heart { color: var(--heart); }
.day .heart { position: absolute; top: .05rem; right: .25rem; font-size: .7rem; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .78rem; color: var(--soft);
  padding: .6rem .5rem 0; margin-top: .4rem; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; }

/* 입력 폼 */
.form { display: grid; gap: .9rem; }
.form h2 { margin: 0; }
label, legend { font-size: .88rem; font-weight: 600; color: var(--soft); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .35rem; }
input[type=text], input[type=password], input[type=date], input[type=time], textarea {
  display: block; width: 100%; margin-top: .3rem; font: inherit; color: var(--ink); background: #faf8f4;
  border: 1.5px solid var(--line); border-radius: .8rem; padding: .7rem .8rem; min-height: 3rem; -webkit-appearance: none; appearance: none; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pin { text-align: center; font-size: 1.5rem; letter-spacing: .5em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.row[hidden] { display: none; }
.check { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1rem; }
.check input { width: 1.3rem; height: 1.3rem; accent-color: var(--accent); }
.pick { display: flex; flex-wrap: wrap; gap: .45rem; }
.pick input, .swatches input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: block; padding: .5rem .95rem; border-radius: 99px; border: 1.5px solid var(--line); color: var(--ink);
  background: #faf8f4; font-size: .95rem; cursor: pointer; }
.pick input:checked + span { background: var(--c); border-color: var(--c); color: #fff; }
.pick input:focus-visible + span, .swatches input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatches span { display: block; width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer; }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--card), 0 0 0 5.5px var(--ink); }
.btn { display: inline-block; width: 100%; font: inherit; font-weight: 700; text-align: center; min-height: 3.1rem; padding: .7rem 1rem;
  border-radius: .9rem; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: #c0392b; border-color: #efc9c4; }
a.btn { width: auto; }
.del { margin: 0 0 .9rem; }
.msg { padding: .7rem .9rem; border-radius: .8rem; margin-bottom: .9rem; font-size: .92rem; font-weight: 600; }
.msg.bad { background: #fde8e6; color: #b3261e; } .msg.good { background: var(--home-bg); color: var(--home); }
.guide { margin: 0; padding-left: 1.1rem; font-size: .92rem; color: var(--soft); display: grid; gap: .4rem; }
.guide b { color: var(--ink); }

/* 로그인 */
.hello { text-align: center; padding: 2.5rem 0 1.5rem; display: grid; justify-items: center; gap: .5rem; }
.hello img { border-radius: 22%; }
.hello p { color: var(--soft); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.who a { display: grid; justify-items: center; gap: .5rem; padding: 1.4rem .5rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 1.1rem; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.who .avatar { width: 3.6rem; height: 3.6rem; font-size: 1.5rem; }

/* 아래 탭 */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: .25rem;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: .35rem .5rem calc(env(safe-area-inset-bottom) + .35rem); }
.tabs a { flex: 1; max-width: 9rem; display: grid; justify-items: center; gap: .1rem; padding: .35rem 0; font-size: .75rem;
  font-weight: 600; color: var(--soft); border-radius: .8rem; }
.tabs svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--accent); }
.form > *, .row > * { min-width: 0; }

/* ── 추가 기능 공통 ── */
small { color: var(--soft); font-size: .84rem; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.count { font-weight: 400; margin-left: .1rem; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.go { color: var(--soft); font-size: 1.3rem; line-height: 1; }
select { display: block; width: 100%; margin-top: .3rem; font: inherit; color: var(--ink); background: #faf8f4;
  border: 1.5px solid var(--line); border-radius: .8rem; padding: .7rem .8rem; min-height: 3rem; }
input[type=file] { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: .9rem; padding: .6rem;
  border: 1.5px dashed var(--line); border-radius: .8rem; background: #faf8f4; }
label small, legend small { font-weight: 400; }
.btn.small { width: auto; min-height: 2.4rem; padding: .35rem .9rem; font-size: .9rem; }
.textbtn { font: inherit; font-size: .84rem; color: var(--soft); background: none; border: 0; padding: .5rem .3rem; cursor: pointer; text-decoration: underline; }
.quick { display: flex; gap: .5rem; align-items: stretch; }
.quick input[type=text] { margin: 0; flex: 1; min-width: 0; }
.quick .btn { width: auto; flex: none; padding: .5rem 1rem; }
.card.quick { padding: .7rem; }
a.card { display: block; color: inherit; }
.linkrow { display: flex !important; align-items: center; justify-content: space-between; gap: .5rem; }
.linkrow b { margin-right: .4rem; }
details.card summary { font-weight: 700; color: var(--accent); cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }

/* 목록 줄 */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li, .rows li > a { display: flex; align-items: center; gap: .7rem; color: inherit; }
.rows li { padding: .5rem 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; } .rows li:last-child { padding-bottom: 0; }
.rows li > a { flex: 1; min-width: 0; }
.rows.tall li { padding: .7rem 0; }
.rows .grow small { display: block; overflow-wrap: anywhere; }
.rows li > .grow > small, .rows li > small { display: inline; }
.dday { flex: none; min-width: 3.3rem; text-align: center; font-size: .82rem; font-weight: 700; padding: .2rem .4rem;
  border-radius: 99px; background: var(--out-bg); color: var(--out); font-variant-numeric: tabular-nums; }
.dday.now { background: #fde4e8; color: var(--heart); }
.star { color: #c58a00; }
.day .star { position: absolute; top: .05rem; left: .25rem; font-size: .68rem; }
.msg.anniv { background: #fdf3d6; color: #8a6100; }

/* 오늘 화면의 메뉴 줄 */
.menu-line { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem;
  padding: .6rem .8rem; background: #faf8f4; border-radius: .8rem; font-size: .93rem; }
.menu-line span { min-width: 0; } .menu-line a { flex: none; font-weight: 700; font-size: .88rem; }
.menu-line small { display: block; }

/* 한마디 */
.talk { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .8rem; }
.talk.full { margin-top: 0; }
.talk li { display: flex; gap: .6rem; align-items: flex-start; }
.talk .bubble { display: inline-block; background: #f4f1eb; border-radius: .3rem 1rem 1rem 1rem; padding: .5rem .8rem;
  overflow-wrap: anywhere; border-left: 3px solid var(--c); }
.talk small { display: block; margin-top: .15rem; }
.talk .meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.talk .meta small { margin: 0; }
.like { font: inherit; font-size: .84rem; border: 1.5px solid var(--line); background: #fff; color: var(--soft); border-radius: 99px;
  padding: .25rem .7rem; min-height: 2rem; cursor: pointer; }
.like.on { color: var(--heart); border-color: #f5b9c2; background: #fde4e8; font-weight: 700; }
.memory { background: #fffaf0; }

/* 앨범 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.grid3 a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: .5rem; background: #eee9df; }
.grid3 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid3 span { position: absolute; left: .3rem; bottom: .3rem; font-size: .72rem; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.55); padding: .05rem .4rem; border-radius: 99px; }
.bigphoto { display: block; width: 100%; border-radius: 1rem; background: #eee9df; }
.pager { display: flex; gap: .6rem; } .pager .btn { flex: 1; }

/* 장보기 */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chipbtn { display: inline-block; font: inherit; font-size: .9rem; padding: .45rem .85rem; border-radius: 99px; border: 1.5px solid var(--line);
  background: #faf8f4; color: var(--ink); cursor: pointer; min-height: 2.4rem; }
.chipbtn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: .3rem; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checkrow { display: flex; align-items: center; gap: .7rem; width: 100%; font: inherit; text-align: left; background: none; border: 0;
  padding: .65rem 0; color: var(--ink); cursor: pointer; }
.checkrow .box { flex: none; width: 1.6rem; height: 1.6rem; border-radius: .45rem; border: 2px solid #cfc7b9; display: grid; place-items: center;
  font-weight: 700; color: #fff; }
.checkrow .by { display: block; }
.done .checkrow .box { background: var(--home); border-color: var(--home); }
.done .checkrow b { text-decoration: line-through; color: var(--soft); font-weight: 400; }

/* 메모 */
.note h2 { margin-bottom: .3rem; }
.note .body { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .4rem; }
.badge.pin { background: #fdf0d5; color: var(--late); }

/* 메뉴·레시피 */
.chosen { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.picks li { display: flex; align-items: center; gap: .7rem; background: #faf8f4; border-radius: .8rem; padding: .7rem .8rem; }
.picks b { font-size: 1.05rem; } .picks small { display: block; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

/* 더보기 */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tiles a { display: grid; gap: .2rem; align-content: start; min-height: 5.2rem; padding: 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 1.1rem; color: var(--ink); }
.tiles a:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.tabs a { max-width: 6rem; }

/* ── 답글 ── */
.card.post { padding-bottom: .8rem; }
.talk.replies { margin: .7rem 0 0 2.6rem; padding-left: .7rem; border-left: 2px solid var(--line); gap: .6rem; }
.avatar.tiny { width: 1.6rem; height: 1.6rem; font-size: .75rem; }
.talk.replies .bubble { background: #faf8f4; font-size: .95rem; padding: .4rem .7rem; }
.quick.reply { margin: .7rem 0 0 2.6rem; }
.quick.reply input[type=text] { min-height: 2.6rem; padding: .45rem .7rem; font-size: .95rem; }
.quick.reply .btn { min-height: 2.6rem; padding: .3rem .9rem; font-size: .9rem; }
.card.post:target { box-shadow: 0 0 0 2px var(--accent); }

/* ── 오늘의 이슈 ── */
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem .9rem; padding: 0 1rem .2rem; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chipbtn { flex: none; background: var(--card); }
.chips.scroll .chipbtn.on { background: var(--ink); }
.newslist { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.newslist li { counter-increment: n; position: relative; padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--line); }
.newslist li:first-child { border-top: 0; padding-top: .1rem; } .newslist li:last-child { padding-bottom: .1rem; }
.newslist li::before { content: counter(n); position: absolute; left: 0; top: .7rem; width: 1.4rem; text-align: center;
  font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.newslist li:first-child::before { top: .1rem; }
.newslist a { display: block; color: var(--ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.newslist a:visited { color: var(--soft); }
.newslist small { display: block; margin-top: .15rem; }
.newslist.short a { font-weight: 500; font-size: .95rem; }
.top > small { align-self: flex-end; padding-bottom: .2rem; }

/* ── 오늘의 이슈 한 줄 흐름 ── */
.ticker-card { display: flex; align-items: center; gap: .6rem; padding: .7rem .6rem .7rem 1rem; }
.ticker-label { flex: none; font-weight: 800; font-size: .88rem; color: var(--accent); white-space: nowrap; }
.ticker { flex: 1; min-width: 0; height: 1.6rem; overflow: hidden; }
.ticker ol { list-style: none; margin: 0; padding: 0; will-change: transform; }
.ticker li { height: 1.6rem; line-height: 1.6rem; }
.ticker li a { display: flex; gap: .45rem; color: var(--ink); }
.ticker li b { flex: none; min-width: 1.1rem; text-align: center; color: var(--accent); font-variant-numeric: tabular-nums; }
.ticker li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-empty { flex: 1; color: var(--soft); font-size: .92rem; }
.ticker-more { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--soft); font-size: 1.4rem; line-height: 1; }

/* ── 오늘 저녁 카드 간결하게 ── */
.dinner h2 { margin-bottom: .6rem; flex-wrap: wrap; }
.dinner h2 .count { margin-left: auto; font-size: .82rem; }
.dinner .opt { min-height: 2.6rem; font-size: .9rem; border-radius: .75rem; }
.people4 { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.people4 li { display: grid; justify-items: center; gap: .1rem; min-width: 0; }
.people4 .avatar.small { width: 1.9rem; height: 1.9rem; font-size: .85rem; }
.people4 .name { font-size: .78rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people4 .chip { margin: 0; font-size: .74rem; padding: .05rem .5rem; }
.people4 .chip.none { padding: .05rem .5rem; }
.dinner .menu-line { margin-top: .7rem; padding: .45rem .7rem; font-size: .88rem; }
.dinner .menu-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dinner .menu-line small { display: inline; margin-left: .2rem; }

/* ── 달력 칸에 일정 이름 표시 ── */
.cal { padding: .75rem .25rem; }
.day { min-height: 5.4rem; justify-content: flex-start; padding: .2rem 1px; gap: .1rem; border-radius: .5rem; min-width: 0; }
.day .num { width: 1.6rem; height: 1.6rem; font-size: .88rem; flex: none; }
.evs { display: grid; gap: 1px; width: 100%; min-width: 0; }
.evs i { display: block; font-style: normal; font-size: .62rem; line-height: 1.35; color: #fff; border-radius: 3px; padding: 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: clip; text-align: left; letter-spacing: -.03em; }
.evs em { font-style: normal; font-size: .6rem; color: var(--soft); text-align: center; line-height: 1.2; }
.day.other .evs i { opacity: .7; }
.events li.past { opacity: .5; }
.legend { padding: .6rem .6rem 0; }

/* ── 일정: 여러 사람 선택·표시 ── */
.pick.multi label.wide { flex-basis: 100%; }
.pick.multi label.wide span { text-align: center; }
.who-tags { align-self: center; flex: none; display: grid; gap: 2px; justify-items: end; max-width: 5.6rem; }
.who-tags i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--c);
  border: 1.5px solid var(--c); border-radius: 99px; padding: 0 .5rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ── 이번 주 저녁 ── */
.wk-head, .wk-list li { display: grid; grid-template-columns: 3.1rem repeat(4, 1fr); gap: .3rem; align-items: center; }
.wk-head { padding: 0 .15rem .35rem; }
.wk-who { display: grid; justify-items: center; gap: .1rem; font-size: .72rem; font-weight: 600; color: var(--soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-who .avatar { width: 1.6rem; height: 1.6rem; font-size: .75rem; font-style: normal; }
.wk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.wk-list li { padding: .2rem .15rem; border-radius: .6rem; }
.wk-list li.is-today { background: #f3ede2; }
.wk-list li.together { background: #fdeef1; }
.wk-day { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-day small { font-weight: 400; color: var(--soft); margin-left: .1rem; }
.wk-day .heart { font-size: .7rem; margin-left: .1rem; }
.wk-day.sun, .wk-day.sun small { color: #d6402f; } .wk-day.sat, .wk-day.sat small { color: #2f6fde; }
.wk-list form { display: contents; }
.slot { display: block; width: 100%; min-height: 2.4rem; line-height: 2.4rem; text-align: center; border: 0; padding: 0;
  border-radius: .55rem; font: inherit; font-size: .8rem; font-weight: 700; }
.slot.none { background: #f4f1eb; color: #bbb3a7; font-weight: 400; }
.slot.mine { cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12); }
.slot.mine.none { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px #ecc5b8; font-weight: 700; }
.wk-tip { margin: .7rem 0 0; }

/* ── 공휴일 ── */
.day .holi { font-size: .56rem; line-height: 1.1; color: #d6402f; font-weight: 700; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: clip; letter-spacing: -.04em; }
.day.other .holi { opacity: .5; }
.holi-dot { color: #d6402f; font-weight: 800; }
.msg.holi-msg { background: #fde8e6; color: #b3261e; }
.holi-today { font-size: .82rem; font-weight: 700; color: #d6402f; vertical-align: .12em; }

/* ── 장보기 전체 선택 ── */
.all-check { margin-left: auto; }
.allbtn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .84rem; font-weight: 600;
  color: var(--soft); background: #faf8f4; border: 1.5px solid var(--line); border-radius: 99px;
  padding: .3rem .75rem; min-height: 2.2rem; cursor: pointer; }
.allbtn .box { width: 1.1rem; height: 1.1rem; border-radius: .3rem; border: 2px solid #cfc7b9; display: grid;
  place-items: center; font-size: .7rem; color: #fff; }
.allbtn.on { color: var(--home); border-color: #a9d9c0; background: var(--home-bg); }
.allbtn.on .box { background: var(--home); border-color: var(--home); }

/* ── 가족 위치 ── */
.share-on { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--home); }
.share-on::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--home);
  box-shadow: 0 0 0 4px var(--home-bg); }
.share-on b { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--soft); }
.rows li > a.chipbtn { flex: none; min-height: 2rem; padding: .3rem .75rem; font-size: .82rem; }
.btn[disabled] { opacity: .45; cursor: default; }
.badge.me { background: #f3ede2; color: var(--soft); font-weight: 600; }

/* ── 저녁 이유 한마디 ── */
.quick.why { margin-top: .7rem; }
.quick.why input[type=text] { min-height: 2.6rem; padding: .45rem .7rem; font-size: .92rem; }
.quick.why .btn { min-height: 2.6rem; padding: .3rem .9rem; font-size: .9rem; }
.why-txt { font-size: .7rem; color: var(--soft); line-height: 1.25; text-align: center; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ── 달력: 일정을 직접 눌러 열기 ── */
.day { position: relative; }
.pick-day { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.day .num, .day .holi, .day .heart, .day .star, .evs em { position: relative; z-index: 0; pointer-events: none; }
.evs { position: relative; z-index: 1; }
.evs a.ev { display: block; font-size: .62rem; line-height: 1.35; color: #fff; border-radius: 3px; padding: 0 2px;
  white-space: nowrap; overflow: hidden; text-align: left; letter-spacing: -.03em; }
.evs a.ev:active { opacity: .75; }

/* ── 이번 주 저녁 접기 ── */
.dinner .wk-box { margin-top: .9rem; padding-top: .2rem; border-top: 1px solid var(--line); }
.wk-box .sub-head { margin: .7rem 0 .4rem; padding-top: 0; border-top: 0; }
.wk-box .wk-head { padding-bottom: .25rem; }
.wk-box .wk-who { gap: 0; }
.wk-tip { margin: .5rem 0 .2rem; text-align: center; font-size: .78rem; }
.wk-more { margin-top: .3rem; }
.wk-more summary { list-style: none; text-align: center; font-size: .85rem; font-weight: 700; color: var(--accent);
  padding: .5rem; cursor: pointer; border-radius: .6rem; }
.wk-more summary::-webkit-details-marker { display: none; }
.wk-more summary::after { content: " ⌄"; }
.wk-more[open] summary::after { content: " ⌃"; }
.wk-more[open] summary { color: var(--soft); }
.wk-more .wk-list { margin-bottom: .2rem; }

/* ── 일정 카드 안의 구분 ── */
.sub-head { margin: .9rem 0 .5rem; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .82rem; font-weight: 700; color: var(--soft); }
.rows li > a.grow { display: block; }
.rows li > a.grow small { display: block; }

/* ── 모든 기능 바로가기 ── */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .2rem; padding: .7rem .4rem; }
.menu-grid a { position: relative; display: grid; justify-items: center; align-content: start; gap: .25rem;
  padding: .6rem .1rem; border-radius: .8rem; color: var(--ink); font-size: .72rem; font-weight: 600;
  text-align: center; line-height: 1.2; word-break: keep-all; }
.menu-grid a:active { background: #f3ede2; }
.mi { font-size: 1.45rem; font-style: normal; line-height: 1.1; }
.menu-grid b { position: absolute; top: .3rem; right: 50%; margin-right: -1.5rem; min-width: 1.05rem; height: 1.05rem;
  padding: 0 .2rem; border-radius: 99px; background: var(--accent); color: #fff; font-size: .62rem;
  line-height: 1.05rem; text-align: center; }
