:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6d7789;
  --line: #e5eaf2;
  --navy: #263b67;
  --navy-2: #334d82;
  --blue: #4f7cff;
  --blue-soft: #eef4ff;
  --green: #2f9e6d;
  --green-soft: #eaf8f1;
  --yellow: #b7791f;
  --yellow-soft: #fff7df;
  --red: #d94848;
  --red-soft: #fff0f0;
  --gray-soft: #f1f3f7;
  --shadow: 0 16px 40px rgba(30, 48, 80, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #ecf4ff 0, transparent 36%), var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--navy);
}

.hero-desc {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
}

.hero-card {
  min-width: 170px;
  border-radius: 24px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 14px 28px rgba(38, 59, 103, 0.24);
}

.hero-card strong,
.hero-card span { display: block; }
.hero-card strong { font-size: 24px; letter-spacing: -0.04em; }
.hero-card span { margin-top: 8px; opacity: .82; }

.upload-panel, .status-card, .toolbar, .calendar-card, .detail-card, .table-card, .summary-item {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.upload-panel {
  margin-top: 24px;
  min-height: 154px;
  padding: 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-style: dashed;
}

.upload-panel.dragover {
  outline: 3px solid rgba(79, 124, 255, .22);
  background: #f7faff;
}

.upload-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-soft);
  font-size: 28px;
}

.upload-copy h2 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.upload-copy p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; word-break: keep-all; }

.upload-button, .status-card button, .view-toggle button, .tool-group button, #copyFilteredBtn {
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  padding: 13px 18px;
  font-weight: 800;
}
.upload-button input { display: none; }

.status-card {
  margin-top: 18px;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.status-card p { margin: 6px 0 0; color: var(--muted); }
.status-card button { background: #eef1f6; color: var(--navy); }

.summary-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.summary-item {
  border-radius: 18px;
  padding: 18px;
}
.summary-item span { color: var(--muted); font-weight: 700; font-size: 13px; }
.summary-item strong { display:block; margin-top: 9px; font-size: 28px; letter-spacing: -0.04em; color: var(--navy); }

.toolbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-top: 22px;
  padding: 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-group { display: flex; align-items: center; gap: 8px; }
.month-control strong {
  min-width: 130px;
  text-align: center;
  color: var(--navy);
  font-size: 18px;
}
.tool-group button { padding: 9px 13px; border-radius: 12px; }
.filters { flex: 1; justify-content: center; }
.filters input, .filters select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
}
.switch-label {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}
.view-toggle {
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 15px;
  background: #eef2f7;
}
.view-toggle button {
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
}
.view-toggle button.active {
  background: var(--panel);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(30, 48, 80, .08);
}

.content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.calendar-card, .detail-card, .table-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-head, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-head {
  padding: 14px 14px 8px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}
.calendar-head span:first-child { color: var(--red); }
.calendar-head span:last-child { color: var(--blue); }
.calendar-grid { gap: 8px; padding: 0 14px 14px; }

.day-cell {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 11px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.day-cell.has-data { border-color: #cbd8ff; background: linear-gradient(180deg, #ffffff, #f7faff); }
.day-cell:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30, 48, 80, .09); }
.day-cell.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 124, 255, .16); }
.day-cell.empty { opacity: .45; background: transparent; box-shadow: none; pointer-events: none; }
.day-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.day-num { font-weight: 900; color: var(--navy); }
.day-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.person-list { display:flex; flex-direction: column; gap: 5px; overflow: hidden; }
.person-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 10px;
  background: #f2f5fb;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.person-chip.zero { background: var(--gray-soft); color: #8a94a6; text-decoration: line-through; }
.person-chip span:last-child { color: var(--muted); font-weight: 700; }
.more-text { color: var(--muted); font-size: 12px; font-weight: 800; padding-left: 2px; }

