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: 72px 12px 16px;
  background: rgba(36, 0, 80, .55);
  font-family: "DM Sans", sans-serif;
}
.ix-cal-back.open { display: flex; }
.ix-cal-sheet {
  width: min(460px, 100%);
  max-height: min(92dvh, 860px);
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, #4b12b8 0 92px, #fff 92px);
  color: #2a1248;
  padding: 0;
  border: 3px solid #6a22d6;
  box-shadow: 0 18px 50px rgba(61, 1, 145, .35);
}
.ix-cal-band { position: relative; display: flex; align-items: flex-start; justify-content: space-between; min-height: 78px; padding: 12px 14px 0; }
.ix-cal-logo { height: 28px; width: auto; object-fit: contain; }
.ix-cal-art { width: 86px; height: 86px; object-fit: contain; margin-top: -6px; }
.ix-cal-body { margin: 0 8px 8px; padding: 12px 10px 10px; border-radius: 22px; background: #fff; }
.ix-cal-mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #efe6ff; color: #3D0191; }
.ix-cal-mark svg, .ix-cal-month svg, .ix-cal-badge svg { width: 18px; height: 18px; }
.ix-cal-month { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; background: linear-gradient(100deg, #3D0191, #800182); color: #fff; }
.ix-cal-badge { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.16); color: #fff; }
.ix-cal-foot-side img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.ix-cal-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.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 {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
  font-size: 18px;
  cursor: pointer;
}
.ix-cal-nav button {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 14px;
  background: #f4efff !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: 16px;
  font-weight: 700;
  color: #fff;
}
.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: 700;
}
.ix-cal-week .sun, .ix-cal-week .sat { color: #DB334B; }
.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.paid { background: #e7f8ee !important; }
.ix-day.paid > span { color: #078646; }
.ix-day.closed { background: #fdecef !important; }
.ix-day.closed > span { color: #DB334B; }
.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 {
  background: #3D0191 !important;
  box-shadow: 0 0 0 2px #F7C600;
}
.ix-day.on > span, .ix-day.on small { color: #fff !important; }
.ix-day.on.paid small { color: #b6f3cf !important; }
.ix-cal-foot {
  display: grid;
  grid-template-columns: 1.3fr 1px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(100deg, #3D0191, #800182);
  color: #fff;
}
.ix-cal-foot-main, .ix-cal-foot-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ix-cal-foot-main span,
#ix-cal-note {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.ix-cal-foot b,
.ix-cal-foot-main small { display: block; }
.ix-cal-foot b {
  margin-top: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}
#ix-cal-day.is-profit, #ix-cal-sum.is-profit { color: #3DDC7A; }
.ix-cal-foot-main small,
.ix-cal-foot-side span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.ix-cal-foot-side { justify-content: flex-end; text-align: right; }
.ix-cal-split { width: 1px; height: 36px; background: rgba(255,255,255,.28); }
#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 { padding: 70px 8px 12px; align-items: flex-start; }
  .ix-cal-sheet { width: min(460px, 100%); }
  .ix-day { min-height: 52px; border-radius: 12px; }
  .ix-day small { font-size: 9px; }
  .ix-cal-foot b { font-size: 15px; }
}
