/* 폰트 */
@font-face {
    font-family: 'NostalgicGukhanbakLovely';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2607161334@x-10/x/GriunXHangeulSarangseureoun-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'BelovedMyoeunttobak';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-1@1.0/Griun_Myoeunddobak-Rg.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumSquareNeo';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-aLt.woff2);
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Isamanru';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'MaruBuri';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff2);
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'OkDandan';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2508-2@1.0/OkDanDan-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OngleipParkDahyeon';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/Ownglyph_ParkDaHyun.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IsYun';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2202-2@1.0/LeeSeoyun.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

/* 우리 가족 — 다이어리 / 미니홈피 느낌의 가족 공간 */
:root {
  --bg: #f8f4ea;
  --paper: #fffef9;
  --ink: #3d4452;
  --muted: #8a92a0;
  --line: #e5e0d3;
  /* 파스텔 팔레트: 색마다 (바탕) / -d (글자·테두리용 진한 톤) / -soft (아주 옅은 톤) */
  --sky: #c4e5f6;    --sky-d: #3a7ea3;    --sky-soft: #e8f5fc;
  --mint: #cdeedd;   --mint-d: #2f7d5b;   --mint-soft: #eaf8f1;
  --butter: #fff1bd; --butter-d: #8a6b00; --butter-soft: #fffae3;
  --peach: #ffdcc7;  --peach-d: #b85a2c;  --peach-soft: #fff1e8;
  --lav: #e2d9fb;    --lav-d: #6b55b8;    --lav-soft: #f2eefd;
  --rose: #ffd9e3;   --rose-d: #c4506f;
  /* 화면(탭)마다 포인트 색이 바뀜: 홈=하늘, 할 일=민트, 외출/여행=라벤더, 먹거리=복숭아 */
  --accent: var(--sky); --accent-d: var(--sky-d); --accent-soft: var(--sky-soft);
  --danger: #d6535a;
  --nav-w: 92px;
  --font-body: 'IsYun', 'NostalgicGukhanbakLovely', 'BelovedMyoeunttobak', 'Malgun Gothic'; /* 내용 기본 글꼴: 이서윤체 */
  --font-head: 'Jua', 'BelovedMyoeunttobak', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
body[data-tab='tasks'] { --accent: var(--mint);  --accent-d: var(--mint-d);  --accent-soft: var(--mint-soft); }
body[data-tab='trips'] { --accent: var(--lav);   --accent-d: var(--lav-d);   --accent-soft: var(--lav-soft); }
body[data-tab='food']  { --accent: var(--peach); --accent-d: var(--peach-d); --accent-soft: var(--peach-soft); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-padding-top: 12px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  min-height: 100dvh;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-d); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
small { font-size: 12.5px; }
.muted { color: var(--muted); font-size: 14px; }
code { background: var(--lav); padding: 1px 6px; border-radius: 6px; }

/* ---------- 껍데기 ---------- */
.app { max-width: 1040px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.brand { font-size: 24px; color: var(--lav-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--accent-soft); }

#view {
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: 26px;
  padding: 18px 16px 90px;
    min-height: 60dvh;
}

/* 좁은 화면: 하단 탭 */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, .96);
  border-top: 2px dashed var(--line);
  backdrop-filter: blur(6px);
}
.nav-item { flex: 1; max-width: 140px; min-height: 52px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--muted); }
.nav-item .ico { font-size: 22px; line-height: 1.1; filter: grayscale(.6); }
.nav-item .lbl { font-size: 12.5px; }
.nav-item.on { background: var(--accent); color: var(--ink); }
.nav-item[data-tab='home'].on { background: var(--sky); }
.nav-item[data-tab='tasks'].on { background: var(--mint); }
.nav-item[data-tab='trips'].on { background: var(--lav); }
.nav-item[data-tab='food'].on { background: var(--peach); }
.nav-item.on .ico { filter: none; }

