body[data-page="home"] .income-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  min-width: 0;
}
body[data-page="home"] .income-actions .pill-btn {
  grid-column: auto !important;
  width: 100% !important;
  justify-self: stretch !important;
  white-space: normal;
  min-height: 42px;
}
body[data-page="home"] .ix-cal-btn {
  background: linear-gradient(115deg, #3D0191, #800182);
  color: #fff;
  box-shadow: 0 3px 8px #3d019140;
}
body.ix-cal-lock { overflow: hidden; }
.ix-cal-back {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 16px 16px;
  background: rgba(36, 0, 95, .45);
  font-family: "DM Sans", sans-serif;
}
.ix-cal-back.open { display: flex; }
.ix-cal-sheet {
  width: min(440px, 100%);
  max-height: min(92dvh, 820px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  color: #3D0191;
  padding: 16px 14px 14px;
  box-shadow: 0 18px 50px #3d019133;
}
.ix-cal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ix-cal-top h2 {
  margin: 0;
  font-family: "DM Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  color: #3D0191;
}
.ix-cal-top p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; color: #8d74aa; }
.ix-cal-x,
.ix-cal-nav button {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 14px;
  background: #F3EEF8 !important;
  color: #3D0191 !important;
  font-size: 22px;
  font-weight: 500 !important;
  line-height: 1;
  cursor: pointer;
}
.ix-cal-nav {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
}
.ix-cal-nav strong {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #3D0191;
}
.ix-cal-week, .ix-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}
.ix-cal-week { margin-bottom: 8px; }
.ix-cal-week span {
  text-align: center;
  font-size: 12px;
  color: #8d74aa;
  font-weight: 500;
}
.ix-day {
  min-height: 64px;
  padding: 6px 2px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  background: #F4F0FA !important;
  color: #3D0191 !important;
  cursor: pointer;
  font-family: "DM Sans", sans-serif !important;
}
.ix-day > span {
  font-size: 14px;
  font-weight: 650 !important;
  line-height: 1;
  color: #3D0191;
}
.ix-day small {
  max-width: 100%;
  font-size: 10px;
  font-weight: 650 !important;
  line-height: 1.1;
  color: #078646;
  white-space: nowrap;
}
.ix-day.future small { color: #b7a4cf; font-weight: 600 !important; }
.ix-day .x {
  color: #DB334B !important;
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1;
}
.ix-day.empty { background: transparent !important; cursor: default; min-height: 0; }
.ix-day.on { box-shadow: inset 0 0 0 2px #3D0191; }
.ix-cal-foot {
  display: grid;
  grid-template-columns: 1fr 1px auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #F4F0FA;
}
.ix-cal-foot-main span,
#ix-cal-note {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #8d74aa;
}
.ix-cal-foot b,
.ix-cal-foot-main small {
  display: block;
}
.ix-cal-foot b {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #3D0191;
}
#ix-cal-day.is-profit { color: #078646; }
.ix-cal-foot-main small,
.ix-cal-foot-side span {
  font-size: 12px;
  font-weight: 500;
  color: #8d74aa;
}
.ix-cal-foot-side { text-align: right; }
.ix-cal-split { width: 1px; height: 36px; background: #ddd0ea; }
#ix-cal-note { text-align: right; white-space: nowrap; }
#ix-cal-note.is-closed { color: #DB334B; }
@media (min-width: 761px) {
  .ix-day { min-height: 72px; }
  .ix-day small { font-size: 11px; }
}
@media (max-width: 760px) {
  body[data-page="home"] .income-actions { grid-template-columns: 1fr; }
  .ix-cal-back {
    position: fixed !important;
    top: var(--ix-head, 64px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1400 !important;
    padding: 8px 0 0;
    background: #fff;
    align-items: stretch;
  }
  .ix-cal-sheet {
    width: 100%;
    max-height: 100%;
    border-radius: 18px 18px 0 0;
    box-shadow: none;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .ix-cal-top h2 { font-size: 24px !important; }
  .ix-day { min-height: 66px; border-radius: 14px; }
  .ix-day small { font-size: 10px; }
  .ix-cal-foot b { font-size: 26px; }
}
