/* 오늘 뭐 먹지? — 모바일 퍼스트 (390×844 기준, 320px 대응)
   딥 그린 #1A3326 · 크림 #F5EBD6 · 따뜻한 아이보리 #FBF6EC */
/* HAROO STUDIO 공식 로고 타이틀용 서체 (공식 홈페이지와 동일한 haroo-serif.woff) */
@font-face {
  font-family: "HarooSerif";
  src: url("assets/haroo-serif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --green: #1a3326;
  --green-2: #244433;
  --green-3: #33553f;
  --green-soft: #e7efe6;
  --cream: #f5ebd6;
  --cream-2: #fbf3e2;
  --bg: #fbf6ec;
  --card: #ffffff;
  --card-2: #fdf9f0;
  --ink: #1c2822;
  --muted: #6d7a71;
  --muted-2: #97a29a;
  --line: #ebe2d1;
  --line-2: #f3ecdd;
  --amber: #b9762f;
  --amber-soft: #fbf0dd;
  --red: #b8433a;
  --red-soft: #fbe9e6;
  --safe: #37745a;
  --safe-soft: #e8f1ea;
  --pro: #8a6a2f;
  --pro-soft: #f7eeda;
  --shadow-sm: 0 1px 2px rgba(26, 51, 38, 0.05);
  --shadow: 0 6px 20px rgba(26, 51, 38, 0.07), 0 1px 2px rgba(26, 51, 38, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 30, 22, 0.24);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--cream); }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  position: relative;
}
#app.no-nav { padding-bottom: 0; }
@media (min-width: 520px) {
  body { background: #eae3d4; }
  #app { box-shadow: 0 0 0 1px rgba(26, 51, 38, 0.06), 0 20px 60px rgba(26, 51, 38, 0.12); }
}

/* ── 헤더 ────────────────────────────────────────── */
.topbar {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-2) 100%);
  color: var(--cream);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 18px;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 235, 214, 0.14), rgba(245, 235, 214, 0) 70%);
  pointer-events: none;
}
.tb-row { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.tb-logo { width: 38px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.18)); }
.tb-title { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.tb-sub { font-size: 11.5px; color: rgba(245, 235, 214, 0.72); margin-top: 1px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-spacer { flex: 1; }
.tb-chip {
  border: 1px solid rgba(245, 235, 214, 0.32);
  background: rgba(245, 235, 214, 0.1);
  color: var(--cream);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tb-chip.pro { background: var(--cream); color: var(--green); border-color: transparent; }

.hero-stat { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.hero-stat div {
  flex: 1;
  background: rgba(245, 235, 214, 0.09);
  border: 1px solid rgba(245, 235, 214, 0.14);
  border-radius: 14px;
  padding: 9px 11px;
}
.hero-stat b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.hero-stat span { font-size: 10.5px; color: rgba(245, 235, 214, 0.7); }

/* ── 공통 ────────────────────────────────────────── */
.wrap { padding: 16px 16px 28px; }
.wrap-tight { padding: 12px 16px 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.card.flat { box-shadow: none; background: var(--card-2); }
.card.dark { background: linear-gradient(150deg, var(--green), var(--green-3)); border-color: transparent; color: var(--cream); }
.card.dark .small, .card.dark .muted { color: rgba(245, 235, 214, 0.72); }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: 24px; line-height: 1.28; font-weight: 850; }
h2 { font-size: 16px; font-weight: 800; }
h3 { font-size: 14.5px; font-weight: 800; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.grow { flex: 1; min-width: 0; }
.hr { height: 1px; background: var(--line-2); margin: 12px 0; border: 0; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 750; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.safe { background: var(--safe-soft); color: var(--safe); }
.pill.pro { background: var(--pro-soft); color: var(--pro); }
.pill.line { background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* 좌우 토글 스위치 (알림 켜기/끄기) — 체험단 비서와 같은 모양 */
.switch {
  width: 46px; height: 28px; border-radius: 999px; background: #ddd3bf;
  border: 0; padding: 0; position: relative; flex: none;
  transition: background 0.18s; cursor: pointer;
}
.switch::after {
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  top: 3px; left: 3px; transition: transform 0.18s; box-shadow: 0 1px 3px rgba(26, 51, 38, 0.25);
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--green-3); outline-offset: 2px; }

.section-title {
  display: flex; align-items: baseline; gap: 8px;
  margin: 18px 2px 9px;
  font-size: 13px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em;
}
.section-title .small { font-weight: 600; color: var(--muted-2); }
.section-title .grow { flex: 1; }
.link { color: var(--green); font-weight: 750; font-size: 12.5px; border: 0; background: none; padding: 0; }

.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.08s ease, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn.primary { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn.primary:active { background: var(--green-2); }
.btn.cream { background: var(--cream); border-color: var(--cream); color: var(--green); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #f0d3ce; background: var(--red-soft); }
.btn.sm { padding: 8px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.xs { padding: 6px 9px; font-size: 11.5px; border-radius: 9px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn.pro { background: linear-gradient(135deg, #2c4a37, #1a3326); color: var(--cream); border-color: transparent; }

.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--green-3); }
.textarea { min-height: 78px; resize: vertical; }
.field { margin-bottom: 10px; }
.field > label { display: block; font-size: 12px; font-weight: 750; color: var(--muted); margin: 0 0 5px 2px; }
.field .hint { color: var(--muted-2); font-weight: 600; margin-left: 4px; }
.form-error { color: var(--red); font-size: 12.5px; margin: 0 0 8px; min-height: 0; }
.form-error:empty { display: none; }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.65; word-break: keep-all; }
.form-note b { color: var(--ink); }

.chk { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.chk input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }
.chk span { line-height: 1.4; }

/* 약관 동의 체크 — 가입·유료 신청 화면 (2026-11-22) */
.agree {
  margin: 10px 0 6px; padding: 10px 12px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
}
.agree .chk { margin: 0; color: var(--ink); font-weight: 700; }
.agree-links { margin: 5px 0 0 25px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.agree-links a { color: var(--green); font-weight: 800; text-decoration: none; }

/* ── 하단 탭 ─────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 40;
}
.tabbar button {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
  padding-top: 6px;
}
.tabbar button svg { width: 22px; height: 22px; stroke-width: 1.7; }
.tabbar button span { font-size: 10.5px; white-space: nowrap; letter-spacing: -0.04em; }
@media (max-width: 350px) { .tabbar button span { font-size: 9.5px; } .tabbar button svg { width: 20px; height: 20px; } }
.tabbar button.on { color: var(--green); }
.tabbar button.on svg { stroke-width: 2.2; }

/* ── 냉장고 ──────────────────────────────────────── */
.chip-scroll { display: flex; gap: 7px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chip .plus { color: var(--green-3); font-weight: 900; font-size: 13px; }
.chip:active { background: var(--green-soft); }
.chip.on { background: var(--green); border-color: var(--green); color: var(--cream); }
.chip .cnt { font-size: 10px; opacity: 0.7; }

/* 수량·메모 단위 칩 (g · 개 · 팩 · 봉) — 재료 추가·수정 시트 */
.qty-units { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.qty-units .chip { padding: 7px 14px; min-width: 44px; justify-content: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }

.item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-2);
}
.item:last-child { border-bottom: 0; }
.item .nm { font-weight: 750; font-size: 14.5px; }
.item .meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
/* 같은 개발자의 다른 앱 — 맨 위 HAROO STUDIO 공식 홈 대표 카드 (시안 B · 웜 크림·코랄) */
.studio-card {
  display: flex; align-items: center; gap: 12px; margin: 0 0 9px;
  padding: 13px 14px; border-radius: var(--r); text-decoration: none;
  background: #FFF7F2; border: 1.5px solid #FDBA74; box-shadow: var(--shadow-sm);
}
.studio-card .sc-ic {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  border: 1px solid rgba(42, 28, 22, 0.12); background: #FCF6EA;
  object-fit: cover; display: block;
}
.studio-card .sc-tx { flex: 1; min-width: 0; }
.studio-card .sc-tx b {
  display: block; font-family: "HarooSerif", Georgia, serif; font-weight: 400;
  font-size: 15px; color: #1F2937; letter-spacing: -0.025em; line-height: 1.35;
}
.studio-card .sc-sub {
  display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600;
  color: #6B7280; line-height: 1.5; word-break: keep-all;
}
.studio-card .sc-url { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: #EA580C; word-break: break-all; }
.studio-card .sc-go { flex: none; color: #EA580C; font-size: 15px; line-height: 1; font-weight: 700; }
.studio-card:active { background: #FFEFE6; }
.item.done .nm { text-decoration: line-through; color: var(--muted-2); }
.item .acts { display: flex; gap: 5px; flex: 0 0 auto; }
.item .acts .btn.xs { padding: 6px 7px; }
.item .acts .btn.xs:not(.edit) { min-width: 30px; padding-left: 0; padding-right: 0; }
.item .acts .btn.edit { white-space: nowrap; }
.item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { word-break: keep-all; }
.item .meta .st { display: inline-block; border-radius: 6px; padding: 1px 5px; margin-right: 6px; font-size: 10.5px; font-weight: 850; letter-spacing: -0.02em; }
.item .meta .st.fridge { background: var(--green-soft); color: var(--green); }
.item .meta .st.freezer { background: #e5eef8; color: #2f5f92; }
.item .meta .st.room { background: #f6efdf; color: #8a6a2f; }
@media (max-width: 359px) { .item .acts .edit-tx { display: none; } }
.dday {
  min-width: 46px;
  text-align: center;
  border-radius: 10px;
  padding: 5px 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dday.red { background: var(--red-soft); color: var(--red); }
.dday.amber { background: var(--amber-soft); color: var(--amber); }
.dday.safe { background: var(--safe-soft); color: var(--safe); }
.dday.none { background: #f4f1e9; color: var(--muted-2); }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--card-2);
}

/* ── 레시피 ──────────────────────────────────────── */
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; margin: 0 -16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { padding: 7px 11px; font-size: 12px; }

.rcp {
  display: flex;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}
.rcp:active { background: var(--card-2); }
.rcp .match {
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 850;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.rcp .match small { display: block; font-size: 8.5px; font-weight: 700; opacity: 0.7; margin-top: 2px; letter-spacing: 0; }
.rcp .match.low { background: #f4f1e9; color: var(--muted); }
.rcp .nm { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rcp .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rcp .miss { font-size: 11.5px; color: var(--amber); margin-top: 3px; }
.rcp .tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }

.steps { counter-reset: step; }
.steps li {
  list-style: none;
  position: relative;
  padding: 0 0 14px 34px;
  font-size: 14px;
  line-height: 1.62;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 800;
  display: grid; place-items: center;
}
.steps li:last-child { padding-bottom: 0; }
.ing { display: flex; flex-wrap: wrap; gap: 5px; }
.ing span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
}
.ing span.have { background: var(--green-soft); border-color: #cfe0d2; color: var(--green); }
.ing span.miss { background: var(--amber-soft); border-color: #f0e0c6; color: var(--amber); }
.tipbox {
  background: var(--cream-2);
  border: 1px solid #f1e4c9;
  border-radius: 13px;
  padding: 11px 12px;
  font-size: 12.5px;
  line-height: 1.62;
  color: #5c4a2e;
  word-break: keep-all;
}

/* ── 배달비 방어 ─────────────────────────────────── */
.save-hero {
  background: linear-gradient(155deg, #1f3b2b, #16281d);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.save-hero::after {
  content: '';
  position: absolute; right: -40px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 235, 214, 0.12), transparent 70%);
}
.save-hero .lbl { font-size: 11.5px; color: rgba(245, 235, 214, 0.68); font-weight: 700; letter-spacing: 0.02em; }
.save-hero .amt { font-size: 33px; font-weight: 850; letter-spacing: -0.04em; margin: 2px 0 4px; }
.save-hero .amt small { font-size: 15px; font-weight: 700; opacity: 0.75; margin-left: 3px; }
.save-hero .sub { font-size: 12px; color: rgba(245, 235, 214, 0.7); }
.big-save {
  width: 100%;
  border: 0;
  background: var(--cream);
  color: var(--green);
  border-radius: 15px;
  padding: 15px;
  font-size: 15px;
  font-weight: 850;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.big-save:active { transform: scale(0.99); }
.save-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.save-line:last-child { border-bottom: 0; }
.save-line .dt { font-size: 11.5px; color: var(--muted); width: 58px; flex: 0 0 auto; }
.save-line .desc { flex: 1; font-size: 13px; font-weight: 650; }
.save-line .am { font-weight: 800; font-size: 13.5px; }

/* ── 리포트 ──────────────────────────────────────── */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 118px; padding: 6px 2px 0; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: var(--green-soft); min-height: 3px; transition: height 0.4s ease; }
.bars .col.on .bar { background: var(--green); }
.bars .cap { font-size: 10px; color: var(--muted-2); font-weight: 700; }
.bars .col.on .cap { color: var(--green); }
.kpi2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kpi2 .card { margin: 0; padding: 13px; }
.kpi2 .k { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.kpi2 .v { font-size: 21px; font-weight: 850; letter-spacing: -0.03em; margin-top: 2px; }
.kpi2 .v small { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-left: 2px; }

.prolock {
  border: 1px solid #ecdcb9;
  background: linear-gradient(180deg, #fdf7e9, #fff);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}
.prolock .lk { font-size: 22px; }

/* ── 모달 / 시트 ─────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(18, 30, 24, 0.46);
  backdrop-filter: blur(3px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.18s ease;
}
@media (min-width: 520px) { .overlay { align-items: center; } }
.sheet {
  background: var(--bg);
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: slideUp 0.24s cubic-bezier(0.22, 0.8, 0.3, 1);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 520px) { .sheet { border-radius: 22px; max-height: 86dvh; } }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sheet-head h2 { flex: 1; }
.sheet-body { padding-bottom: 4px; }
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--muted);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: rgba(22, 38, 29, 0.94);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 90;
  max-width: 88vw;
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #8c2f28; }

/* ── 랜딩 ────────────────────────────────────────── */
.landing-hero {
  background: linear-gradient(165deg, #1a3326 0%, #244433 62%, #2c4c39 100%);
  color: var(--cream);
  padding: calc(28px + env(safe-area-inset-top, 0px)) 22px 30px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: relative;
  overflow: hidden;
}
.landing-hero::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  right: -120px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 235, 214, 0.16), transparent 68%);
}
.lh-logo { width: 66px; height: 66px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.28)); }
.lh-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; color: rgba(245, 235, 214, 0.66); margin-top: 18px; }
.landing-hero h1 { font-size: 27px; margin-top: 6px; line-height: 1.3; }
.landing-hero p { font-size: 13.5px; color: rgba(245, 235, 214, 0.78); line-height: 1.66; margin: 10px 0 0; word-break: keep-all; }
.lh-feats { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.lh-feats span {
  border: 1px solid rgba(245, 235, 214, 0.26);
  background: rgba(245, 235, 214, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.feat:last-child { border-bottom: 0; }
.feat .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 16px; flex: 0 0 auto; }
.feat b { display: block; font-size: 13.5px; }
.feat span { font-size: 12px; color: var(--muted); line-height: 1.55; display: block; margin-top: 2px; word-break: keep-all; }
.price-card { border: 1px solid #ecdcb9; border-radius: var(--r); padding: 15px; background: linear-gradient(180deg, #fdf7e9, #fff); }
.price-card .pr { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.price-card .pr b { font-size: 24px; letter-spacing: -0.03em; }
.price-card .pr s { font-size: 12px; color: var(--muted-2); }
.price-card ul { margin: 8px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ── 인증 ────────────────────────────────────────── */
.auth-wrap { padding: 22px 18px 30px; }
.seg { display: flex; background: #f1eadb; border-radius: 12px; padding: 3px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 750; color: var(--muted); }
.seg button.on { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }

/* ── 업그레이드 ──────────────────────────────────── */
.pay-box { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); padding: 12px 13px; margin-bottom: 12px; }
.pay-box-t { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 9px; }
.pay-line { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; row-gap: 4px; }
.pay-line + .pay-line { margin-top: 8px; }
.pay-line .pay-k { width: 82px; flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.pay-line .pay-v { font-weight: 750; }
.pay-num { font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; }
.pay-copy { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 8px; font-size: 11px; font-weight: 750; color: var(--green); white-space: nowrap; flex: 0 0 auto; }
.pay-holder { white-space: nowrap; }
@media (max-width: 350px) { .pay-num { font-size: 13.5px; } .pay-line .pay-k { width: 66px; font-size: 11px; } .pay-line { gap: 6px; } }
.pay-holder { font-size: 12px; color: var(--muted); }

.tier { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: #fff; }
.tier.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.tier .tt { display: flex; align-items: center; gap: 6px; }
.tier .tt b { font-size: 15px; }
.tier .pr { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.tier .pr b { font-size: 21px; }
.tier .pr s { font-size: 11.5px; color: var(--muted-2); }
.tier ul { margin: 8px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ── 관리자 ──────────────────────────────────────── */
.adm-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.adm-tabs button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px; font-size: 12.5px; font-weight: 750; color: var(--muted); }
.adm-tabs button.on { background: var(--green); color: var(--cream); border-color: var(--green); }
.adm-search { position: relative; display: flex; align-items: center; margin-bottom: 10px; }
.adm-search .input { height: 42px; padding: 9px 36px 9px 34px; font-size: 13.5px; }
.adm-search .ic { position: absolute; left: 12px; font-size: 13px; opacity: 0.5; pointer-events: none; }
.adm-search .clr {
  position: absolute; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: var(--line-2); color: var(--muted); font-size: 11px; padding: 0;
  display: none; align-items: center; justify-content: center;
}
.adm-search.has-q .clr { display: flex; }
.adm-list { padding: 2px 14px 4px; }
.adm-user { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.adm-user:last-child { border-bottom: 0; }
.adm-user.ban { background: #fff8f6; }
.adm-user-top { display: flex; align-items: flex-start; gap: 8px; }
.adm-user-top .pill { flex: 0 0 auto; }
.adm-mail { font-weight: 750; font-size: 12.5px; word-break: break-all; }
.adm-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.adm-kpi div { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 9px 6px; text-align: center; }
.adm-kpi b { display: block; font-size: 17px; }
.adm-kpi span { font-size: 10px; color: var(--muted); }

/* ── 스캔 ────────────────────────────────────────── */
.dropzone {
  border: 1.5px dashed #d8c9a9;
  border-radius: var(--r);
  background: var(--card-2);
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
}
.dropzone .ic { font-size: 30px; }
.progress { height: 6px; background: #eee6d6; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.25s; }
.scan-item { display: flex; align-items: center; gap: 9px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); }
.scan-item input { width: 18px; height: 18px; accent-color: var(--green); }
.scan-item .nm { flex: 1; font-size: 13.5px; font-weight: 650; }
.scan-item .ex { font-size: 11.5px; color: var(--muted); }

/* ── PRO 도구 버튼 (냉장고: + 직접 입력 아래 영수증·AI) ──────── */
.toolbtn {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 9px 11px; margin-bottom: 6px;
  text-align: left; color: var(--ink);
}
.toolbtn:last-child { margin-bottom: 0; }
.toolbtn:active { background: var(--card-2); }
.toolbtn .tb-ic {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 9px;
  background: var(--green-soft); display: grid; place-items: center; font-size: 14px;
}
.toolbtn .tb-tx { flex: 1; min-width: 0; }
.toolbtn .tb-tx b { display: block; font-size: 12.8px; font-weight: 750; letter-spacing: -0.01em; }
.toolbtn .tb-tx span { display: block; font-size: 10.8px; font-weight: 600; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbtn .tb-go { flex: 0 0 auto; color: var(--green); font-weight: 800; font-size: 13px; }

/* ── 이주의 장보기 리스트 (레시피 탭 전환 바 아래 1줄 블록) ──────── */
.shopbar {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 1px solid #e6dcc6; background: linear-gradient(180deg, #fffdf7, #fff);
  border-radius: 13px; padding: 10px 12px; margin: 0 0 12px;
  text-align: left; color: var(--ink);
}
.shopbar:active { background: var(--card-2); }
.shopbar .sb-ic {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px;
  background: var(--green-soft); display: grid; place-items: center; font-size: 15px;
}
.shopbar .sb-tx { flex: 1; min-width: 0; }
.shopbar .sb-tx b { display: block; font-size: 12.8px; font-weight: 780; letter-spacing: -0.01em; }
.shopbar .sb-tx span { display: block; font-size: 10.8px; font-weight: 600; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shopbar .sb-go { flex: 0 0 auto; color: var(--green); font-weight: 800; font-size: 13px; }
.shop-sum { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.shop-sum b { font-size: 19px; letter-spacing: -0.02em; }
.shop-sum span { font-size: 11.5px; color: var(--muted); word-break: keep-all; }
.shop-grp { margin-bottom: 10px; }
.shop-cat { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; margin: 0 0 4px 2px; }
.shop-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 2px;
  border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.shop-item:last-child { border-bottom: 0; }
.shop-item input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--green); margin: 0; }
.shop-item .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.shop-item.on .nm { color: var(--ink); }
.shop-item .cnt { flex: 0 0 auto; font-size: 10.5px; color: var(--muted-2); font-weight: 700; }

.howto { font-size: 12px; color: var(--muted); line-height: 1.7; word-break: keep-all; }
.howto b { color: var(--ink); }
.preview-img { border-radius: 12px; border: 1px solid var(--line); width: 100%; height: 168px; object-fit: cover; object-position: center top; }

.footer-note { text-align: center; font-size: 11px; color: var(--muted-2); line-height: 1.7; padding: 14px 10px 4px; }
.footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.demo-banner {
  background: var(--pro-soft);
  border-bottom: 1px solid #ecdcb9;
  color: #7a5c26;
  padding: 8px 14px;
  font-size: 11.5px;
  display: flex; align-items: center; gap: 7px;
  line-height: 1.35;
}
.demo-banner .grow { flex: 1; }

/* ───────── 가입 유도 강화 (2026-11-22) — 랜딩 히어로 · 체험 모드 상단 배너 ───────── */
.su-trust { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.su-trust span {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 800; color: var(--green);
  background: var(--green-soft); border: 1px solid #d5e2d3; border-radius: 999px; padding: 4px 10px;
}
.su-actions { display: grid; gap: 4px; }
.btn.primary.su-cta {
  flex-direction: column; gap: 1px; min-height: 58px; padding: 9px 16px; white-space: normal;
  background: linear-gradient(135deg, #244433, #1a3326 65%, #2c4c39);
  border-color: transparent; box-shadow: 0 12px 24px rgba(26, 51, 38, 0.22);
}
.su-cta-main { font-size: 16px; font-weight: 850; letter-spacing: -0.03em; }
.su-cta-sub { font-size: 11px; font-weight: 700; color: rgba(245, 235, 214, 0.82); letter-spacing: -0.01em; }
.su-sub-row { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 0 2px; }
.su-dot { color: var(--muted-2); font-size: 11px; }
.su-demo {
  border: none; background: none; padding: 4px 2px; min-height: 32px;
  color: var(--muted); font-size: 12.5px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted-2);
}
.su-perks {
  margin: 12px 0 16px; padding: 13px 14px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.su-perks-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 850; color: var(--green); }
.su-free {
  font-size: 10px; font-weight: 800; color: #6a5220;
  background: var(--amber-soft); border: 1px solid #f0e0c2; border-radius: 999px; padding: 2px 8px;
}
.su-perk { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.su-perk:first-of-type { margin-top: 8px; }
.su-n {
  width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 800;
  color: var(--green); background: var(--green-soft);
}
.su-perk b { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1.45; letter-spacing: -0.01em; }
.su-perk p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.su-perk-pro {
  margin: 3px 0 0; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--muted); line-height: 1.6; word-break: keep-all;
}
.su-perk-pro b { color: var(--pro); }

.su-demo-banner {
  display: flex; align-items: center; gap: 10px; margin: 10px 14px 2px; padding: 10px 11px;
  background: var(--amber-soft); border: 1px solid #efdcbb; border-radius: 13px;
  box-shadow: 0 4px 14px rgba(185, 118, 47, 0.12);
}
.su-demo-ico { flex: none; font-size: 15px; }
.su-demo-txt { flex: 1 1 auto; min-width: 0; }
.su-demo-txt b { display: block; font-size: 11.5px; font-weight: 850; color: #8a5a1d; line-height: 1.4; }
.su-demo-txt span { display: block; margin-top: 2px; font-size: 10.5px; color: #7a5c26; line-height: 1.45; word-break: keep-all; }
.su-demo-cta {
  flex: none; white-space: nowrap; min-height: 32px; padding: 0 11px; border-radius: 9px;
  background: var(--green); color: var(--cream); font-size: 11.5px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(26, 51, 38, 0.22);
  font-family: inherit;
}
.su-demo-cta:active { transform: scale(0.97); }
@media (max-width: 350px) {
  .su-demo-banner { gap: 8px; padding: 9px; margin-left: 12px; margin-right: 12px; }
  .su-demo-txt b { font-size: 11px; }
  .su-demo-txt span { font-size: 10px; }
  .su-demo-cta { padding: 0 8px; font-size: 11px; }
  .su-cta-main { font-size: 15px; }
}

/* ── 새로고침 버튼 (PWA: 주소창 없는 화면) ──────────────── */
.tb-refresh {
  border: 1px solid rgba(245, 235, 214, 0.32);
  background: rgba(245, 235, 214, 0.1);
  color: var(--cream);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0; flex: 0 0 auto;
  transition: background 0.15s;
}
.tb-refresh svg { width: 17px; height: 17px; stroke-width: 2; }
.tb-refresh:active { background: rgba(245, 235, 214, 0.24); }
.landing-hero .tb-refresh { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; }
@media (max-width: 350px) { .tb-refresh { width: 29px; height: 29px; } .tb-refresh svg { width: 15px; height: 15px; } }

/* ── 앱 모드(PRO 결제 숨김) 안내 ─────────────────────── */
.web-notice {
  border: 1px solid #ecdcb9;
  border-radius: var(--r);
  background: linear-gradient(180deg, #fdf7e9, #fff);
  padding: 14px;
  margin-bottom: 12px;
}
.web-notice.compact { padding: 10px 11px; margin-bottom: 0; background: var(--card-2); border-color: var(--line); }
.web-notice .wn-t { font-size: 12.5px; font-weight: 800; color: var(--pro); }
.web-notice .wn-p { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 5px 0 9px; word-break: keep-all; }
.web-notice.compact .wn-p { margin: 4px 0 7px; font-size: 11.5px; }
.web-notice .wn-url { color: var(--ink); word-break: break-all; }

/* ── 영구정지 안내 ──────────────────────────────────── */
.banned-box {
  margin: 12px 16px;
  border: 1px solid #f0cfca;
  background: var(--red-soft);
  border-radius: var(--r);
  padding: 13px 14px;
}
.banned-box b { color: var(--red); font-size: 13.5px; }
.banned-box p { margin: 5px 0 0; font-size: 12px; color: #8c3a32; line-height: 1.6; word-break: keep-all; }

/* ── 유저 레시피 게시판 ─────────────────────────────── */
.post-card {
  display: block;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 12px 13px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}
.post-card:active { background: var(--card-2); }
.post-card .pc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-card .pc-t { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; word-break: keep-all; }
.post-card .pc-sum { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; word-break: keep-all; }
.post-card .pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.post-card .pc-author { font-weight: 750; color: var(--ink); }
.post-card .pc-star { color: var(--muted-2); }
.post-card .pc-star.on { color: var(--amber); font-weight: 750; }
.post-card .pc-foot {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--muted);
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2);
}
.post-sum { font-size: 13.5px; color: #4a564e; line-height: 1.65; margin: 0 0 12px; word-break: keep-all; }

.stars { display: flex; gap: 3px; margin-top: 9px; }
.star { border: 0; background: none; font-size: 27px; line-height: 1; color: #d9d0bc; padding: 2px 3px; }
.star.on { color: #e0a13a; }
.star:active { transform: scale(0.94); }
@media (max-width: 350px) { .star { font-size: 24px; padding: 2px 2px; } }

.btn.like-on { border-color: #f0cfca; background: var(--red-soft); color: var(--red); }

.cm { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cm:last-child { border-bottom: 0; }
.cm-who { font-size: 12.5px; font-weight: 800; }
.cm-body { font-size: 13px; line-height: 1.6; margin-top: 3px; word-break: break-word; }

/* ── 관리자: 회원 버튼 가로 나열 · 게시판 관리 ─────────────── */
.adm-acts { display: flex; gap: 8px; margin-top: 9px; }
.adm-acts .btn { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 12px; white-space: nowrap; }
/* ── 관리자 모드 켜짐/꺼짐 칩 (2026-11-20 · 3개 앱 공통 규칙) ─────────────
   켜짐(사용 중)  : 모드 색으로 꽉 채운 배경 + 흰 글씨
   꺼짐(미사용)   : 배경 없이 연회색 테두리 + 회색 글씨
   영구정지·정지해제는 색을 채우지 않는 테두리 버튼으로 두어 모드 칩과 구분한다. */
.adm-acts .btn.mode {
  background: transparent; border: 1px solid var(--line); color: var(--muted-2);
  font-weight: 750;
}
.adm-acts .btn.mode.is-on {
  background: linear-gradient(135deg, #2c4a37, #1a3326);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 51, 38, 0.22);
}
.adm-acts .btn.ban-out { background: transparent; border-color: #f0d3ce; color: var(--red); }
.adm-acts .btn.ok-out { background: transparent; border-color: #cfe0d2; color: var(--safe); }
.ban-tag { color: var(--red); margin-top: 2px; }
.adm-cms { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.adm-cm { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 11.5px; }
.adm-cm .cnt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4a564e; }
.adm-cm .who { color: var(--muted); flex: 0 0 auto; }
.adm-cm .btn { flex: 0 0 auto; padding: 3px 7px; font-size: 10.5px; }

/* ── 광고/제휴 자리 (작은 배너 · 광고가 없으면 얇은 안내 카드) ── */
.adslot { margin: 14px 0 2px; }
.adslot:empty { display: none; }
.ad {
  display: block; position: relative; width: 100%;
  text-align: left; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #faf4e6, #f4f7ef);
  border: 1px dashed #ddd3bd;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ad:active { background: #f2ecdc; }
.ad .adbadge {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.1px;
  color: #8a8577; background: #fff;
  border: 1px solid #e7dfcd; border-radius: 6px;
  padding: 3px 6px; white-space: nowrap;
}
.ad .adtxt { display: block; margin-top: 6px; padding-right: 16px; }
.ad .adtxt b { display: block; font-size: 12px; font-weight: 750; color: var(--ink); line-height: 1.4; word-break: keep-all; }
.ad .adtxt span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.ad .adarrow { position: absolute; right: 11px; top: 10px; font-size: 12px; line-height: 1; color: var(--muted-2); font-weight: 700; }
.ad.compact { padding: 9px 11px; }
.ad.compact .adtxt { margin-top: 5px; }
.ad.compact .adtxt b { font-size: 11.5px; }
.ad.compact .adtxt span { font-size: 10px; }
.ad.hasimg {
  display: block; padding: 0; border-style: solid; border-color: var(--line);
  overflow: hidden; background: #fff;
}
.ad.hasimg img { display: block; width: 100%; height: auto; max-height: 140px; object-fit: cover; border-radius: 13px; }
.ad.hasimg .adbadge { position: absolute; left: 8px; top: 8px; }
.ad-html img { max-width: 100%; height: auto; display: block; }

@media (max-width: 350px) { .adm-mail { font-size: 11.5px; } .adm-acts .btn { font-size: 11.5px; padding: 8px 4px; } }

/* ── 제휴(토스 쉐어링크) 특가 카드 — 첫 번째 탭(냉장고) 하단 ─────────── */
.aff { margin: 18px 0 4px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 13px 12px 10px; box-shadow: var(--shadow-sm); }
.aff-head { margin: 0 2px 6px; }
.aff-head b { display: block; font-size: 13.4px; font-weight: 800; letter-spacing: -0.015em; color: var(--green); }
.aff-head span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
/* 매일 오전 10:00 특가 교체 안내 — 카드 상단 */
.aff-upd { margin: 8px 2px 4px; font-size: 10.8px; font-weight: 700; line-height: 1.5; color: var(--green); background: var(--cream-2); border-radius: 8px; padding: 6px 9px; word-break: keep-all; }
.aff-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.aff-item:first-of-type { border-top: 0; }
.aff-item:active { background: var(--card-2); }
.aff-em { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: var(--cream-2); display: grid; place-items: center; font-size: 15px; }
.aff-tx { flex: 1; min-width: 0; }
.aff-tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.8px; font-weight: 720; line-height: 1.35; color: var(--ink); word-break: keep-all; }
.aff-tx span { display: block; font-size: 10.8px; font-weight: 600; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-pr { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--green); white-space: nowrap; letter-spacing: -0.01em; }
.aff-pr i { font-style: normal; font-size: 10.5px; font-weight: 700; margin-left: 1px; }
.aff-go { flex: 0 0 auto; color: var(--green); font-weight: 800; font-size: 13px; }
.aff-note { margin: 9px 2px 1px; font-size: 10.5px; line-height: 1.55; color: var(--muted-2); word-break: keep-all; }
@media (max-width: 340px) {
  .aff-tx b { font-size: 12.2px; }
  .aff-pr { font-size: 12.2px; }
}

/* ── 🔔 가입자 쪽지함 (2026-11-23) — 3개 앱 공통 ───────────────── */
.icon-btn.bell { position: relative; }
.bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 800;
  line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--card);
}
.msg-list { max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.msg-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  background: var(--card);
}
.msg-item.unread { box-shadow: inset 3px 0 0 #e5484d; }
.msg-top { display: flex; gap: 8px; align-items: baseline; }
.msg-title { font-weight: 800; font-size: 13.5px; flex: 1; min-width: 0; }
.msg-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e5484d; margin-right: 5px; vertical-align: middle; }
.msg-date { font-size: 11px; color: var(--muted); flex: none; }
.msg-body { font-size: 12.8px; margin-top: 5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg-item .msg-link { margin-top: 8px; display: inline-block; text-decoration: none; }
.msg-tpl { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 10px; }
.msg-sel-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 2px 6px; }
.msg-sel-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 12.5px; cursor: pointer; }
.msg-sel-row + .msg-sel-row { border-top: 1px solid var(--line); }
.msg-sel-row input { flex: none; width: 16px; height: 16px; accent-color: #e5484d; }
.msg-sel-row .em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-hist { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; font-size: 12.5px; background: var(--card); }
.msg-hist .t { font-weight: 750; }
.msg-hist .m { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* ── Google 간편 로그인 버튼 (Google Identity Services) ─────────────── */
.google-login{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 0 2px}
.google-login-title{margin:0;font-size:14px;font-weight:800;color:var(--ink);text-align:center}
.google-btn{width:100%;max-width:360px;min-height:44px;display:flex;justify-content:center}
.google-btn>div{width:100%!important}
.google-login-note{margin:0;font-size:11.5px;line-height:1.55;color:var(--muted);text-align:center}
.google-login-note a{color:inherit;text-decoration:underline}
.auth-divider{display:flex;align-items:center;gap:10px;margin:14px 0 10px;color:var(--muted);font-size:11.5px}
.auth-divider::before,.auth-divider::after{content:'';flex:1 1 auto;height:1px;background:currentColor;opacity:.22}

/* ── ⚡ 비로그인 3초 체험 → 무료 가입 동선 (2026-11-25) ─────────────
   카드 배경은 항상 밝은 크림/화이트로 고정이므로, 그 위 글씨도 진한 색으로 명시 고정한다.
   (테마 변수를 쓰면 나중에 다크 테마가 붙거나 기기 다크모드일 때 흰 배경 위 흰 글씨가 될 수 있음) */
.gt-hero {
  margin: 10px 0 12px; padding: 16px 15px 15px; border-radius: 18px;
  background: linear-gradient(158deg, #fff6e6 0%, #fbfdf9 60%, #eef4ee 100%);
  border: 1px solid #ecd9b6; box-shadow: 0 8px 24px rgba(185, 118, 47, 0.12);
}
.gt-hero-k {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: #fff; border: 1px solid #e8d3ab; color: #7a4d13;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.01em;
}
.gt-hero-t { margin-top: 9px; font-size: 0.95rem; font-weight: 850; line-height: 1.45; color: #1C1917; letter-spacing: -0.01em; word-break: keep-all; }
.gt-hero-p { margin: 5px 0 0; font-size: 0.73rem; color: #57534E; line-height: 1.55; word-break: keep-all; }
.gt-hero-btn {
  display: block; width: 100%; min-height: 48px; margin-top: 12px; padding: 8px 10px; border: 0;
  border-radius: 13px; color: var(--cream); font-size: 0.84rem; font-weight: 900; line-height: 1.35; letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 8px 18px rgba(26, 51, 38, 0.24);
}
.gt-hero-btn:active { transform: scale(0.985); }

.gt-quick {
  margin-top: 12px; padding: 14px 14px 13px; border-radius: var(--r);
  background: linear-gradient(158deg, #fff6e6 0%, #fdfbf4 58%, #eef4ee 100%);
  border: 1px solid #ecd9b6; box-shadow: 0 10px 24px rgba(185, 118, 47, 0.14);
}
.gt-quick-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: #fff; border: 1px solid #e8d3ab; color: #7a4d13;
  font-size: 10.5px; font-weight: 900;
}
.gt-quick-t { margin-top: 8px; font-size: 14px; font-weight: 850; color: #1C1917; letter-spacing: -0.02em; line-height: 1.45; word-break: keep-all; }
.gt-quick-p { margin: 4px 0 0; font-size: 11.5px; color: #57534E; line-height: 1.6; word-break: keep-all; }
.gt-quick .btn.primary { margin-top: 10px; min-height: 46px; font-size: 13px; font-weight: 850; }
.gt-quick-note { margin: 7px 0 0; font-size: 10.5px; color: #57534E; text-align: center; line-height: 1.5; }

.gt-ctacard {
  margin: 12px 0 4px; padding: 13px 13px 12px; border-radius: var(--r);
  background: linear-gradient(160deg, #eef4ee 0%, #fdfbf4 72%);
  border: 1px solid #d7e3d7; box-shadow: 0 8px 20px rgba(26, 51, 38, 0.1);
}
.gt-ctacard-t { font-size: 11.5px; font-weight: 850; color: #2F5C45; letter-spacing: 0.01em; }
.gt-cta {
  display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 9px 10px; border: 0;
  border-radius: 13px; color: var(--cream); font-size: 12.5px; font-weight: 900; line-height: 1.4; letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 8px 18px rgba(26, 51, 38, 0.24);
}
.gt-cta:active { transform: scale(0.985); }
.gt-note { margin: 7px 2px 0; font-size: 10.5px; color: #57534E; line-height: 1.55; text-align: center; word-break: keep-all; }
@media (max-width: 350px) {
  .gt-hero-t, .gt-quick-t { font-size: 0.88rem; }
  .gt-hero-btn, .gt-cta { font-size: 11.3px; }
}