/* 넓은 화면(폴드 펼침 · 태블릿 · PC): 오른쪽 세로 탭 */
@media (min-width: 600px) {
  .app { padding: 18px calc(var(--nav-w) + 22px) 40px 22px; }
  .nav {
    left: auto; top: 0; bottom: 0; right: 0; width: var(--nav-w);
    flex-direction: column; justify-content: center; align-items: stretch; gap: 10px;
    padding: 12px 10px; border-top: 0; border-left: 2px dashed var(--line);
  }
  .nav-item { max-width: none; flex: 0 0 auto; min-height: 72px; gap: 2px; }
  .nav-item .ico { font-size: 26px; }
  #view { padding: 22px 24px 90px; }
}

.fab {
  position: fixed; z-index: 15; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; padding: 0 0 3px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); border: 2px solid var(--accent-d); font-family: var(--font-body); font-size: 34px; line-height: 1;
}
.fab:active { transform: translate(2px, 2px);  }
@media (min-width: 600px) { .fab { right: calc(var(--nav-w) + 28px); bottom: 28px; } }

/* ---------- 공통 조각 ---------- */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mc, var(--accent-d)); flex: none; }
.dot.lg { width: 18px; height: 18px; }
.dot.faded { opacity: .35; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px;
  border: 2px solid var(--line); background: #fff; white-space: nowrap; position: relative;
}
.chip.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.chip.on, .chip.pick:has(input:checked) { border-color: var(--mc, var(--accent-d)); background: color-mix(in srgb, var(--mc, var(--accent-d)) 16%, #fff); font-weight: 700; }
.chip.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip.pick:has(input:focus-visible) { outline: 3px solid var(--accent-d); outline-offset: 2px; }
.chip.pick span { display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.sep { width: 2px; height: 20px; background: var(--line); border-radius: 2px; margin: 0 2px; }

.btn { min-height: 48px; padding: 0 20px; border-radius: 24px; border: 2px solid var(--line); background: #fff; font-family: var(--font-head); font-size: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent-d); color: var(--ink); box-shadow: 2px 3px 0 var(--accent-d); }
.btn.danger { color: var(--danger); border-color: #f3cdd0; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .5; }
.stack { display: grid; gap: 10px; margin-top: 14px; }

.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.seg button { min-height: 36px; padding: 0 14px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--ink); }
.seg.wide { display: flex; margin-bottom: 18px; }
.seg.wide button { flex: 1; min-height: 44px; font-size: 16px; }

.empty { color: var(--muted); text-align: center; padding: 18px 8px; margin: 0; }
.empty.big { padding: 48px 8px; font-size: 17px; }
.hint { color: var(--muted); font-size: 14px; text-align: center; margin: 12px 0 0; }
.note { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.more-link { color: var(--accent-d); font-size: 14px; padding: 8px 4px; }

/* ---------- 홈 ---------- */
.hero { margin-bottom: 22px; }
.date-tape {
  display: inline-block; padding: 3px 16px; margin-bottom: 10px; font-size: 14px;
  background: repeating-linear-gradient(135deg, var(--butter) 0 10px, #ffe9a0 10px 12px);
  transform: rotate(-1.8deg); border-radius: 3px; box-shadow: 1px 2px 0 rgba(0,0,0,.08);
}
.hero h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.25; margin-bottom: 12px; }
.hero-sub { margin: 6px 0 0; color: var(--muted); }
.stickers { display: flex; flex-wrap: wrap; gap: 8px; }
.sticker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 16px; border: 2px solid var(--mc, var(--accent-d)); background: color-mix(in srgb, var(--mc, var(--accent-d)) 12%, #fff); font-size: 14px; }
.sticker:nth-child(odd) { transform: rotate(-1.5deg); }
.sticker:nth-child(even) { transform: rotate(1.2deg); }
.sticker b { font-family: var(--font-head); font-weight: 400; font-size: 17px; }
.who-ask { margin-top: 16px; padding-top: 12px; border-top: 2px dotted var(--line); }
.who-ask p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }

.home-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .home-grid { grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; } }
.home-col > section + section { margin-top: 26px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 2px dotted var(--line); }
.sec-head h2 { font-size: 20px; }
.sec-head h2::before { content: '▪️ '; color: var(--accent-d); }

/* ---------- 할 일 목록 ---------- */
.tasks .task { display: flex; align-items: flex-start; gap: 2px; padding: 6px 0; border-bottom: 1.5px dotted var(--line); }
.tasks .task:last-child { border-bottom: 0; }
.check { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.check span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--mc); background: #fff; display: grid; place-items: center; transition: background .15s; }
.task.done .check span { background: var(--mc); }
.task.done .check span::after { content: '✓'; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1; }
.task-body { flex: 1; min-width: 0; padding: 8px 4px; cursor: pointer; }
.task-title { font-size: 17px; line-height: 1.35; word-break: break-word; }
.task.done .task-title { text-decoration: line-through; text-decoration-color: var(--muted); }
.task.done .task-body { opacity: .45; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; font-size: 12.5px; color: var(--muted); align-items: center; }
.who { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.tag { padding: 0 8px; border-radius: 10px; background: #f1efe7; }
.tag.trip { background: var(--mint); color: #2c6b57; }
.tag.late { background: var(--rose); color: var(--rose-d); }
.task-memo { margin-top: 3px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.share { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.share:hover { background: var(--accent-soft); color: var(--accent-d); }
.tasks.compact .task-title { font-size: 15.5px; }
.tasks.compact .check { width: 42px; height: 42px; }
.tasks.compact .check span { width: 24px; height: 24px; }

/* ---------- 달력 ---------- */
.cal-head { display: flex; align-items: center; gap: 4px; margin: 6px 0 4px; }
.cal-head strong { flex: 1; text-align: center; font-family: var(--font-head); font-weight: 400; font-size: 19px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dow { text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.dow.sun { color: var(--rose-d); }
.day { position: relative; min-height: 50px; border-radius: 14px; padding: 4px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.day .n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; }
.day.other { opacity: .35; }
.day.today .n { background: var(--butter); color: var(--ink); box-shadow: 0 0 0 2px #ecd36b; }
.day.sel { background: var(--accent-soft); outline: 2px dashed var(--accent-d); outline-offset: -2px; }
.dots { display: flex; gap: 3px; min-height: 8px; }
.dots .dot { width: 7px; height: 7px; }
.trip-mark { position: absolute; top: 0; right: 1px; font-size: 11px; line-height: 1; }
.day-detail { margin-top: 14px; padding: 12px 12px 6px; border-radius: 18px; background: var(--butter-soft); border: 2px dashed var(--line); }
.day-detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.day-detail-head h3 { font-size: 17px; }
.trip-block { margin-bottom: 8px; }
.trip-line, .trip-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 48px; }
.trip-line { padding: 6px 8px; border-radius: 14px; background: var(--mint); }
.trip-line small { color: #2c6b57; }
.trip-line .go, .menu-item .go { margin-left: auto; color: var(--muted); font-size: 22px; }
.trip-ico { font-size: 22px; }
.trip-ico.lg { font-size: 44px; }

/* ---------- 할 일 화면 ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.page-head h1 { font-size: 26px; }
.filters { display: grid; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px dotted var(--line); }
.day-group { margin-top: 16px; }
.day-head { font-size: 17px; display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.day-head small { color: var(--muted); font-family: var(--font-body); }
.day-group.late .day-head { color: var(--danger); }

/* ---------- 외출/여행 ---------- */
.trip-list > li + li { border-top: 1.5px dotted var(--line); }
.trip-row { padding: 10px 4px; }
.trip-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.trip-main b { font-size: 17px; font-weight: 400; }
.trip-main small { color: var(--muted); }
.trip-main .prog { color: #2c6b57; }
.dday { font-family: var(--font-head); color: var(--sky-d); }
.past { margin-top: 18px; color: var(--muted); }
.past summary { cursor: pointer; padding: 8px 0; }
.back-link { color: var(--accent-d); min-height: 40px; padding: 0 4px; }
.trip-hero { text-align: center; padding: 6px 0 16px; margin-bottom: 14px; border-bottom: 2px dotted var(--line); }
.trip-hero h1 { font-size: 28px; margin: 4px 0; }
.trip-hero p { margin: 2px 0; }
.trip-dates, .trip-place { color: var(--muted); }
.trip-memo { margin-top: 8px !important; }
.trip-hero .chip { margin-top: 10px; }

/* ---------- 시트 / 대화상자 ---------- */
#sheet-root, #dialog-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheet-root.open, #dialog-root.open { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(61, 68, 82, .35); animation: fade .18s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  background: var(--paper); border-radius: 26px 26px 0 0; border: 2px dashed var(--line); border-bottom: 0;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom)); animation: rise .22s ease-out;
}
.sheet-head { position: sticky; top: 0; background: var(--paper); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 0 6px; z-index: 1; }
.sheet-head h2 { text-align: center; font-size: 19px; }
@media (min-width: 600px) {
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; width: min(520px, 92vw); max-height: 88dvh; transform: translate(-50%, -50%); border-radius: 26px; border-bottom: 2px dashed var(--line); animation: pop .2s ease-out; }
}
.dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, 90vw); background: var(--paper); border-radius: 24px; border: 2px dashed var(--line); padding: 22px 20px 16px; }
.dialog h3 { font-size: 19px; margin-bottom: 6px; }
.dialog p { margin: 0 0 8px; color: var(--muted); font-size: 15px; white-space: pre-line; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.dialog-actions .btn { min-height: 44px; padding: 0 16px; }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- 폼 ---------- */
.field { display: block; margin-top: 14px; }
.label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.label small { color: var(--accent-d); margin-left: 6px; }
input[type=text], input[type=date], input[type=number], input[type=password], input:not([type]), select, textarea, .big-input {
  width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
}
textarea { resize: vertical; }
.big-input { min-height: 54px; font-size: 18px; }
.code-input { letter-spacing: .2em; text-transform: uppercase; text-align: center; font-family: var(--font-head); font-size: 22px; }
.row { display: flex; align-items: center; gap: 8px; }
.row input[type=date] { flex: 1; min-width: 0; }
.row input[type=number] { width: 84px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more { margin-top: 16px; border-top: 2px dotted var(--line); padding-top: 10px; }
.more summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--accent-d); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.form-actions .btn.primary { flex: 1; max-width: 240px; }
.inline-form .btn { min-height: 46px; padding: 0 16px; }
[hidden] { display: none !important; }

.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 6px; min-height: 60px; border-bottom: 1.5px dotted var(--line); }
.menu-item b { display: block; font-weight: 400; font-size: 17px; }
.menu-item small { color: var(--muted); }
.m-ico { font-size: 26px; width: 38px; text-align: center; }
.member-list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1.5px dotted var(--line); }
.member-list b { flex: 1; font-weight: 400; font-size: 17px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; background: var(--mc); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.swatch.custom { display: grid; place-items: center; background: #fff; color: var(--muted); position: relative; overflow: hidden; cursor: pointer; }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.code-box { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-radius: 16px; background: var(--butter); }
.code-box b { font-family: var(--font-head); font-weight: 400; font-size: 26px; letter-spacing: .2em; }
.code-box.big { justify-content: center; margin: 18px 0; padding: 18px; }
.code-box.big b { font-size: 40px; }

/* ---------- 첫 화면 ---------- */
.gate { max-width: 400px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 22px 40px; text-align: center; }
.gate-logo { font-size: 64px; }
.gate h1 { font-size: 30px; color: var(--lav-d); margin: 6px 0 4px; }
.gate-sub { color: var(--muted); margin: 0 0 22px; }
.gate form { text-align: left; }
.gate .field { margin-top: 12px; }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, 20px);
  max-width: 88vw; padding: 10px 18px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 600px) { #toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 먹거리 (반찬 · 간식) ---------- */
.food-week { margin-top: 4px; }
.food-day { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1.5px dotted var(--line); }
.food-day:last-child { border-bottom: 0; }
.food-day-label { display: flex; flex-direction: column; align-items: center; align-self: start; padding: 4px 0; border-radius: 12px; line-height: 1.25; }
.food-day-label b { font-family: var(--font-head); font-weight: 400; font-size: 16px; }
.food-day-label span { font-size: 12.5px; color: var(--muted); }
.food-day.today .food-day-label { background: var(--butter); }
.dishes { display: flex; flex-wrap: wrap; gap: 6px; }
.dish { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; min-height: 36px; border-radius: 18px; background: var(--mint); border: 2px solid transparent; font-size: 15px; }
.dish.urgent { background: var(--rose); border-color: #f0a8bb; }
.dish button { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 17px; line-height: 1; }
.dish button:hover { background: rgba(255, 255, 255, .7); color: var(--danger); }
.food-empty { color: var(--muted); }
.thaw { margin-top: 6px; font-size: 13px; color: #2e5580; }
.add-select { margin-top: 8px; width: auto; min-height: 36px !important; padding: 2px 10px !important; border-style: dashed !important; font-size: 14px; color: var(--muted); border-radius: 18px !important; max-width: 100%; }
.food-note { margin: 8px 0 4px; font-size: 14px; color: var(--muted); }
.food-warn { margin: 12px 0 0; padding: 8px 12px; border-radius: 14px; background: var(--peach-soft); color: var(--peach-d); font-size: 14px; }

.food-list > li + li { border-top: 1.5px dotted var(--line); }
.food-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 2px; }
.fi-main { flex: 1 1 100%; min-width: 0; }
.fi-name { font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fi-meta { font-size: 12.5px; color: var(--muted); }
.fi-serv { font-size: 14px; }
.fi-actions { margin-left: auto; display: flex; gap: 6px; }
@media (min-width: 600px) {
  .fi-main { flex: 1 1 0; }
}
.badge { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; background: var(--mint); color: #2c6b57; }
.badge.frozen { background: #dcebff; color: #2e5580; }
.badge.room { background: var(--butter); color: #7a5b00; }
.exp { padding: 1px 10px; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.exp.ok { background: var(--mint); color: #2c6b57; }
.exp.soon { background: var(--peach); color: var(--peach-d); }
.exp.urgent { background: var(--rose); color: var(--rose-d); }

/* ---------- 담당자 여러 명 / 완료한 사람 표시 ---------- */
.who { flex-wrap: wrap; gap: 2px 8px; }
.who-one { display: inline-flex; align-items: center; gap: 4px; }
/* 담당이 여러 명(또는 온 가족)이면 동그라미 테두리가 담당자 색 띠 */
.task.ring:not(.done) .check span { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box; }
/* 완료되면 '체크한 사람' 색으로 채워짐 (담당자가 아니어도 한 사람 색) */
.task.done .check span { background: var(--dc, var(--mc)); border-color: var(--dc, var(--mc)); }
.tag.done-by { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--mc) 26%, #fff); color: var(--ink); }
/* 완료 항목은 흐리게 하되 '누가 했는지'는 또렷하게 */
.task.done .task-body { opacity: 1; }
.task.done .task-title, .task.done .task-memo, .task.done .who, .task.done .tag:not(.done-by) { opacity: .45; }
.tag.time { background: var(--accent-soft); color: var(--ink); }
.task-time-field input { max-width: 180px; }
.nav-item[hidden] { display: none !important; }
