/* RecipeMate — 연한 초록·크림 바탕 · 흰 카드 · 초록 강조 · 요리사 모자 로봇 영양사 */
:root {
  --bg: #f3f8f3; --bg2: #e9f4ec; --card: #fff; --ink: #1b2a21; --ink2: #44574b; --mute: #7d8f85; --line: #e4ede6; --line2: #d2e2d7;
  --p: #18a558; --p2: #4cc97f; --pl: #eaf7ef; --pl2: #d6f0e0; --pd: #0f7a40; --cream: #fbf7ee; --beige: #f3ead9;
  --cb: #f5b83d; --pr: #3b8fe8; --ft: #1faa5c; --orange: #f29a38; --red: #e5484d; --blue: #3b8fe8;
  --r: 20px; --shadow: 0 1px 2px rgba(20, 80, 45, .04), 0 14px 34px -24px rgba(20, 80, 45, .34);
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --side: 236px;
}
* { box-sizing: border-box; }
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
html.lock, html.lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 6px 10px; border-radius: 8px; }
.muted { color: var(--mute); } .small { font-size: 12.5px; } .center { text-align: center; } .pad { padding: 18px 8px; }
.up { color: var(--red); } .down { color: var(--p); } .warn-t { color: #c26a00; }
:focus-visible { outline: 3px solid rgba(24, 165, 88, .35); outline-offset: 2px; border-radius: 8px; }

/* ---------------- 틀 */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 14px 14px; z-index: 40; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.brand > span { display: flex; flex-direction: column; }
.brand b { font-size: 23px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.brand small { font-size: 12.5px; color: var(--ink2); margin-top: 3px; }
.side nav { display: grid; gap: 3px; }
.side nav a { display: flex; gap: 13px; align-items: center; padding: 11px 14px; border-radius: 13px; color: var(--ink2); font-weight: 600; transition: background .15s, color .15s; }
.side nav a .ic { width: 22px; height: 22px; }
.side nav a:hover { background: var(--pl); color: var(--pd); }
.side nav a.on { background: var(--pl2); color: var(--pd); font-weight: 800; }
.side nav a.on .ic { color: var(--p); }
.side-card { position: relative; margin-top: 20px; padding: 16px 14px 14px; min-height: 236px; border-radius: 18px; background: linear-gradient(165deg, #e6f6ec, #d3efdf); overflow: hidden; display: flex; flex-direction: column; }
.side-card b { font-size: 15px; font-weight: 800; } .side-card span { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.side-card .mascot { width: 128px; margin: 6px auto 4px; transition: transform .3s; } .side-card:hover .mascot { transform: translateY(-3px) rotate(-2deg); }
.side-card em { margin-top: auto; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--pd); background: #fff; border-radius: 999px; padding: 7px 10px; display: flex; align-items: center; justify-content: center; gap: 2px; } .side-card em .ic { width: 15px; height: 15px; }
.side-f { margin-top: auto; padding: 14px 8px 2px; font-size: 11.5px; color: var(--mute); } .side-f a:hover { color: var(--p); }
.mainw { margin-left: var(--side); min-height: 100vh; min-height: 100dvh; position: relative; }
.top { position: absolute; top: 18px; right: 26px; z-index: 30; display: flex; align-items: center; gap: 10px; }
.top .brand.sm, .menu-btn { display: none; }
.tools { display: flex; gap: 10px; align-items: center; }
.pselw select { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; max-width: 120px; }
.tbtn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .7); display: grid; place-items: center; color: var(--ink2); transition: background .15s; }
.tbtn:hover { background: var(--pl2); color: var(--pd); } .tbtn .ic { width: 24px; height: 24px; }
.tbtn.av { background: linear-gradient(160deg, #dff3e6, #bfe6cf); color: var(--pd); overflow: hidden; } .tbtn.av img { width: 100%; height: 100%; object-fit: cover; }
.bdot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.bellw { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(15, 70, 40, .45); padding: 12px; z-index: 60; animation: pop .18s ease; }
.pop-h { display: flex; justify-content: space-between; padding: 2px 6px 8px; } .pop-h span { color: var(--mute); font-size: 13px; }
.pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.pop li a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 12px; align-items: flex-start; } .pop li a:hover { background: var(--pl); }
.pop .pi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--pl); color: var(--p); flex: none; }
.pop .warn .pi { background: #fff3e4; color: var(--orange); } .pop .bad .pi { background: #ffe8e8; color: var(--red); }
.pop b { display: block; font-size: 13.5px; } .pop small { display: block; font-size: 12px; color: var(--mute); } .pop p { margin: 8px; }
.sample-bar { margin: 18px 200px 0 28px; width: fit-content; max-width: calc(100% - 228px); padding: 8px 14px; border-radius: 12px; background: #fff7e8; color: #9a5600; font-size: 13px; } .sample-bar a { text-decoration: underline; }
main { outline: 0; }
.page { padding: 26px 28px 60px; max-width: 1480px; display: grid; gap: 18px; align-content: start; }
main.enter .page > * { animation: rise .5s both; } main.enter .page > :nth-child(2) { animation-delay: .05s; } main.enter .page > :nth-child(3) { animation-delay: .1s; } main.enter .page > :nth-child(n+4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.tabbar { display: none; }

/* ---------------- 공통 부품 */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding-right: 150px; min-height: 52px; }
.ph h1 { font-size: 26px; font-weight: 900; letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; } .ph h1 .ic { width: 28px; height: 28px; color: var(--p); }
.ph p { color: var(--ink2); margin-top: 3px; max-width: 62ch; word-break: keep-all; }
.ph-r { display: flex; gap: 8px; flex-wrap: wrap; }
.subs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); } .subs::-webkit-scrollbar { display: none; }
.subs a { padding: 9px 14px; font-weight: 700; color: var(--mute); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; } .subs a.on { color: var(--pd); border-color: var(--p); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card > h2, .sec { font-size: 17px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.card > h2 > .ic, .sec > .ic { color: var(--p); width: 22px; height: 22px; } .card > h2 small, .sec small { color: var(--mute); font-weight: 600; font-size: 13px; }
.sec { margin: 8px 2px 0; }
.more { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; } .more .ic { width: 14px; height: 14px; } .more:hover { border-color: var(--p); color: var(--pd); }
.card > h2 > .btn { margin-left: auto; }
.tag { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: var(--pd); background: var(--pl2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sm-h { font-size: 13.5px; font-weight: 800; color: var(--ink2); margin: 14px 0 8px; } .sm-h small { font-weight: 600; color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 13px; padding: 10px 16px; font-weight: 800; font-size: 14.5px; background: #fff; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; cursor: pointer; }
.btn .ic { width: 18px; height: 18px; } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(135deg, #22b866, #128a48); color: #fff; box-shadow: 0 10px 20px -12px rgba(18, 138, 72, .9); } .btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { border-color: var(--line2); color: var(--ink2); } .btn.ghost:hover { border-color: var(--p); color: var(--pd); background: var(--pl); }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 11px; } .btn.sm .ic { width: 15px; height: 15px; }
.btn.big { padding: 13px 22px; font-size: 16px; } .btn.wide { width: 100%; }
.btn.danger { color: #c0353a; } .btn.danger:hover { border-color: #e5484d; background: #fff1f1; color: #c0353a; }
.btn.danger-fill { background: #e5484d; color: #fff; border-color: #e5484d; }
.btn.hearted { color: #e5484d; border-color: #f6c2c4; background: #fff5f5; } .btn.hearted .ic { fill: #e5484d; }
.btn.gbtn { border-color: var(--line2); }
.fa { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; } .fa.end { justify-content: flex-end; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; } .chip .ic { width: 15px; height: 15px; }
button.chip:hover { border-color: var(--p); color: var(--pd); }
.chip.on { background: var(--pl2); border-color: transparent; color: var(--pd); } .chip.on.bad { background: #ffe3e3; color: #b3262b; }
.chip.tagc { background: var(--cream); border-color: transparent; color: #7a6238; } .chip.tagc.on { background: #f1dcae; color: #5b451d; }
.chip.soon { box-shadow: inset 0 0 0 1.5px var(--orange); } .chip small { font-weight: 800; color: #c26a00; font-size: 11px; }
.chips.big .chip { padding: 9px 14px; font-size: 14px; } .chip:disabled { opacity: .45; }
.chip button { border: 0; background: none; padding: 0 0 0 2px; font-size: 15px; line-height: 1; color: inherit; }
.seg { display: inline-flex; background: #eef4ef; border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; } .seg button small { color: var(--mute); }
.seg button.on { background: #fff; color: var(--pd); box-shadow: 0 2px 8px -4px rgba(20, 80, 45, .45); }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 12px; color: var(--ink2); } .empty > span { font-size: 40px; line-height: 1.2; } .empty b { font-size: 16px; } .empty p { color: var(--mute); font-size: 13.5px; max-width: 40ch; word-break: keep-all; } .empty .btn { margin-top: 8px; }
.disc { font-size: 12.5px; color: var(--mute); line-height: 1.6; word-break: keep-all; } .disc .ic { width: 14px; height: 14px; vertical-align: -2px; } .card .disc { margin-top: 12px; }
.tipbox { display: flex; gap: 10px; align-items: flex-start; background: #fff8e6; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: #6b4e12; margin-top: 12px; word-break: keep-all; } .tipbox .ic { color: #f0a81e; margin-top: 1px; } .tipbox a { font-weight: 800; text-decoration: underline; }
.page > .tipbox { margin-top: 0; }
.alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; } .alert.bad { background: #ffeded; color: #a3242a; } .alert .ic { margin-top: 2px; }
.safe { display: flex; gap: 8px; font-size: 12.5px; color: #1d6b43; background: var(--pl); border-radius: 12px; padding: 9px 12px; margin-top: 10px; word-break: keep-all; } .safe .ic { width: 16px; height: 16px; margin-top: 1px; }
.tile { position: relative; display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; flex: none; overflow: hidden; }
.tile i { font-style: normal; font-size: 30px; line-height: 1; } .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.sm { width: 46px; height: 46px; border-radius: 13px; } .tile.sm i { font-size: 23px; } .tile.xs { width: 34px; height: 34px; border-radius: 10px; } .tile.xs i { font-size: 18px; }
.ibtn { width: 36px; height: 36px; border-radius: 11px; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--mute); flex: none; } .ibtn:hover { background: var(--pl); color: var(--pd); } .ibtn.off { opacity: .3; pointer-events: none; } .ibtn:disabled { opacity: .3; }
.chk { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line2); background: #fff; display: inline-grid; place-items: center; color: transparent; flex: none; transition: all .15s; } .chk .ic { width: 16px; height: 16px; stroke-width: 3; }
.chk.on { background: var(--p); border-color: var(--p); color: #fff; } .chk.big { width: 40px; height: 40px; } .chk.big .ic { width: 22px; height: 22px; }
.stp { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line2); border-radius: 12px; padding: 3px 3px 3px 12px; background: #fff; margin-left: auto; } .stp output { font-weight: 800; min-width: 48px; }
.stp button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--pl); color: var(--pd); display: grid; place-items: center; } .stp button .ic { width: 16px; height: 16px; } .stp.sm output { min-width: 38px; font-size: 13px; }
.form { display: grid; gap: 14px; } .form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink2); min-width: 0; } .form label small { font-weight: 500; color: var(--mute); }
.form input, .form select, .form textarea, .srch input, .ask input, textarea, .an-when input { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 12px; background: #fff; font-size: 15px; min-width: 0; }
.form input:focus, .form select:focus, textarea:focus, .srch input:focus, .ask input:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px rgba(24, 165, 88, .15); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } .form legend { font-size: 13px; font-weight: 700; color: var(--ink2); padding: 0 0 5px; }
.form h2 { font-size: 17px; font-weight: 800; display: flex; gap: 7px; align-items: center; margin-top: 6px; } .form h2 .ic { color: var(--p); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .g2.top { align-items: start; gap: 18px; }
textarea { resize: vertical; line-height: 1.5; }
.srch { position: relative; } .srch.sm { margin-top: 12px; max-width: 360px; }
.sug { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); } .sug button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; } .sug button:hover { background: var(--pl); }
.ask { display: flex; gap: 8px; } .ask input { flex: 1; border-radius: 14px; } .ask .btn { border-radius: 14px; padding: 10px 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink2); width: fit-content; } .back:hover { color: var(--pd); }
.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .kv li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .kv span { color: var(--mute); } .kv b { text-align: right; }
.linkl { display: grid; gap: 4px; } .linkl a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; font-weight: 700; color: var(--ink2); } .linkl a:hover { background: var(--pl); color: var(--pd); } .linkl .ic { color: var(--p); }
.tipl { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; } .tipl li { display: flex; gap: 9px; align-items: flex-start; word-break: keep-all; } .tipl .ic { color: var(--p); margin-top: 2px; width: 18px; height: 18px; }
.flags { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; } .flags li { display: flex; gap: 6px; align-items: center; } .flags .ic { width: 17px; height: 17px; flex: none; }
.flags em { font-style: normal; font-weight: 800; white-space: nowrap; } .flags .good .ic, .flags .good em { color: var(--p); } .flags .warn .ic, .flags .warn em { color: #d98200; } .flags .bad .ic, .flags .bad em { color: var(--red); } .flags .info .ic { color: var(--blue); }
.flags.row { display: flex; flex-wrap: wrap; gap: 4px 12px; } .flags.col { margin-top: 14px; } .flags.big { font-size: 14.5px; gap: 9px; }
.coachline { background: var(--pl); color: #17603a; border-radius: 13px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; text-align: center; margin-top: 12px; word-break: keep-all; } .coachline.warn { background: #fff3e2; color: #8a4f00; } .coachline.info { background: #eaf3fd; color: #1e4f8c; }
.ktiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .ktiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.ktile { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 1px; min-width: 0; } .ktile small { color: var(--mute); font-weight: 700; font-size: 12.5px; } .ktile b { font-size: 28px; font-weight: 900; letter-spacing: -.04em; line-height: 1.15; } .ktile span { font-size: 12.5px; color: var(--mute); }
.card .ktile { background: var(--bg); box-shadow: none; }
.ktile.warn b { color: #d98200; } .ktile.bad b { color: var(--red); }
.ktile.go { background: linear-gradient(135deg, #22b866, #128a48); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 800; } .ktile.go .ic { width: 30px; height: 30px; } .ktile.go span { color: #fff; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 18px; }
.grid3.g-b { grid-template-columns: .9fr 1.25fr 1.25fr; } .grid3.g-c { grid-template-columns: 1.15fr 1fr 1.15fr; } .grid3 > *, .grid2 > * { min-width: 0; }
.mrows { display: grid; gap: 13px; min-width: 0; } .mrow-h { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; } .mrow-h b { font-size: 14.5px; white-space: nowrap; } .mrow-h em { font-style: normal; font-weight: 800; } .mrow-h span { margin-left: auto; color: var(--ink2); white-space: nowrap; }
.mbar, .pbar { height: 9px; border-radius: 999px; background: #edf2ee; overflow: hidden; margin-top: 5px; } .mbar i, .pbar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1s cubic-bezier(.2, .8, .2, 1); } .mbar.in i, .pbar.in i { width: var(--w); }
.pbar i { background: linear-gradient(90deg, #4cc97f, #149a52); } .pbar i.over { background: linear-gradient(90deg, #ffc27a, #f29a38); }
i.c-cb { background: var(--cb); } i.c-p { background: var(--pr); } i.c-f { background: var(--ft); } i.c-na { background: #f29a38; } i.c-fb { background: #6cc24a; } i.c-sg { background: #ef8fb0; } i.c-over { background: var(--red); }
em.c-cb { color: #d99a12; } em.c-p { color: var(--pr); } em.c-f { color: var(--ft); } em.c-warn { color: var(--red); font-size: 12px; }
.nl { font-size: 12.5px; color: var(--ink2); display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; } .nl b { color: var(--ink); font-size: 14px; } .nl .ic { width: 14px; height: 14px; }
.ntab { width: 100%; border-collapse: collapse; } .ntab th { text-align: left; font-weight: 600; color: var(--ink2); padding: 8px 0; } .ntab td { text-align: right; padding: 8px 0 8px 10px; white-space: nowrap; } .ntab tr + tr { border-top: 1px solid var(--line); } .ntab td.muted { font-size: 12.5px; }
.bs { font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 1px 6px; margin-left: 5px; background: #eef2ef; color: #63756a; vertical-align: 1px; white-space: nowrap; }
.bs-ai { background: #fff0db; color: #a45f00; } .bs-mfds { background: #e3f0ff; color: #1e5aa8; } .bs-recipe { background: var(--pl2); color: var(--pd); } .bs-mine { background: #f1ecfb; color: #5b3fc4; }

/* 글이 한 줄로 줄어드는 칸 — 안쪽 격자가 내용만큼 벌어지지 않게 */
.plan-l span, .plist span, .ingl span, .shopl span, .tg span, .rc-b, .pr-b, .irow-m, .meal-b { grid-template-columns: minmax(0, 1fr); }
.irow-m, .meal-b { min-width: 0; }

/* ---------------- 홈 */
.home { padding-top: 0; gap: 18px; }
.hero { position: relative; display: flex; align-items: center; gap: 26px; min-height: 172px; padding: 30px 300px 26px 8px; margin: 0 -28px; padding-left: 36px; background: radial-gradient(600px 260px at 78% 30%, #d9f0cf, transparent 70%), linear-gradient(120deg, #f3f8f3 0%, #e6f4e3 55%, #d6ecc9 100%); overflow: hidden; }
.hero-t h1 { font-size: 31px; font-weight: 900; letter-spacing: -.045em; line-height: 1.25; word-break: keep-all; } .hero-t p { color: var(--ink2); margin-top: 8px; font-size: 15.5px; }
.hero-goal { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 270px; z-index: 1; }
.hg-i { width: 42px; height: 42px; border-radius: 50%; background: var(--pl2); color: var(--p); display: grid; place-items: center; flex: none; } .hg-i .ic { width: 26px; height: 26px; }
.hero-goal > div { flex: 1; min-width: 0; } .hero-goal small { font-weight: 800; color: var(--ink2); font-size: 12.5px; } .hero-goal b { display: block; font-size: 16px; margin: 1px 0 6px; } .hero-goal em { display: block; text-align: right; font-style: normal; font-size: 12.5px; color: var(--ink2); margin-top: 5px; font-weight: 700; }
.hero-img { position: absolute; right: 150px; top: 50%; width: 300px; height: 300px; transform: translateY(-46%); object-fit: cover; border-radius: 50%; filter: drop-shadow(0 22px 26px rgba(30, 90, 40, .28)); pointer-events: none; }
.welcome { display: flex; gap: 20px; align-items: center; background: linear-gradient(120deg, #fff, #f3fbf5); } .wl-m { width: 150px; flex: none; } .wl-b h2 { font-size: 20px; font-weight: 900; } .wl-b p { color: var(--ink2); margin-top: 4px; word-break: keep-all; }
.steps3 { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; } .steps3 li { display: flex; align-items: center; gap: 8px; background: var(--pl); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: 13.5px; } .steps3 b { width: 24px; height: 24px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; font-size: 13px; }
.st-g { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; } .st-r { display: grid; }
.st-x { display: grid; gap: 1px; min-width: 0; } .st-x small { color: var(--mute); font-weight: 700; font-size: 12.5px; } .st-x b { font-size: 24px; font-weight: 900; letter-spacing: -.04em; line-height: 1.2; } .st-x em { font-style: normal; font-weight: 800; color: var(--pd); font-size: 14px; } .st-x span { color: var(--ink2); font-size: 12.5px; margin-top: 4px; }
.water { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line2); font-size: 13.5px; color: var(--ink2); } .water > span:first-child { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; } .water .ic { color: var(--blue); width: 18px; height: 18px; } .water b { color: var(--ink); }
.cups { display: flex; gap: 3px; flex-wrap: wrap; } .cups i { width: 9px; height: 15px; border-radius: 2px 2px 5px 5px; background: #e3ecf5; } .cups i.on { background: var(--blue); }
.wbtn { margin-left: auto; display: flex; gap: 4px; } .wbtn button { width: 30px; height: 30px; border-radius: 10px; border: 0; background: #eaf3fd; color: var(--blue); display: grid; place-items: center; } .wbtn .ic { width: 16px; height: 16px; }
.lm { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 16px; align-items: start; } .lm-i { width: 100%; height: auto; aspect-ratio: 1.2; border-radius: 16px; } .lm-i i { font-size: 54px; }
.lm b { font-size: 18px; font-weight: 800; display: block; } .lm strong { display: block; color: var(--p); font-size: 18px; font-weight: 800; margin: 2px 0 6px; }
.car { position: relative; } .car-s { display: none; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 16px; align-items: center; animation: pop .35s ease; } .car-s.on { display: grid; }
.car-i { width: 100%; height: auto; aspect-ratio: 1.05; border-radius: 16px; } .car-i i { font-size: 60px; }
.rc-t { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--p); border-radius: 999px; padding: 3px 10px; width: fit-content; }
.car-b h3 { font-size: 21px; font-weight: 900; letter-spacing: -.04em; margin: 8px 0 6px; word-break: keep-all; line-height: 1.3; } .car-b p { display: flex; gap: 4px 10px; flex-wrap: wrap; color: var(--ink2); font-size: 13px; margin-bottom: 14px; align-items: center; } .car-b p span { display: inline-flex; align-items: center; gap: 3px; } .car-b .ic { width: 15px; height: 15px; vertical-align: -2px; } .car-b .btn { width: 100%; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; } .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #d5e0d8; } .dots button.on { background: var(--p); width: 22px; border-radius: 999px; }
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); background: #eef4ef; border-radius: 12px; padding: 3px; gap: 2px; } .tabs3 a { text-align: center; padding: 8px 4px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; } .tabs3 a.on { background: #fff; color: var(--pd); box-shadow: 0 2px 8px -4px rgba(20, 80, 45, .45); }
.drop { display: grid; justify-items: center; gap: 10px; text-align: center; border: 2px dashed var(--line2); border-radius: 18px; padding: 24px 12px; margin-top: 14px; cursor: pointer; transition: border-color .15s, background .15s; } .drop:hover { border-color: var(--p); background: var(--pl); }
.drop-i { width: 52px; height: 52px; border-radius: 16px; background: var(--pl2); color: var(--p); display: grid; place-items: center; } .drop-i .ic { width: 30px; height: 30px; } .drop b { font-weight: 700; line-height: 1.45; } .drop small { color: var(--mute); }
.drop.big { padding: 44px 12px; }
.plan-l { list-style: none; margin: 0; padding: 0; display: grid; } .plan-l li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; } .plan-l li + li { border-top: 1px solid var(--line); }
.plan-l span { display: grid; min-width: 0; } .plan-l b small { font-weight: 500; color: var(--mute); } .plan-l span > small { color: var(--ink2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .plan-l em { font-style: normal; color: var(--p); font-weight: 800; font-size: 13.5px; white-space: nowrap; } .plan-l li.done span { opacity: .55; }
.q { font-weight: 700; margin: 2px 0 10px; } .c-cook .q:nth-of-type(2) { margin-top: 16px; }
.ings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; } .ings a { display: grid; justify-items: center; gap: 5px; min-width: 0; } .ings .tile { width: 100%; height: auto; aspect-ratio: 1.25; border-radius: 13px; } .ings small { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ings .add { border: 2px dashed var(--line2); border-radius: 13px; align-content: center; color: var(--ink2); min-height: 62px; } .ings .add:hover { border-color: var(--p); color: var(--pd); }
.mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .mini3 a { display: grid; gap: 6px; align-content: start; background: var(--bg); border-radius: 14px; padding: 6px 6px 8px; min-width: 0; text-align: center; } .mini3 a:hover { background: var(--pl2); } .mini3 .tile { width: 100%; height: auto; aspect-ratio: 1.5; border-radius: 10px; } .mini3 a > span:last-child { display: grid; min-width: 0; } .mini3 b { font-size: 12.5px; line-height: 1.3; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .mini3 small { font-size: 11.5px; color: var(--mute); }
.rep-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .rep-g h3 { font-size: 13.5px; font-weight: 800; } .rep-g h3 small { color: var(--mute); font-weight: 600; }
.wnow { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; } .wnow b { font-size: 24px; font-weight: 900; } .wnow em { font-style: normal; font-weight: 800; font-size: 13px; }
.c-diet .seg { margin-bottom: 16px; } .c-diet .seg button { padding: 7px 4px; font-size: 12.5px; }
.dt-f label > span:first-child { white-space: nowrap; } .dt-f .stp output { min-width: 40px; font-size: 14px; }
.chart.mini { max-width: 320px; }
.dt-g { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; } .dt-f { display: grid; gap: 10px; align-content: start; } .dt-f label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.dt-x { background: var(--pl); border-radius: 16px; padding: 14px; display: grid; gap: 7px; align-content: start; } .dt-x h3 { font-size: 14.5px; font-weight: 800; } .dt-x p { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; } .dt-x p b { font-size: 15px; } .dt-x small { font-size: 12px; line-height: 1.45; }
.dt-empty { display: grid; gap: 12px; justify-items: start; }
.live { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: var(--pd); background: var(--pl2); border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px; } .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--p); animation: blink 1.6s infinite; } @keyframes blink { 50% { opacity: .35; } }
.cc-m { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; } .cc-a { width: 52px; height: 52px; border-radius: 50%; background: var(--pl); flex: none; padding: 4px; } .cc-a .mascot, .av .mascot { width: 100%; height: 100%; }
.cc-m p { background: #f2f6f3; border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: 14px; } .c-coach .chips { margin-bottom: 12px; }

/* ---------------- 레시피 카드 */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rcard { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .18s, box-shadow .18s; min-width: 0; } .rcard:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(20, 80, 45, .5); }
.rc-i { width: 100%; height: auto; aspect-ratio: 1.45; border-radius: 0; } .rc-i i { font-size: 56px; }
.rc-b { padding: 12px 14px 14px; display: grid; gap: 5px; align-content: start; min-width: 0; } .rc-b b { font-size: 15.5px; font-weight: 800; word-break: keep-all; line-height: 1.35; } .rc-b small { color: var(--ink2); font-size: 12.5px; display: flex; gap: 3px; align-items: center; flex-wrap: wrap; } .rc-b .ic { width: 14px; height: 14px; }
.rc-b .why { color: var(--pd); font-weight: 700; } .nearc { display: grid; gap: 6px; align-content: start; min-width: 0; } .nearc p { font-size: 12.5px; color: var(--ink2); padding: 0 4px; line-height: 1.5; } .nearc .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--p); }

/* ---------------- 음식 분석 · 식사 기록 */
.an-g { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.an-when { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; } .an-when label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink2); } .an-when input { padding: 8px 10px; width: auto; }
.an-prev { border-radius: 16px; overflow: hidden; background: var(--bg); } .an-prev img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.an-busy { display: grid; justify-items: center; gap: 10px; padding: 34px 10px; text-align: center; } .an-busy .mascot { width: 130px; } .an-busy b { word-break: keep-all; }
.bob { animation: bob 1.1s ease-in-out infinite alternate; } @keyframes bob { to { transform: translateY(-10px); } }
.dots3 { display: inline-flex; gap: 5px; } .dots3 i { width: 7px; height: 7px; border-radius: 50%; background: var(--p); animation: dot 1s ease-in-out infinite; } .dots3 i:nth-child(2) { animation-delay: .15s; } .dots3 i:nth-child(3) { animation-delay: .3s; } @keyframes dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-5px); opacity: 1; } }
.hints { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink2); } .hints li { display: flex; gap: 7px; align-items: flex-start; word-break: keep-all; } .hints .ic { width: 16px; height: 16px; color: var(--p); margin-top: 2px; }
.mic-w { display: grid; justify-items: center; gap: 10px; padding: 18px 0; } .micb { width: 92px; height: 92px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #22b866, #128a48); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 30px -14px rgba(18, 138, 72, .9); } .micb .ic { width: 40px; height: 40px; }
.micb.on { background: linear-gradient(135deg, #f0666a, #d43a3f); animation: ringp 1.4s infinite; } @keyframes ringp { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); } 100% { box-shadow: 0 0 0 22px rgba(229, 72, 77, 0); } } .micb:disabled { background: #cfd8d2; box-shadow: none; }
.ilist { list-style: none; margin: 0; padding: 0; display: grid; } .irow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 11px 0; } .irow + .irow { border-top: 1px solid var(--line); }
.irow-m b { font-size: 15px; } .irow-m small { display: block; color: var(--ink2); font-size: 12.5px; margin-top: 1px; } .irow-m small b { font-size: 12.5px; color: var(--ink); }
.irow-o { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .irow-o .seg { padding: 2px; border-radius: 9px; } .irow-o .seg button { padding: 3px 7px; font-size: 11.5px; border-radius: 7px; }
.qty { display: inline-flex; align-items: center; background: var(--pl); border-radius: 12px; padding: 3px; } .qty button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #fff; color: var(--pd); display: grid; place-items: center; } .qty .ic { width: 15px; height: 15px; } .qty output { min-width: 34px; text-align: center; font-weight: 800; }
.isum { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; background: var(--bg); border-radius: 13px; padding: 11px 14px; margin-top: 10px; } .isum b { font-size: 16px; } .isum span { font-size: 12.5px; color: var(--ink2); }
.impact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; background: var(--pl); border-radius: 16px; padding: 14px; margin-top: 14px; } .impact b { display: block; word-break: keep-all; } .impact small { color: var(--ink2); }
.pick .srch { margin: 12px 0 10px; } .plist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; }
.plist button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 13px; } .plist button:hover { background: var(--pl); }
.plist span { display: grid; min-width: 0; } .plist span small { color: var(--mute); font-size: 12.5px; } .plist em { font-style: normal; font-weight: 800; color: var(--pd); } .plist em small { font-weight: 600; font-size: 11px; margin-left: 1px; }
.slotg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; } .slotb { display: grid; justify-items: center; gap: 4px; border: 1px solid var(--line2); background: #fff; border-radius: 15px; padding: 14px 4px; font-weight: 800; } .slotb i { font-style: normal; font-size: 26px; } .slotb:hover, .slotb.on { border-color: var(--p); background: var(--pl); color: var(--pd); }
.dnav, .wnav { display: flex; align-items: center; gap: 6px; } .wnav { justify-content: center; } .wnav b { min-width: 170px; text-align: center; } .wnav small { color: var(--pd); }
.wstrip { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .wstrip a { display: grid; justify-items: center; gap: 1px; padding: 8px 0 7px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.wstrip small { font-size: 11.5px; color: var(--mute); font-weight: 700; } .wstrip b { font-size: 16px; } .wstrip i { width: 6px; height: 6px; border-radius: 50%; background: transparent; } .wstrip i.ok { background: var(--p); } .wstrip i.over { background: var(--orange); } .wstrip i.plan { background: #b9d9c6; }
.wstrip a.on { background: linear-gradient(135deg, #22b866, #128a48); color: #fff; } .wstrip a.on small { color: #d9f5e4; } .wstrip a.on i.ok, .wstrip a.on i.plan { background: #fff; } .wstrip a.fut { opacity: .5; }
.dsum { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: center; } .ds-m h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; } .ds-m h2 small { color: var(--mute); font-weight: 600; font-size: 13px; }
.ds-x .coachline { margin-top: 0; } .ds-x .water { border: 0; padding: 0; margin-top: 12px; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .slot > h2 em { margin-left: auto; font-style: normal; color: var(--p); font-size: 15px; }
.meal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; } .meal + .meal { border-top: 1px solid var(--line); } .mi { width: 64px; height: 64px; }
.meal-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .meal-h small { color: var(--mute); font-size: 12.5px; } .meal-b ul { list-style: none; margin: 2px 0 3px; padding: 0; } .meal-b li small { color: var(--ink2); } .meal-a { display: grid; }

/* ---------------- 냉장고 · 레시피 상세 · 장보기 */
.pan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pan li { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border-left: 4px solid transparent; } .pan li.warn { border-left-color: var(--orange); } .pan li.bad { border-left-color: var(--red); }
.pan b { display: block; } .pan small { color: var(--ink2); font-size: 12.5px; display: block; } .exp { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--mute); } .exp.ok { color: var(--pd); } .exp.warn { color: #c26a00; } .exp.bad { color: var(--red); } .pan-a { display: flex; }
.scanl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; } .scanl li { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; gap: 8px; align-items: center; padding: 6px 4px; }
.tg { display: flex; gap: 10px; align-items: center; cursor: pointer; min-width: 0; } .tg input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--p); flex: none; } .tg span { display: grid; min-width: 0; } .tg small { color: var(--mute); font-size: 12.5px; font-weight: 500; }
.scanl input[type=number] { width: 100%; border: 1px solid var(--line2); border-radius: 10px; padding: 7px; text-align: center; } .scanl .u { font-size: 13px; color: var(--ink2); min-width: 22px; }
.filt { display: grid; gap: 8px; }
.rd-hero { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 26px; align-items: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 18px; }
.rd-i { width: 100%; height: auto; aspect-ratio: 1.15; border-radius: 18px; } .rd-i i { font-size: 96px; }
.rd-h h1 { font-size: 30px; font-weight: 900; letter-spacing: -.045em; margin: 10px 0 6px; word-break: keep-all; line-height: 1.25; } .rd-h > p { color: var(--ink2); word-break: keep-all; }
.rd-meta { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .rd-meta li { background: var(--bg); border-radius: 14px; padding: 10px 8px; display: grid; justify-items: center; gap: 1px; text-align: center; } .rd-meta .ic { color: var(--p); } .rd-meta b { font-size: 14.5px; white-space: nowrap; } .rd-meta small { color: var(--mute); font-size: 11.5px; }
.rd-g { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ingl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; } .ingl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; } .ingl li + li { border-top: 1px solid var(--line); }
.ingl span { display: grid; min-width: 0; } .ingl span small { color: var(--mute); font-size: 12px; } .ingl i { font-style: normal; color: var(--ink2); font-size: 13.5px; white-space: nowrap; } .air .ingl li { grid-template-columns: minmax(0, 1fr) auto; }
.ist { font-style: normal; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 3px; border: 0; white-space: nowrap; background: #eef2ef; color: #63756a; } .ist .ic { width: 13px; height: 13px; }
.ist.ok { background: var(--pl2); color: var(--pd); } .ist.sub { background: #e3f0ff; color: #1e5aa8; } .ist.need { background: #fff0db; color: #a45f00; cursor: pointer; } .ist.need:hover { background: #ffe2b8; }
.stepl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .stepl li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; } .stepl b { width: 30px; height: 30px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; font-size: 14px; } .stepl p { padding-top: 3px; word-break: keep-all; }
.stepl.sm { gap: 8px; } .stepl.sm b { width: 24px; height: 24px; font-size: 12px; } .stepl.sm p { font-size: 14px; padding-top: 1px; }
.shopl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; } .shopl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; } .shopl li + li { border-top: 1px solid var(--line); }
.shopl span { display: grid; min-width: 0; } .shopl span small { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .shopl i { font-style: normal; color: var(--ink2); font-size: 13px; white-space: nowrap; } .shopl li.done b { text-decoration: line-through; color: var(--mute); }

/* ---------------- 식단 플래너 · 분석 */
.pl-g { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; } .pl-r { display: grid; justify-items: center; margin-bottom: 14px; }
.prows { list-style: none; margin: 0; padding: 0; display: grid; } .prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; } .prow + .prow { border-top: 1px solid var(--line); }
.pr-i { width: 92px; height: 78px; border-radius: 15px; } .pr-b { display: grid; gap: 1px; min-width: 0; } .pr-b > small { color: var(--pd); font-weight: 800; font-size: 12.5px; } .pr-b > b { font-size: 16.5px; } .pr-b a:hover { color: var(--pd); text-decoration: underline; }
.pr-a { display: grid; justify-items: center; gap: 6px; } .prow.done .pr-b, .prow.done .tile { opacity: .55; }
.wtw { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; } .wtab { width: 100%; border-collapse: separate; border-spacing: 5px; min-width: 760px; table-layout: fixed; }
.wtab th { font-size: 13px; font-weight: 800; color: var(--ink2); padding: 4px; } .wtab thead th small { display: block; color: var(--mute); font-weight: 600; font-size: 11.5px; } .wtab th.now a { color: var(--pd); } .wtab tbody th { width: 46px; font-size: 20px; } .wtab tbody th small { display: block; font-size: 11px; color: var(--mute); }
.wtab td { vertical-align: top; } .wtab td.now .wc { background: var(--pl2); } .wc { display: grid; justify-items: center; gap: 1px; text-align: center; background: var(--bg); border-radius: 13px; padding: 9px 4px; min-height: 86px; align-content: center; } .wc i { font-style: normal; font-size: 22px; } .wc b { font-size: 12px; line-height: 1.3; word-break: keep-all; } .wc small { font-size: 11px; color: var(--mute); } .wc.done { opacity: .5; } .wc.none { color: var(--line2); min-height: 86px; }
.wtab .tot td { text-align: center; } .wtab .tot b { font-size: 14px; } .wtab .tot small { color: var(--mute); font-size: 11px; margin-left: 1px; }
.gapl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .gapl li { border-radius: 15px; padding: 12px 14px; background: #fff7e8; display: grid; gap: 2px; justify-items: start; } .gapl li.bad { background: #ffeeee; } .gapl small { color: var(--ink2); } .gapl p { font-size: 13.5px; margin-bottom: 6px; word-break: keep-all; }
.okbox { display: flex; gap: 14px; align-items: center; } .okbox .mascot { width: 96px; flex: none; }
.tgl2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .tgl2.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 16px; } .tgl2 div { background: var(--bg); border-radius: 13px; padding: 10px; display: grid; } .tgl2 small { color: var(--mute); font-size: 12px; font-weight: 700; } .tgl2 b { font-size: 15px; } .tgc .muted { margin-top: 10px; }
.airep ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 5px; } .airep p { word-break: keep-all; } .airep .btn { margin-top: 12px; }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; } .wlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px auto; gap: 10px; align-items: center; padding: 6px 0; } .wlist li + li { border-top: 1px solid var(--line); } .wlist em { font-style: normal; font-size: 12.5px; font-weight: 800; text-align: right; }

/* ---------------- 코치 */
.co-g { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; } .co-side { display: grid; gap: 18px; }
.chat { display: grid; gap: 12px; } .chat-l { display: grid; gap: 12px; max-height: min(58vh, 620px); min-height: 260px; overflow-y: auto; align-content: start; padding: 4px 2px; }
.msg { display: flex; gap: 10px; align-items: flex-start; } .msg.me { justify-content: flex-end; } .av { width: 40px; height: 40px; border-radius: 50%; background: var(--pl); flex: none; padding: 3px; }
.bub { background: #f2f6f3; border-radius: 4px 18px 18px 18px; padding: 11px 14px; max-width: min(640px, 86%); font-size: 14.5px; display: grid; gap: 6px; word-break: keep-all; overflow-wrap: anywhere; } .msg.me .bub { background: linear-gradient(135deg, #22b866, #128a48); color: #fff; border-radius: 18px 4px 18px 18px; }
.bub ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; } .rule { color: var(--mute); font-size: 11.5px; }
.sitg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .sitg a { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 1px; border: 2px solid transparent; } .sitg i { font-style: normal; font-size: 24px; } .sitg small { color: var(--mute); font-size: 12px; line-height: 1.4; word-break: keep-all; } .sitg a.on { border-color: var(--p); background: var(--pl); }
.fgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .fgrid li { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; } .fgrid small { display: block; color: var(--ink2); font-size: 12.5px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; } .gcard { display: grid; gap: 4px; align-content: start; transition: transform .18s; } .gcard:hover { transform: translateY(-3px); } .gcard i { font-style: normal; font-size: 30px; } .gcard b { font-size: 16.5px; } .gcard p { color: var(--ink2); font-size: 13.5px; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ghero { display: flex; gap: 18px; align-items: center; background: linear-gradient(120deg, #fff, #eef9f1); } .ghero i { font-style: normal; font-size: 56px; } .ghero h1 { font-size: 27px; font-weight: 900; letter-spacing: -.04em; } .ghero p { color: var(--ink2); margin-top: 4px; word-break: keep-all; }
.gpts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .gpts .card { position: relative; padding-left: 62px; } .gpts .no { position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--pl2); color: var(--pd); display: grid; place-items: center; } .gpts h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; display: block; } .gpts p { color: var(--ink2); word-break: keep-all; }

/* ---------------- 마이페이지 */
.my-g { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; } .tgprev { position: sticky; top: 18px; }
.tgbig { display: flex; align-items: baseline; gap: 6px; } .tgbig b { font-size: 44px; font-weight: 900; letter-spacing: -.05em; color: var(--pd); line-height: 1.1; } .tgbig span { color: var(--ink2); font-weight: 700; }
.goalg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .goalg button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; display: grid; gap: 1px; } .goalg i { font-style: normal; font-size: 24px; } .goalg small { color: var(--mute); font-size: 12px; line-height: 1.4; word-break: keep-all; } .goalg button.on { border-color: var(--p); background: var(--pl); }
.tagin { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line2); border-radius: 14px; padding: 8px; margin-top: 10px; } .tagin input { border: 0; outline: 0; flex: 1; min-width: 110px; padding: 6px; background: none; font-size: 15px; }
.faml { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .faml li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; } .faml li.on { box-shadow: inset 0 0 0 2px var(--p), var(--shadow); } .faml small { display: block; color: var(--ink2); font-size: 13px; } .faml .fa { margin: 0; } .faml .tag { margin-left: 6px; }
.fav { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(160deg, #dff3e6, #bfe6cf); color: var(--pd); display: grid; place-items: center; font-size: 21px; font-weight: 900; }
.about { display: flex; gap: 16px; align-items: center; } .about .mascot { width: 100px; flex: none; } .about h2 { font-size: 19px; font-weight: 900; margin-bottom: 2px; }
.acc-row { display: flex; gap: 12px; align-items: center; } .acc-row small { display: block; color: var(--mute); } .acc-av { width: 48px; height: 48px; border-radius: 50%; background: var(--pl2); color: var(--pd); display: grid; place-items: center; font-weight: 900; overflow: hidden; flex: none; } .acc-av img { width: 100%; height: 100%; object-fit: cover; }
.acc-st { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin: 12px 0 6px; } .acc-st i { width: 9px; height: 9px; border-radius: 50%; background: var(--p); } .acc-st.bad i { background: var(--orange); } .acc-st.run i { animation: blink 1s infinite; }
.idsb { margin-top: 14px; border-top: 1px dashed var(--line2); padding-top: 12px; } .idsh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; } .idsh h3 { font-size: 14.5px; }
.idlist { display: grid; gap: 8px; margin-bottom: 8px; } .idrow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--bg); border-radius: 14px; padding: 10px 12px; } .idrow.cur { box-shadow: inset 0 0 0 2px var(--p2); }
.idt small, .idr small { display: block; color: var(--ink2); font-size: 12.5px; } .ida { display: flex; gap: 6px; flex-wrap: wrap; } .idh { display: flex; gap: 6px; align-items: center; } .idm, .idc { font-style: normal; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 6px; background: var(--pl2); color: var(--pd); } .idc { background: #e3f0ff; color: #1e5aa8; }
.mrg h3 { font-size: 14px; margin: 14px 0 6px; } .mrg-o { display: grid; gap: 8px; } .mrg-b { text-align: left; border: 1px solid var(--line2); background: #fff; border-radius: 14px; padding: 11px 13px; display: grid; gap: 2px; } .mrg-b:hover { border-color: var(--p); background: var(--pl); }
.pst { font-size: 13.5px; font-weight: 700; margin: 10px 0; padding: 9px 12px; border-radius: 12px; background: var(--bg); } .pst.good { background: var(--pl); color: #17603a; } .pst.warn { background: #fff3e2; color: #8a4f00; } .pst.bad { background: #ffeded; color: #a3242a; }
.prules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .prules li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; background: var(--bg); border-radius: 14px; padding: 10px 12px; opacity: .6; } .prules li.on { opacity: 1; }
.prules input[type=time] { border: 1px solid var(--line2); border-radius: 10px; padding: 7px 8px; background: #fff; } .pdays { grid-column: 1 / -1; display: flex; gap: 4px; } .pdays button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--mute); } .pdays button.on { background: var(--p); border-color: var(--p); color: #fff; }
.card > h2 small { margin-left: 2px; } .btn.ghost.red { color: #c0353a; }

/* ---------------- 그래프 */
.ring { position: relative; display: inline-grid; place-items: center; } .ring svg { width: 100%; height: 100%; } .ring .rg { stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); } .ring.in .rg { stroke-dashoffset: var(--off); }
.ring-t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; } .ring-t b { font-size: 30px; font-weight: 900; letter-spacing: -.04em; display: block; } .ring-t > span { font-size: 13px; font-weight: 700; color: var(--ink2); }
.ds-r .ring-t b { font-size: 25px; } .pl-r .ring-t b { font-size: 22px; } .im-r .ring-t b { font-size: 19px; } .im-r .ring-t > span, .ds-r .ring-t > span, .pl-r .ring-t > span { font-size: 11px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gl { stroke: #e9f0eb; } .chart .gl.dash { stroke-dasharray: 4 5; } .chart .ax { font-size: 11px; fill: var(--mute); font-family: var(--sans); } .chart .ax.now { fill: var(--pd); font-weight: 800; } .chart .ax.wd { font-size: 13px; fill: var(--ink2); font-weight: 600; }
.chart .hl { fill: var(--p); opacity: 0; transition: opacity .15s; } .chart .on .hl, .chart g.on .hl { opacity: .07; }
.chart .ba { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1); } .chart.in .ba { transform: scaleY(1); }
.chart .hit { fill: transparent; cursor: pointer; } .chart .tgl { stroke: var(--orange); stroke-dasharray: 5 5; stroke-width: 1.5; }
.chart .ln { stroke-dasharray: 3000; stroke-dashoffset: 3000; transition: stroke-dashoffset 1.6s ease; } .chart.in .ln { stroke-dashoffset: 0; } .chart .ln.dashl { stroke-dasharray: 6 6; stroke-dashoffset: 0; opacity: .75; }
.chart .af { opacity: 0; transition: opacity 1s .3s; } .chart.in .af { opacity: 1; }
.chart .guide { stroke: var(--p); stroke-dasharray: 3 4; opacity: .5; } .chart .gx { opacity: 0; transition: opacity .12s; pointer-events: none; } .chart .gx.on { opacity: 1; } .chart .todayl { stroke: var(--red); stroke-dasharray: 3 3; opacity: .6; }
.radar { max-width: 290px; margin: 0 auto; } .rgrid { fill: none; stroke: #dfeae2; } .rgrid.alt { fill: #f7fbf8; } .rl { font-size: 11.5px; font-weight: 700; fill: var(--ink2); font-family: var(--sans); } .rv { fill: var(--pd); }
.rpoly { stroke-width: 2.4; transform-origin: center; transform-box: fill-box; transform: scale(.2); opacity: 0; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .5s; } .radar.in .rpoly { transform: scale(1); opacity: 1; } .rdot { cursor: pointer; }
.donut { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; } .dnw { position: relative; width: 150px; height: 150px; }
.dn { width: 150px; height: 150px; transform: rotate(-40deg) scale(.8); opacity: 0; transition: transform 1s, opacity .6s; } .donut.in .dn { transform: none; opacity: 1; } .dn circle { cursor: pointer; transition: stroke-width .15s; } .dn circle:hover { stroke-width: 22; }
.dc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; } .dc b { font-size: 19px; font-weight: 900; } .dc span { font-size: 11px; color: var(--mute); }
.lg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; } .lg li { display: flex; align-items: center; gap: 6px; } .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; } .lg b { margin-left: auto; } .lg em { font-style: normal; color: var(--mute); font-size: 11.5px; width: 34px; text-align: right; }
.donut + .muted { margin-top: 12px; }
.hb { display: grid; gap: 9px; } .hbr { display: grid; grid-template-columns: minmax(0, 4.2rem) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; } .hbr .t { height: 11px; border-radius: 999px; background: #edf2ee; overflow: hidden; } .hbr .t i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1s cubic-bezier(.2, .8, .2, 1); } .hb.in .hbr .t i { width: var(--w); } .hbr .v { font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.tip { position: fixed; z-index: 95; pointer-events: none; background: #1b2a21; color: #fff; border-radius: 10px; padding: 7px 11px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 12px 28px -10px rgba(10, 40, 20, .6); opacity: 0; transition: opacity .1s; max-width: 260px; } .tip.show { opacity: 1; } .tip b { display: block; } .tip span { display: block; color: #cfe6d7; }

/* ---------------- 창 · 알림 */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 40, 25, .5); backdrop-filter: blur(5px); } .modal.on { display: flex; }
.mbox { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 24px 24px 20px; box-shadow: 0 30px 80px -30px rgba(10, 40, 20, .8); animation: pop .2s ease; } .mbox.wide { width: min(800px, 100%); }
.mbox h2 { margin: 0 32px 6px 0; font-size: 19px; letter-spacing: -.03em; display: flex; gap: 7px; align-items: center; } .mbox h2 .ic { color: var(--p); }
.mx { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--pl); font-size: 20px; color: var(--ink2); z-index: 2; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 90; display: grid; gap: 6px; width: min(460px, calc(100% - 24px)); pointer-events: none; } .toast > div { background: #1d3327; color: #fff; padding: 11px 15px; border-radius: 13px; font-size: 14px; box-shadow: 0 12px 30px -12px rgba(10, 40, 20, .7); animation: pop .2s ease; word-break: keep-all; }
.askw { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 18px; background: rgba(15, 40, 25, .42); backdrop-filter: blur(3px); animation: askBg .16s ease; } .askw.out { opacity: 0; transition: opacity .16s; }
.askb { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 20px 20px 16px; box-shadow: 0 30px 80px -30px rgba(10, 40, 20, .8); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: center; animation: pop .2s ease; }
.ask-m { width: 56px; height: 56px; border-radius: 18px; background: var(--pl); display: grid; place-items: center; padding: 4px; } .ask-m .mascot { width: 100%; height: 100%; } .askb.risky .ask-m { background: #fff1ec; }
.ask-c h3 { margin: 0 0 4px; font-size: 16px; } .ask-c p { font-size: 14.5px; line-height: 1.6; word-break: keep-all; } .ask-a { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; } .ask-a .btn { min-width: 84px; }
@keyframes askBg { from { opacity: 0; } }

/* ---------------- 폭 */
@media (max-width: 1500px) { .hero-img { right: 110px; width: 260px; height: 260px; } .hero { padding-right: 250px; } }
@media (max-width: 1360px) {
  .grid3, .grid3.g-b, .grid3.g-c { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 > :last-child { grid-column: 1 / -1; }
  .hero-img { display: none; } .hero { padding-right: 190px; } .rep-g { grid-template-columns: 1fr 1fr; }
  .c-reco .car-s, .c-coach { max-width: none; }
}
@media (max-width: 1024px) {
  .side { transform: translateX(-102%); transition: transform .25s; box-shadow: 0 0 60px rgba(10, 40, 20, .3); width: min(300px, 84vw); padding-bottom: 90px; } body.nav-open .side { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15, 40, 25, .4); z-index: 35; }
  .mainw { margin-left: 0; padding-bottom: 84px; }
  .top { position: sticky; top: 0; right: auto; justify-content: space-between; padding: 8px 12px; background: rgba(243, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .top .brand.sm { display: flex; padding: 0; gap: 7px; } .brand.sm b { font-size: 19px; } .menu-btn { display: none; }
  .tbtn { width: 40px; height: 40px; } .tools { gap: 6px; }
  .ph { padding-right: 0; } .sample-bar { margin: 10px 14px 0; max-width: none; }
  .page { padding: 16px 14px 30px; gap: 14px; } .home { padding-top: 0; }
  .hero { margin: 0 -14px; padding: 20px 16px; flex-direction: column; align-items: stretch; gap: 14px; min-height: 0; } .hero-t h1 { font-size: 25px; } .hero-goal { min-width: 0; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 1px; border: 0; background: none; color: var(--mute); padding: 4px 0; font-weight: 700; } .tabbar small { font-size: 11px; } .tabbar .ic { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--pd); } .tabbar .shot .ic { width: 46px; height: 46px; padding: 11px; margin-top: -22px; border-radius: 50%; background: linear-gradient(135deg, #22b866, #128a48); color: #fff; box-shadow: 0 10px 20px -8px rgba(18, 138, 72, .9); } .tabbar .shot { color: var(--pd); }
  .toast { bottom: 96px; }
  .an-g, .pl-g, .co-g, .my-g, .rd-g, .rd-hero, .dsum { grid-template-columns: minmax(0, 1fr); } .tgprev { position: static; } .dsum { justify-items: center; } .ds-m, .ds-x { width: 100%; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .grid3, .grid3.g-b, .grid3.g-c, .grid2, .slots, .gpts { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; border-radius: 18px; } .ph h1 { font-size: 22px; } .ph h1 .ic { width: 24px; height: 24px; }
  .ktiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ktile b { font-size: 24px; }
  .welcome { flex-direction: column; text-align: center; } .wl-m { width: 120px; } .welcome .fa, .steps3 { justify-content: center; }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rc-b { padding: 10px; } .rc-b b { font-size: 14.5px; }
  .rd-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-h h1 { font-size: 24px; }
  .irow { grid-template-columns: auto minmax(0, 1fr) auto auto; row-gap: 6px; } .irow .qty { grid-column: 2; grid-row: 2; justify-self: start; } .irow .ibtn { grid-row: 1; } .irow .tile { grid-row: 1 / span 2; align-self: start; }
  .dt-g, .rep-g { grid-template-columns: minmax(0, 1fr); } .tgl2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tgl2.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .form input, .form select { padding: 10px 9px; }
  .donut { grid-template-columns: minmax(0, 1fr); justify-items: center; } .lg { width: 100%; }
  .pr-i { width: 64px; height: 64px; } .prow { gap: 10px; } .pr-a .btn { padding: 6px 8px; }
  .mbox { padding: 20px 16px 16px; } .modal { padding: 10px; align-items: flex-end; } .mbox { border-radius: 22px 22px 16px 16px; }
  .slotg { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .slotb { padding: 12px 2px; font-size: 13px; }
  .askb { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .ask-a { justify-content: stretch; } .ask-a .btn { flex: 1; }
  .ghero { flex-direction: column; text-align: center; } .about { flex-direction: column; text-align: center; }
  .faml li { grid-template-columns: auto minmax(0, 1fr); } .faml .fa { grid-column: 1 / -1; }
  .lm, .car-s { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; } .car-b h3 { font-size: 18px; }
  .fgrid, .pan { grid-template-columns: minmax(0, 1fr); } .sitg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ggrid { grid-template-columns: minmax(0, 1fr); }
  .plan-l li { grid-template-columns: auto minmax(0, 1fr) auto; } .plan-l em { grid-column: 2; grid-row: 2; } .plan-l .chk { grid-row: 1 / span 2; grid-column: 3; }
  .wstrip { gap: 4px; } .dnav { gap: 2px; } .dnav .ibtn { width: 28px; }
  .an-when .seg { width: 100%; } .an-when .seg button { flex: 1; padding: 7px 4px; }
  .impact { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .flags.row { justify-content: center; }
}
@media (max-width: 380px) { .tabs3 a { font-size: 12px; } .hero-t h1 { font-size: 22px; } .rgrid { gap: 8px; } .ings { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ings a:nth-child(4):not(.add) { display: none; } .seg button { padding: 7px 9px; } .g3 label { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .chart .ba { transform: none; } .chart .ln { stroke-dashoffset: 0; } .chart .af, .rpoly, .dn { opacity: 1; transform: none; } .mbar i, .pbar i, .hbr .t i { width: var(--w); } .ring .rg { stroke-dashoffset: var(--off); } }
@media print { .side, .top, .tabbar, .fa, .subs, .sample-bar { display: none !important; } .mainw { margin: 0; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ddd; } }