.detail-card {
  position: sticky;
  top: 96px;
  padding: 20px;
  min-height: 360px;
}
.empty-detail { color: var(--muted); line-height: 1.6; }
.detail-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.detail-title h2 { margin:0; color:var(--navy); letter-spacing:-.04em; }
.detail-title span { color: var(--muted); font-weight:800; }
.detail-summary {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}
.detail-mini {
  border-radius: 14px;
  padding: 12px;
  background: #f7f9fc;
}
.detail-mini span { display:block; color: var(--muted); font-size: 12px; font-weight:800; }
.detail-mini strong { display:block; margin-top: 5px; color: var(--navy); font-size: 19px; }
.detail-list { display:flex; flex-direction:column; gap:8px; }
.detail-row {
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background:#fff;
}
.detail-row-main { display:flex; justify-content:space-between; gap: 8px; align-items:center; }
.detail-row-main strong { color: var(--ink); }
.detail-row-main span { color: var(--blue); font-weight:900; }
.detail-row-sub { margin-top: 7px; color: var(--muted); font-size: 13px; line-height:1.45; }
.badge {
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 3px 7px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 900;
  background: var(--green-soft);
  color: var(--green);
}
.badge.warn { background: var(--yellow-soft); color: var(--yellow); }
.badge.zero { background: var(--gray-soft); color: #8a94a6; }
.copy-day {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  padding: 13px 14px;
  font-weight: 900;
}

.table-card { margin-top: 18px; }
.table-headline {
  padding: 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}
.table-headline h2 { margin:0; color:var(--navy); }
.table-headline p { margin:5px 0 0; color:var(--muted); }
#copyFilteredBtn { background: #eef1f6; color: var(--navy); }
.table-wrap { overflow:auto; max-height: 680px; border-top: 1px solid var(--line); }
table { width:100%; border-collapse: separate; border-spacing:0; min-width: 820px; }
th, td { padding: 13px 14px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
th { position:sticky; top:0; background:#f7f9fc; color:var(--muted); font-size:13px; z-index:1; }
td { background:#fff; }
tr.zero-row td { color: #98a2b3; background:#fbfcfe; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(23, 32, 51, .92);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  font-weight: 800;
  z-index: 30;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }

@media (max-width: 940px) {
  .hero, .upload-panel, .status-card { flex-direction: column; align-items: stretch; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .filters { justify-content: flex-start; }
  .calendar-grid { gap: 6px; }
  .day-cell { min-height: 112px; padding: 9px; }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .hero { padding: 24px; border-radius: 24px; }
  .summary-grid { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .filters, .tool-group { width: 100%; }
  .filters input, .filters select, .switch-label { width: 100%; }
  .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; }
  .calendar-head { font-size: 13px; padding-inline: 7px; }
  .calendar-grid { padding: 0 7px 7px; }
  .day-cell { min-height: 92px; border-radius: 13px; }
  .person-chip { font-size: 11px; padding: 4px 6px; }
  .person-chip span:last-child { display: none; }
}

.upload-stack {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.upload-stack .upload-panel { margin-top: 0; }
.upload-panel.card-upload {
  background: linear-gradient(135deg, #ffffff 0%, #f8fffb 100%);
  border-color: #d7efe3;
}
.upload-button.secondary { background: #2f6f58; }
.card-status { border-color: #d7efe3; }
.card-switch { border-color: #d7efe3; color: #2f6f58; }

.card-line {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 13px;
  background: #f4fbf8;
  color: #2f6f58;
  text-align: left;
  line-height: 1.15;
  min-width: 0;
}
.card-line .meal-label {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: inherit;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.card-line .meal-amount {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-line .meal-meta {
  display: block;
  max-width: 100%;
  font-style: normal;
  color: #536174;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-line.ok { background: #e9f8f1; color: #138a5b; }
.card-line.warn { background: #fff5d9; color: #a46300; }
.card-line.danger { background: #fff0f0; color: #d33131; }
.card-line.ok .meal-meta { color: #256d4f; }
.card-line.warn .meal-meta { color: #7a540c; }
.card-line.danger .meal-meta { color: #9f2f2f; }

.detail-section { margin-top: 18px; }
.detail-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -0.03em;
}
.empty-box {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  background: #fbfcfe;
  line-height: 1.55;
}
.meal-judgement {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1.45;
  background: #f7f9fc;
  color: var(--muted);
}
.meal-judgement.ok { background: var(--green-soft); color: var(--green); }
.meal-judgement.warn { background: var(--yellow-soft); color: var(--yellow); }
.meal-judgement.danger { background: var(--red-soft); color: var(--red); }

.card-detail-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.card-detail-row.meal { border-color: #f0d58b; background: #fffdf7; }
.card-detail-row.excluded,
.card-detail-row.cancel { color: #8a94a6; background: #fbfcfe; }
.card-row-main { display:flex; justify-content:space-between; gap: 8px; align-items:center; }
.card-row-main strong { color: var(--ink); }
.card-row-main span { color: var(--navy); font-weight: 950; white-space: nowrap; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.danger { background: var(--red-soft); color: var(--red); }
tr.meal-row td { background: #fffdf7; }

@media (max-width: 940px) {
  .upload-stack { gap: 12px; }
}

/* v0.3 안내·설정 정리 */
.guide-panel {
  margin-top: 14px;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--navy);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(30, 48, 80, 0.04);
}
.guide-btn.active {
  background: var(--blue-soft);
  border-color: #cbd8ff;
  color: var(--blue);
}
.guide-box {
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(30, 48, 80, 0.06);
  color: var(--muted);
  line-height: 1.62;
  word-break: keep-all;
}
.guide-box h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -0.03em;
}
.guide-box ol,
.guide-box ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.guide-box li { margin: 3px 0; }
.guide-box .guide-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.settings-strip {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}
.mini-setting,
.mask-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(30, 48, 80, 0.04);
}
.mini-setting input {
  width: 72px;
  height: 26px;
  border: 0;
  border-radius: 9px;
  background: #f4f7fb;
  color: var(--navy);
  text-align: right;
  font-weight: 950;
  outline: none;
  padding: 0 8px;
}
.mini-setting input:focus {
  box-shadow: 0 0 0 3px rgba(79, 124, 255, .14);
  background: #fff;
}
.mini-setting em {
  font-style: normal;
  color: var(--muted);
}
.mask-toggle input {
  accent-color: var(--navy);
}

.calendar-titleline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 0;
}
.calendar-titleline strong {
  color: var(--navy);
  font-size: 15px;
  letter-spacing: -0.03em;
}
.meal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.legend-label {
  color: var(--muted);
  font-weight: 950;
  margin-right: 2px;
}
.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.legend-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.legend-dot.ok { color: var(--green); }
.legend-dot.warn { color: var(--yellow); }
.legend-dot.danger { color: var(--red); }

@media (max-width: 620px) {
  .settings-strip { justify-content: stretch; }
  .mini-setting,
  .mask-toggle { width: 100%; justify-content: center; }
  .calendar-titleline { align-items: flex-start; flex-direction: column; }
  .meal-legend { justify-content: flex-start; }
}

/* v0.3.3 모바일 보기 개선 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

button,
.upload-button,
.guide-btn,
.switch-label,
.mask-toggle {
  -webkit-tap-highlight-color: transparent;
}

.upload-button,
.status-card button,
.view-toggle button,
.tool-group button,
#copyFilteredBtn,
#copyCardBtn,
.copy-day {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#copyCardBtn {
  border: 0;
  border-radius: 14px;
  background: #eef1f6;
  color: var(--navy);
  padding: 13px 18px;
  font-weight: 800;
}

.upload-copy,
.status-card,
.table-headline,
.detail-row-main,
.card-row-main {
  min-width: 0;
}

.upload-copy > div,
.status-card > div,
.table-headline > div,
.detail-row-main > strong,
.card-row-main > strong {
  min-width: 0;
}

.table-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  :root {
    --shadow: 0 10px 26px rgba(30, 48, 80, 0.07);
    --radius: 18px;
  }

  body {
    background:
      radial-gradient(circle at -12% -8%, #eaf2ff 0, transparent 34%),
      linear-gradient(180deg, #f7f9fd 0%, #f3f6fb 100%);
  }

  .app-shell {
    width: min(100% - 16px, 1180px);
    padding: 12px 0 34px;
  }

  .hero {
    padding: 22px 20px;
    border-radius: 22px;
    gap: 18px;
    align-items: stretch;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(34px, 15vw, 48px);
    letter-spacing: -0.075em;
  }

  .hero-desc {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-card {
    min-width: 0;
    width: 100%;
    border-radius: 18px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-card strong {
    font-size: 20px;
    white-space: nowrap;
  }

  .hero-card span {
    margin-top: 0;
    text-align: right;
    font-size: 13px;
    line-height: 1.35;
  }

  .guide-panel,
  .upload-stack,
  .settings-strip,
  .status-card,
  .summary-grid,
  .toolbar,
  .content-grid,
  .table-card {
    margin-top: 12px;
  }

  .guide-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .guide-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 12px;
    letter-spacing: -0.04em;
  }

  .guide-box {
    padding: 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.58;
  }

  .guide-box ol,
  .guide-box ul {
    margin-left: 16px;
  }

  .upload-stack {
    gap: 10px;
  }

  .upload-panel {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
    gap: 16px;
  }

  .upload-copy {
    align-items: flex-start;
    gap: 12px;
  }

  .upload-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 15px;
    font-size: 23px;
  }

  .upload-copy h2 {
    font-size: 17px;
    line-height: 1.28;
  }

  .upload-copy p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.48;
  }

  .upload-button {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .settings-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mini-setting,
  .mask-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
  }

  .mini-setting input {
    width: 92px;
    height: 30px;
  }

  .status-card {
    padding: 15px;
    border-radius: 16px;
  }

  .status-card strong,
  .status-card p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .status-card button {
    width: 100%;
    border-radius: 13px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-item {
    padding: 13px 12px;
    border-radius: 16px;
  }

  .summary-item span {
    font-size: 12px;
  }

  .summary-item strong {
    margin-top: 5px;
    font-size: clamp(20px, 7vw, 25px);
    line-height: 1.12;
    word-break: keep-all;
  }

  .toolbar {
    position: static;
    padding: 12px;
    border-radius: 18px;
    gap: 9px;
  }

  .month-control {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
  }

  .month-control strong {
    min-width: 0;
    align-self: center;
    font-size: 17px;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filters input,
  .filters select,
  .switch-label {
    width: 100%;
    min-height: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .switch-label {
    justify-content: flex-start;
    font-size: 14px;
  }

  .view-toggle {
    width: 100%;
    padding: 4px;
    border-radius: 14px;
  }

  .view-toggle button {
    flex: 1 1 0;
    min-height: 40px;
    padding: 8px 7px;
    border-radius: 11px;
    font-size: 14px;
    white-space: nowrap;
  }

  .calendar-card,
  .detail-card,
  .table-card {
    border-radius: 18px;
  }

  .calendar-titleline {
    padding: 14px 12px 0;
    gap: 8px;
  }

  .meal-legend {
    gap: 5px 8px;
    font-size: 11px;
  }

  .legend-label {
    width: 100%;
  }

  .calendar-head {
    padding: 12px 8px 7px;
    font-size: 12px;
  }

  .calendar-grid {
    gap: 4px;
    padding: 0 8px 10px;
  }

  .day-cell {
    min-height: 78px;
    padding: 6px 5px;
    border-radius: 12px;
    gap: 5px;
  }

  .day-cell:hover {
    transform: none;
    box-shadow: none;
  }

  .day-cell.selected {
    box-shadow: 0 0 0 2px rgba(79, 124, 255, .18);
  }

  .day-top {
    gap: 4px;
  }

  .day-num {
    font-size: 13px;
  }

  .day-count {
    min-width: 20px;
    height: 20px;
    justify-content: center;
    padding: 0 5px;
    font-size: 0;
    border-radius: 999px;
  }

  .day-count::before {
    content: attr(data-count);
    font-size: 11px;
    font-weight: 950;
  }

  .person-list {
    gap: 3px;
  }

  .person-chip {
    width: 100%;
    min-width: 0;
    padding: 3px 5px;
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1.15;
  }

  .person-chip strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .person-chip span:last-child {
    display: none;
  }

  .more-text {
    font-size: 10.5px;
  }

  .card-line {
    padding: 5px;
    border-radius: 9px;
    gap: 2px;
  }

  .card-line .meal-label {
    max-width: 100%;
    padding: 1px 5px;
    font-size: 10px;
  }

  .card-line .meal-amount {
    font-size: 11px;
    line-height: 1.05;
  }

  .card-line .meal-meta {
    display: none;
  }

  .detail-card {
    padding: 16px;
    min-height: auto;
  }

  .detail-title {
    align-items: flex-start;
  }

  .detail-title h2 {
    font-size: 20px;
  }

  .detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .detail-mini {
    padding: 10px;
    border-radius: 13px;
  }

  .detail-mini strong {
    font-size: 16px;
    line-height: 1.25;
  }

  .detail-row,
  .card-detail-row,
  .empty-box,
  .meal-judgement {
    border-radius: 13px;
  }

  .detail-row-main,
  .card-row-main {
    align-items: flex-start;
  }

  .detail-row-main strong,
  .card-row-main strong {
    overflow-wrap: anywhere;
  }

  .detail-row-main span,
  .card-row-main span {
    flex: 0 0 auto;
  }

  .detail-row-sub {
    font-size: 12.5px;
  }

  .copy-day {
    border-radius: 13px;
  }

  .table-headline {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .table-headline h2 {
    font-size: 20px;
  }

  .table-headline p {
    font-size: 13px;
    line-height: 1.45;
  }

  #copyFilteredBtn,
  #copyCardBtn {
    width: 100%;
    border-radius: 13px;
  }

  .table-wrap {
    max-height: 62vh;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 11px 12px;
    font-size: 13px;
  }

  .toast {
    left: 8px;
    right: 8px;
    bottom: 14px;
    width: auto;
    transform: translateY(18px);
    border-radius: 16px;
    text-align: center;
    line-height: 1.4;
  }

  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .app-shell {
    width: min(100% - 12px, 1180px);
    padding-top: 8px;
  }

  .hero {
    padding: 19px 17px;
  }

  .hero-card {
    display: block;
  }

  .hero-card span {
    display: block;
    margin-top: 5px;
    text-align: left;
  }

  .guide-actions {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item {
    padding: 12px 10px;
  }

  .summary-item strong {
    font-size: 20px;
  }

  .calendar-head {
    padding-inline: 6px;
  }

  .calendar-grid {
    gap: 3px;
    padding-inline: 6px;
  }

  .day-cell {
    min-height: 72px;
    padding: 5px 4px;
    border-radius: 10px;
  }

  .day-num {
    font-size: 12px;
  }

  .day-count {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
  }

  .day-count::before {
    font-size: 10px;
  }

  .person-chip {
    padding: 3px 4px;
    font-size: 10px;
  }

  .card-line .meal-label {
    display: none;
  }

  .card-line .meal-amount {
    font-size: 10.5px;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }
}



.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hero-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(38, 59, 103, .14);
}

.hero-link.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.site-footer {
  margin-top: 24px;
  padding: 18px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--navy);
}

.site-footer a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hero-links {
    margin-top: 16px;
  }

  .hero-link {
    flex: 1 1 140px;
  }

  .site-footer {
    padding-top: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}


/* v0.3.6 스크롤 고정 상단바 + 모바일 체크박스 보정 */
.topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(229, 234, 242, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 26px rgba(30, 48, 80, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-brand {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--navy);
  white-space: nowrap;
}

.topbar-brand strong {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.topbar-brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.topbar-actions a,
.topbar-actions em {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-actions a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.topbar-actions a:first-child {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.topbar-actions em {
  font-style: normal;
  background: var(--blue-soft);
  color: var(--blue);
}

.switch-label input[type="checkbox"],
.mask-toggle input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--navy);
}

.filters .switch-label {
  justify-content: flex-start;
  gap: 10px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .topbar {
    top: 6px;
    margin-bottom: 10px;
    padding: 8px 9px;
    border-radius: 16px;
  }

  .topbar-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .topbar-brand strong {
    font-size: 14px;
  }

  .topbar-brand span {
    font-size: 10.5px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-actions a,
  .topbar-actions em {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .filters .switch-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .topbar-actions em {
    display: none;
  }

  .topbar-actions a {
    padding-inline: 7px;
  }
}


/* v0.3.7: 일자형 고정 상단바 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(229, 234, 242, .95);
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--navy);
  white-space: nowrap;
}

.topbar-brand strong {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.topbar-brand span {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.topbar-actions a,
.topbar-actions em {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-actions a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.topbar-actions a:first-child {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.topbar-actions em {
  font-style: normal;
  background: var(--blue-soft);
  color: var(--blue);
}

.app-shell {
  padding-top: 24px;
}

.site-footer {
  justify-content: center;
  padding-top: 18px;
  color: var(--muted);
}

.site-footer a {
  display: none;
}

@media (max-width: 640px) {
  .topbar {
    top: 0;
    padding: 0;
    border-radius: 0;
  }

  .topbar-inner {
    width: min(100% - 24px, 1180px);
    min-height: 48px;
  }

  .topbar-brand {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .topbar-brand strong {
    font-size: 14px;
  }

  .topbar-brand span {
    display: none;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-actions a,
  .topbar-actions em {
    min-height: 30px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 11px;
  }

  .topbar-actions em {
    display: none;
  }

  .app-shell {
    padding-top: 18px;
  }

  .site-footer {
    align-items: center;
    text-align: center;
  }
}


/* v0.3.8: 상단바 불투명화 + sticky 겹침 정리 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
  box-shadow: 0 1px 0 rgba(229, 234, 242, .95), 0 6px 18px rgba(30, 48, 80, .04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar-inner {
  min-height: 52px;
}

.toolbar {
  top: 64px;
  z-index: 40;
}

#helpSection {
  scroll-margin-top: 72px;
}

@media (max-width: 940px) {
  .toolbar {
    position: static;
    top: auto;
    z-index: auto;
  }
}

@media (max-width: 640px) {
  .topbar {
    background: #fff;
    box-shadow: 0 1px 0 rgba(229, 234, 242, .98), 0 5px 14px rgba(30, 48, 80, .04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar-inner {
    min-height: 50px;
  }

  #helpSection {
    scroll-margin-top: 66px;
  }
}


/* v0.3.13 — 정보 밀도 다이어트: 요약은 압축하고 캘린더를 주인공으로 */
.summary-grid {
  margin-top: 14px;
  gap: 10px;
}

.summary-item {
  min-height: 72px;
  border-radius: 15px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-item span {
  font-size: 12px;
  line-height: 1.2;
}

.summary-item strong {
  margin-top: 5px;
  font-size: 23px;
  line-height: 1.05;
}

.summary-item.summary-meal {
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
}

.summary-item.summary-alert {
  background: linear-gradient(180deg, #fffdfa, #fff8ea);
  border-color: #f2d79b;
}

.summary-item.summary-alert strong {
  color: #a46300;
}

.toolbar {
  margin-top: 16px;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.calendar-grid {
  gap: 6px;
  padding: 0 12px 12px;
}

.calendar-head {
  padding: 12px 12px 7px;
}

.day-cell {
  min-height: 126px;
  border-radius: 15px;
  padding: 9px;
  gap: 6px;
}

.day-count {
  padding: 3px 7px;
  font-size: 11px;
}

.person-list {
  gap: 4px;
}

.person-chip {
  padding: 4px 6px;
  border-radius: 9px;
  font-size: 11.5px;
}

.more-text {
  padding-left: 4px;
  font-size: 11px;
  color: #66758c;
}

.card-line {
  margin-top: auto;
  min-height: 30px;
  padding: 5px 6px;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  line-height: 1;
}

.card-line .meal-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-line .meal-label {
  flex: 0 0 auto;
  padding: 2px 5px;
  font-size: 10px;
}

.card-line .meal-amount {
  min-width: 0;
  font-size: 12px;
  overflow: visible;
  text-overflow: clip;
}

.card-line .meal-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.card-line .meal-meta {
  display: none;
}

.detail-card {
  padding: 18px;
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
  }

  .day-cell {
    padding: 7px;
  }

  .person-chip {
    font-size: 11px;
  }

  .card-line .meal-label {
    display: none;
  }
}

@media (max-width: 940px) {
  .summary-item {
    min-height: 68px;
    padding: 10px 12px;
  }

  .summary-item strong {
    font-size: 21px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-item {
    min-height: 64px;
  }

  .summary-item strong {
    font-size: 20px;
  }

  .card-line {
    padding: 4px 5px;
  }

  .card-line .meal-status {
    padding-inline: 5px;
  }
}

/* v0.3.14 — 도움말 모달 */
.topbar-help {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

body.modal-open {
  overflow: hidden;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 51, .46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.help-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(229, 234, 242, .92);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(23, 32, 51, .24);
  outline: none;
  overscroll-behavior: contain;
}

.help-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.help-kicker {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.help-modal-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  letter-spacing: -0.05em;
}

.help-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 12px;
  background: #f1f4f8;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
}

.help-close:hover {
  background: #e8edf4;
}

.help-quickflow {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  word-break: keep-all;
}

.help-quickflow span {
  color: var(--blue);
  font-weight: 950;
}

.help-intro {
  margin: 14px 2px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.help-accordion {
  display: grid;
  gap: 8px;
}

.help-accordion details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.help-accordion details[open] {
  border-color: #d6e0fb;
  box-shadow: 0 8px 24px rgba(30, 48, 80, .05);
}

.help-accordion summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 15px 46px 15px 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
  user-select: none;
}

.help-accordion summary::-webkit-details-marker {
  display: none;
}

.help-accordion summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.help-accordion details[open] summary::after {
  content: '−';
}

.help-detail-body {
  padding: 0 16px 16px;
  color: #536174;
  font-size: 13px;
  line-height: 1.68;
  word-break: keep-all;
}

.help-detail-body p {
  margin: 0 0 10px;
}

.help-detail-body ol {
  margin: 0;
  padding-left: 21px;
}

.help-detail-body li + li {
  margin-top: 7px;
}

.help-tip,
.help-warning {
  margin: 12px 0 0 !important;
  padding: 11px 12px;
  border-radius: 13px;
}

.help-tip {
  background: #f5f7fa;
}

.help-warning {
  background: var(--yellow-soft);
  color: #79520e;
}

.help-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.help-status-grid > div {
  padding: 11px;
  border-radius: 13px;
  background: #f8fafc;
}

.help-status-grid p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.help-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.help-status.ok {
  background: var(--green-soft);
  color: var(--green);
}

.help-status.warn {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.help-status.danger {
  background: var(--red-soft);
  color: var(--red);
}

.help-metrics {
  margin: 0;
  display: grid;
  gap: 0;
}

.help-metrics > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f5;
}

.help-metrics > div:last-child {
  border-bottom: 0;
}

.help-metrics dt {
  color: var(--navy);
  font-weight: 900;
}

.help-metrics dd {
  margin: 0;
}

@media (max-width: 620px) {
  .help-modal {
    padding: 10px;
    place-items: end center;
  }

  .help-modal-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px 16px 18px;
    border-radius: 22px;
  }

  .help-modal-head h2 {
    font-size: 24px;
  }

  .help-quickflow {
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
  }

  .help-quickflow span {
    transform: rotate(90deg);
    line-height: 1;
  }

  .help-status-grid {
    grid-template-columns: 1fr;
  }

  .help-metrics > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}


/* v0.3.15 — 달력 겹침 해소 + 메인 진입화면 압축 */
.hero {
  padding: 28px 30px;
  min-height: 150px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(44px, 5vw, 58px);
  line-height: .96;
}

.hero-desc {
  margin-top: 14px;
  font-size: 15px;
}

.hero-card.hero-flow {
  width: auto;
  min-width: 360px;
  max-width: 430px;
  padding: 17px 19px;
  background: linear-gradient(135deg, #294675, #36578d);
}

.hero-flow-kicker {
  margin: 0 0 9px !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  opacity: .76 !important;
}

.hero-flow-steps {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-flow-steps > span {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 850;
  opacity: 1 !important;
}

.hero-flow-steps b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 11px;
}

.hero-flow-steps i {
  font-style: normal;
  opacity: .55;
}

.hero-flow-steps small {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  font-size: 9px;
  font-weight: 900;
}

.upload-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.upload-panel {
  min-height: 142px;
  padding: 18px 20px;
  border-radius: 18px;
  align-items: center;
}

.upload-copy {
  gap: 13px;
  min-width: 0;
}

.upload-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  font-size: 21px;
}

.upload-copy h2 {
  font-size: 18px;
  line-height: 1.25;
}

.upload-copy p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.48;
}

.upload-button {
  flex: 0 0 auto;
  padding: 10px 13px;
  font-size: 13px;
  white-space: nowrap;
}

.optional-badge {
  display: inline-flex;
  vertical-align: 2px;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eaf6f0;
  color: #277357;
  font-size: 10px;
  font-weight: 900;
}

.settings-strip {
  margin-top: 10px;
}

/* 달력 하단 식비표시: 금액과 상태를 가로로 우겨넣지 않는다. */
.card-line {
  min-height: 42px;
  padding: 5px 7px 6px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}

.card-line .meal-main {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  gap: 4px;
}

.card-line .meal-label {
  flex: 0 0 auto;
}

.card-line .meal-amount {
  min-width: 0;
  max-width: 100%;
  font-size: 11.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-line .meal-status {
  align-self: flex-start;
  min-height: 16px;
  padding: 1px 5px;
  font-size: 9px;
  line-height: 1.2;
}

.day-cell {
  min-width: 0;
}

.person-chip {
  min-width: 0;
}

.person-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  .upload-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .upload-button { align-self: flex-end; }
  .hero-card.hero-flow { min-width: 330px; }
}

@media (max-width: 940px) {
  .hero-card.hero-flow {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .upload-stack {
    grid-template-columns: 1fr;
  }
  .upload-panel {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }
  .card-line .meal-label { display: inline-flex; }
}

@media (max-width: 620px) {
  .hero { padding: 22px; min-height: auto; }
  .hero-copy h1 { font-size: 42px; }
  .hero-flow-steps {
    white-space: normal;
    flex-wrap: wrap;
  }
  .hero-flow-steps i { display: none; }
  .upload-panel {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
  }
  .upload-button { align-self: stretch; justify-content: center; }
  .card-line {
    min-height: 36px;
    padding: 4px 5px;
  }
  .card-line .meal-label { display: none; }
  .card-line .meal-amount { font-size: 10.5px; }
}

/* v0.3.16 — 개인정보 안내 + 세로형 드롭존 중심 첫 화면 */
.hero {
  padding: 28px 30px;
  min-height: 148px;
  align-items: center;
}

.hero-version {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  box-shadow: none;
}

.hero-version span {
  font-size: 11px;
  font-weight: 800;
}

.hero-version strong {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: -.02em;
}

.privacy-banner {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid #dce6f3;
  border-radius: 17px;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(30, 48, 80, .035);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #edf4ff;
  font-size: 16px;
}

.privacy-copy {
  min-width: 0;
}

.privacy-copy strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: -.02em;
}

.privacy-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  word-break: keep-all;
}

.privacy-copy b {
  color: #43536c;
  font-weight: 900;
}

.privacy-more,
.upload-help-link {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: #c4cedd;
  text-underline-offset: 3px;
}

.privacy-more {
  padding: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.upload-stack {
  display: block;
  margin-top: 16px;
}

.upload-stack .upload-panel {
  margin-top: 0;
}

.upload-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 22px;
  min-height: 166px;
  padding: 20px 22px;
  border: 1.5px dashed #cbd6e6;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(30, 48, 80, .05);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.upload-panel.card-upload {
  border-color: #cde3d9;
  background: rgba(251,255,253,.96);
}

.upload-panel.dragover {
  outline: none;
  border-color: #7da0ff;
  background: #f4f8ff;
  box-shadow: 0 0 0 4px rgba(79, 124, 255, .10), 0 14px 30px rgba(30, 48, 80, .06);
  transform: translateY(-1px);
}

.upload-panel.card-upload.dragover {
  border-color: #67b894;
  background: #f2fbf7;
  box-shadow: 0 0 0 4px rgba(47, 158, 109, .10), 0 14px 30px rgba(30, 48, 80, .06);
}

.upload-panel.has-file {
  border-style: solid;
}

.upload-panel-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.upload-step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.card-upload .upload-step {
  background: #2b7658;
}

.upload-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  font-size: 21px;
}

.card-upload .upload-icon {
  background: var(--green-soft);
}

.upload-copy {
  display: block;
  min-width: 0;
}

.upload-titleline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.upload-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.04em;
}

.upload-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.upload-help-link {
  margin-top: 6px;
  padding: 0;
  font-size: 11.5px;
}

.drop-action {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid #e3e9f2;
  border-radius: 16px;
  background: #fbfcfe;
  text-align: center;
}

.card-upload .drop-action {
  border-color: #e0eee7;
  background: #fbfefc;
}

.drop-title {
  display: block;
  max-width: 100%;
  color: #3d4a61;
  font-size: 13px;
  line-height: 1.35;
  word-break: keep-all;
}

.drop-active { display: none; }
.upload-panel.dragover .drop-default { display: none; }
.upload-panel.dragover .drop-active { display: inline; color: var(--blue); }
.card-upload.dragover .drop-active { color: var(--green); }

.drop-or {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
}

.upload-button {
  min-width: 112px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  white-space: nowrap;
}

.upload-button.secondary {
  background: #2b7658;
}

.upload-formats {
  color: #8a95a8;
  font-size: 10.5px;
  font-weight: 750;
}

.step-connector {
  height: 22px;
  display: grid;
  place-items: center;
  color: #9ca8b8;
  font-size: 13px;
  line-height: 1;
}

.status-card {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: -2px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce8e1;
  border-radius: 14px;
  background: #f7fcf9;
  box-shadow: none;
}

.status-check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.status-card > div {
  min-width: 0;
}

.status-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2c3a50;
  font-size: 12.5px;
}

.status-card p {
  margin: 2px 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.status-card button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dfe5ed;
  color: var(--navy);
  font-size: 11px;
  white-space: nowrap;
  box-shadow: none;
}

.settings-strip {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 20px rgba(30, 48, 80, .03);
}

.settings-heading {
  min-width: 0;
}

.settings-heading span {
  display: block;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 950;
}

.settings-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.settings-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-setting,
.mask-toggle {
  min-height: 36px;
  padding: 6px 9px;
  box-shadow: none;
  background: #fff;
}

@media (max-width: 940px) {
  .hero {
    align-items: flex-start;
  }

  .hero-version {
    align-self: flex-start;
  }

  .upload-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .drop-action {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .hero {
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-desc {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-version {
    padding: 7px 9px;
  }

  .privacy-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px;
  }

  .privacy-more {
    grid-column: 2;
    justify-self: start;
    padding: 1px 0;
  }

  .upload-panel {
    padding: 15px;
    border-radius: 17px;
  }

  .upload-panel-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
  }

  .upload-step {
    grid-row: 1;
    width: 26px;
    height: 26px;
  }

  .upload-icon {
    display: none;
  }

  .upload-copy {
    grid-column: 2;
  }

  .upload-copy h2 {
    font-size: 17px;
  }

  .drop-action {
    padding: 14px 12px;
  }

  .upload-button {
    align-self: auto;
    width: min(100%, 240px);
    justify-content: center;
  }

  .status-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .status-card button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .status-card strong,
  .status-card p {
    white-space: nowrap;
  }

  .settings-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .settings-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mini-setting,
  .mask-toggle {
    width: 100%;
    justify-content: center;
  }
}


/* v0.3.17 — 업로드 카드 안에 다운로드 경로를 바로 노출 */
.download-route {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #526079;
  font-size: 11.5px;
  line-height: 1.45;
}

.route-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #dbe5f3;
  border-radius: 999px;
  background: #f1f6ff;
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.card-route .route-label {
  border-color: #d8ebe2;
  background: #eff9f4;
  color: #27684f;
}

.route-path {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 5px;
}

.route-path b {
  color: #45536a;
  font-weight: 800;
  letter-spacing: -.015em;
  word-break: keep-all;
}

.card-route .route-path b {
  color: #456354;
}

.route-path i {
  color: #a8b2c1;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 620px) {
  .download-route {
    margin-top: 9px;
    align-items: flex-start;
    gap: 7px;
    font-size: 11px;
  }

  .route-label {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .route-path {
    padding-top: 2px;
    gap: 2px 4px;
  }
}


/* v0.3.18 — 가상자료 체험 모드 */
.hero-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.hero-actions > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.demo-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #cdd9ee;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(38, 59, 103, .08);
}

.demo-button:hover {
  border-color: #9fb4d9;
  background: #f8fbff;
}

.demo-button.active {
  border-color: #b9c9e4;
  background: var(--blue-soft);
}

.demo-play {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 9px;
  padding-left: 2px;
}

.demo-button em {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #6a7486;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.demo-banner {
  margin-top: 18px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #cfdcf1;
  border-radius: 17px;
  background: #f5f8ff;
}

.demo-banner-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.demo-mode-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.demo-banner strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.demo-banner p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

#exitDemoBtn {
  flex: 0 0 auto;
  border: 1px solid #cbd6e7;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  padding: 9px 12px;
  font-weight: 900;
}

@media (max-width: 620px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-button {
    width: 100%;
    justify-content: center;
  }

  .hero-actions > small {
    text-align: center;
  }

  .demo-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-banner-copy {
    align-items: flex-start;
  }

  #exitDemoBtn {
    width: 100%;
  }
}

/* v0.3.20 — 업로드 자료 초기화 */
.data-reset-row {
  margin: 10px 4px 2px;
  display: flex;
  justify-content: flex-end;
}

.data-reset-button {
  appearance: none;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #778296;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.data-reset-button span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #53617a;
  font-size: 14px;
  line-height: 1;
  transition: background .15s ease, transform .15s ease;
}

.data-reset-button:hover {
  border-color: #e1e6ee;
  background: #f7f9fc;
  color: #4f5d73;
}

.data-reset-button:hover span {
  background: #e7edf5;
  transform: rotate(-18deg);
}

.data-reset-button:focus-visible {
  outline: 3px solid rgba(52, 84, 143, .16);
  outline-offset: 2px;
}

.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.reset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 48, .38);
  backdrop-filter: blur(2px);
}

.reset-modal-panel {
  position: relative;
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid #e0e5ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(22, 31, 48, .18);
  text-align: center;
  outline: none;
}

.reset-modal-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f4f8;
  color: #526079;
  font-size: 20px;
  font-weight: 900;
}

.reset-modal-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  letter-spacing: -.02em;
}

.reset-modal-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.reset-modal-panel p strong {
  color: #4e5b70;
}

.reset-modal-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.reset-modal-actions button {
  appearance: none;
  min-height: 42px;
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.reset-cancel {
  border: 1px solid #d8dfe9;
  background: #fff;
  color: #5e697a;
}

.reset-cancel:hover {
  background: #f7f9fc;
}

.reset-confirm {
  border: 1px solid #e3b9b9;
  background: #fff7f7;
  color: #a44343;
}

.reset-confirm:hover {
  background: #fff0f0;
  border-color: #ca9090;
}

@media (max-width: 620px) {
  .data-reset-row {
    margin-top: 8px;
  }

  .reset-modal-panel {
    padding: 21px 18px;
  }
}

/* v0.3.22 — Work 파비콘 반영 + 모바일 캘린더 최종 보정 */
@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 12px, 1180px);
    padding-top: 14px;
  }

  .hero {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .hero-version {
    align-self: flex-start;
  }

  .calendar-card {
    border-radius: 16px;
  }

  .calendar-titleline {
    padding: 12px 9px 0;
    gap: 7px;
  }

  .calendar-titleline strong {
    font-size: 15px;
  }

  .meal-legend {
    gap: 4px 7px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .calendar-head {
    padding: 10px 5px 6px;
    font-size: 11px;
  }

  .calendar-grid {
    gap: 3px;
    padding: 0 5px 8px;
  }

  .day-cell {
    width: 100%;
    min-width: 0;
    height: 120px;
    min-height: 120px;
    padding: 5px 4px;
    border-radius: 11px;
    gap: 4px;
    overflow: hidden;
  }

  .day-cell:hover {
    transform: none;
    box-shadow: none;
  }

  .day-cell.selected {
    box-shadow: inset 0 0 0 1px rgba(79, 124, 255, .34), 0 0 0 1px rgba(79, 124, 255, .12);
  }

  .day-top {
    min-width: 0;
    min-height: 18px;
    gap: 2px;
  }

  .day-num {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 18px;
  }

  .day-count {
    flex: 0 0 auto;
    min-width: 18px;
    max-width: 24px;
    height: 18px;
    padding: 0 4px;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    font-size: 0 !important;
    line-height: 18px;
    white-space: nowrap;
  }

  .day-count::before {
    content: attr(data-count);
    display: block;
    font-size: 9.5px;
    font-weight: 950;
    line-height: 18px;
  }

  .person-list {
    min-width: 0;
    min-height: 0;
    gap: 2px;
    overflow: hidden;
  }

  .person-chip {
    width: 100%;
    min-width: 0;
    min-height: 17px;
    padding: 2px 4px;
    border-radius: 7px;
    gap: 2px;
    font-size: 9.5px;
    line-height: 1.25;
    overflow: hidden;
  }

  .person-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .person-chip span:last-child {
    display: none;
  }

  .more-text {
    padding-left: 2px;
    font-size: 9px;
    line-height: 1.1;
  }

  .card-line {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    margin-top: auto;
    padding: 3px 3px 4px;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
  }

  .card-line .meal-main {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .card-line .meal-label {
    display: none;
  }

  .card-line .meal-amount {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-line .meal-status {
    align-self: center;
    min-height: 14px;
    max-width: 100%;
    padding: 1px 4px;
    font-size: 8.5px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 420px) {
  .app-shell {
    width: min(100% - 8px, 1180px);
  }

  .calendar-titleline {
    padding-inline: 7px;
  }

  .calendar-head {
    padding-inline: 3px;
  }

  .calendar-grid {
    gap: 2px;
    padding-inline: 3px;
  }

  .day-cell {
    height: 116px;
    min-height: 116px;
    padding-inline: 3px;
    border-radius: 9px;
  }

  .day-num {
    font-size: 11.5px;
  }

  .day-count {
    min-width: 17px;
    max-width: 21px;
    padding-inline: 3px;
  }

  .day-count::before {
    font-size: 9px;
  }

  .person-chip {
    padding-inline: 3px;
    font-size: 9px;
  }

  .card-line .meal-amount {
    font-size: 8.5px;
  }

  .card-line .meal-status {
    font-size: 8px;
    padding-inline: 3px;
  }
}
