:root {
  --jims-fav-pink: #ec469d;
  --jims-fav-pink-dark: #c83281;
  --jims-fav-purple: #7445c9;
  --jims-fav-ink: #30243c;
  --jims-fav-muted: #716577;
  --jims-fav-line: #eadce7;
  --jims-fav-soft: #fff7fc;
}

/* v5.21.2: front-page-only free PR notices from idol management teams */
.jims-free-pr {
  align-items: center;
  background: linear-gradient(90deg, #fff7fc, #f8f4ff);
  border: 1px solid var(--jims-fav-line);
  border-radius: 13px;
  color: var(--jims-fav-ink);
  display: grid;
  gap: 9px;
  grid-template-columns: auto auto minmax(0, 1fr);
  margin: 22px 0;
  overflow: hidden;
  padding: 9px 12px;
}

.jims-free-pr__label {
  background: var(--jims-fav-pink-dark);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.jims-free-pr__caption {
  color: #6c5d72;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.jims-free-pr__viewport {
  height: 28px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.jims-free-pr__track {
  align-items: initial !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  color: #5e3a88 !important;
  display: inline-block !important;
  font-size: 13px;
  font-weight: 900;
  height: 28px !important;
  left: 0;
  line-height: 28px !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: absolute;
  text-decoration: none !important;
  top: 0;
  width: max-content !important;
  white-space: nowrap;
}

.jims-free-pr__track.is-running {
  animation: jims-free-pr-scroll var(--jims-free-pr-duration, 16s) linear 1;
}

.jims-free-pr:hover .jims-free-pr__track,
.jims-free-pr:focus-within .jims-free-pr__track,
.jims-free-pr.is-interacting .jims-free-pr__track {
  animation-play-state: paused;
  text-decoration: underline !important;
}

@keyframes jims-free-pr-scroll {
  from { left: 100%; transform: translateX(0); }
  to { left: 0; transform: translateX(-100%); }
}

@media (max-width: 620px) {
  .jims-free-pr {
    gap: 7px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 9px;
  }
  .jims-free-pr__caption { display: none; }
  .jims-free-pr__track { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .jims-free-pr__track.is-static {
    left: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
  }
}

/* v5.20.2: DBの使い方画像とお気に入り手帳の説明 */
.jidb-home-v2 .jims-favorites-front-button.is-favorites-featured {
  background: linear-gradient(135deg, #ec469d, #7445c9) !important;
  border-color: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.jims-howto-phone {
  position: relative;
}

.jims-howto-marker {
  align-items: center;
  background: linear-gradient(135deg, #ec469d, #c83281);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(70, 26, 72, .24);
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  width: 32px;
  z-index: 2;
}

.jims-howto-marker.is-1 { left: 2%; top: 1%; }
.jims-howto-marker.is-2 { left: 2%; top: 7.2%; }
.jims-howto-marker.is-3 { left: 2%; top: 27.8%; }
.jims-howto-marker.is-4 { right: 2%; top: 48%; }

.jims-favorites-howto {
  align-items: start;
  background: linear-gradient(135deg, #fff7fc, #f6f2ff);
  border: 1px solid #e7c7df;
  border-radius: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  margin-top: 28px;
  padding: 24px;
}

.jims-favorites-howto__visual img {
  border: 1px solid #eadce7;
  border-radius: 18px;
  display: block;
  height: auto;
  width: 100%;
}

.jims-favorites-howto__visual small {
  color: var(--jims-fav-muted);
  display: block;
  font-size: 11px;
  margin-top: 6px;
  text-align: center;
}

.jims-favorites-howto__body h3 {
  color: var(--jims-fav-ink);
  font-size: 23px;
  line-height: 1.45;
  margin: 5px 0 10px;
}

.jims-favorites-howto__body > p {
  color: #65576d;
  line-height: 1.8;
}

.jims-favorites-howto__steps {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.jims-favorites-howto__steps li {
  align-items: start;
  background: #fff;
  border: 1px solid var(--jims-fav-line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 11px 12px;
}

.jims-favorites-howto__steps li > b {
  align-items: center;
  background: var(--jims-fav-pink);
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.jims-favorites-howto__steps strong {
  display: block;
  margin-bottom: 2px;
}

.jims-favorites-howto__counts {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jims-favorites-howto__counts span {
  background: #fff;
  border: 1px solid var(--jims-fav-line);
  border-radius: 999px;
  font-size: 11px;
  padding: 7px 8px;
  text-align: center;
}

.jims-favorites-howto__counts b {
  color: var(--jims-fav-purple);
  font-size: 14px;
}

.jims-favorites-howto__body .jims-favorites-howto__note {
  font-size: 11px;
  margin: 10px 0 14px;
}

.jims-favorites-howto__button {
  background: linear-gradient(135deg, var(--jims-fav-pink), var(--jims-fav-purple)) !important;
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  padding: 11px 20px;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff !important;
}

@media (max-width: 760px) {
  .jims-favorites-howto {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .jims-favorites-howto__body h3 {
    font-size: 20px;
  }

  .jims-howto-marker {
    border-width: 2px;
    font-size: 12px;
    height: 28px;
    width: 28px;
  }
}

.jims-favorite-heart-wrap {
  display: inline-flex;
  margin-left: 8px;
  vertical-align: middle;
}

.jims-favorite-heart {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 2px solid #f0bad6;
  border-radius: 50%;
  color: var(--jims-fav-pink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 24px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  width: 42px;
}

.jims-favorite-heart:hover,
.jims-favorite-heart:focus-visible {
  background: #fff0f8;
  border-color: var(--jims-fav-pink);
  outline: 3px solid rgba(236, 70, 157, .18);
  transform: translateY(-1px);
}

.jims-favorite-heart.is-active {
  background: var(--jims-fav-pink);
  border-color: var(--jims-fav-pink);
  color: #fff;
}

.jims-result-item .jims-member-name {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.jims-entry-guide .jims-favorites-guide {
  margin: 26px 0 18px;
}

.jims-favorites-guide,
.jims-favorites-front-guide {
  align-items: center;
  background: linear-gradient(135deg, #fff8fc, #f8f4ff);
  border: 1px solid #edcce0;
  border-radius: 20px;
  color: var(--jims-fav-ink);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  padding: 22px 24px;
}

.jims-favorites-guide__icon,
.jims-favorites-front-guide__heart {
  align-items: center;
  background: #ffe6f3;
  border-radius: 50%;
  color: var(--jims-fav-pink);
  display: flex;
  font-size: 26px;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.jims-favorites-guide h3,
.jims-favorites-front-guide h2 {
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 4px;
}

.jims-favorites-guide p,
.jims-favorites-front-guide p {
  color: #65576d;
  font-size: 13px;
  margin: 0;
}

.jims-favorites-guide__link,
.jims-favorites-front-guide > a {
  background: linear-gradient(135deg, var(--jims-fav-pink), var(--jims-fav-purple));
  border-radius: 999px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  padding: 11px 18px;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.jims-favorites-guide--compact {
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 17px 20px;
}

/* DB入口では、直前の「〜から探す」枠と幅・上下間隔を揃える */
body.jims-db-entry-page .jims-entry-guide > .jims-favorites-guide--compact {
  box-sizing: border-box !important;
  margin: 20px 50px 18px !important;
  width: calc(100% - 100px) !important;
}

.jims-favorites-guide--compact p {
  color: var(--jims-fav-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.jims-favorites-app__hero .jims-favorites-app__storage-note {
  font-size: 12px;
  margin-top: 7px;
  opacity: .78;
}

.jidb-home-v2 .jims-favorites-front-guide {
  margin: 26px 0 0;
}

.jidb-home-v2 .jims-ranking-front-guide {
  margin-top: 18px;
}

.jidb-home-v2 .jims-today-pick-front-guide {
  align-items: start;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
}

.jidb-home-v2 .jims-front-news {
  margin: 26px 0 0;
}

.jims-front-news__list {
  border-top: 1px solid #ecdbe7;
  margin-top: 18px;
}

.jims-front-news__item {
  border-bottom: 1px solid #ecdbe7;
  padding: 0;
  position: relative;
  z-index: 2;
}

.jims-front-news__item > a {
  align-items: baseline;
  color: var(--jims-fav-ink) !important;
  display: grid;
  gap: 14px;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  padding: 14px 4px;
  pointer-events: auto;
  text-decoration: none !important;
  width: 100%;
}

.jims-front-news__item time {
  color: #806f88;
  font-size: 13px;
  font-weight: 700;
}

.jims-front-news__title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
}

.jims-front-news__arrow {
  color: var(--jims-fav-pink-dark);
  font-size: 18px;
  font-weight: 900;
}

.jims-front-news__item > a:hover,
.jims-front-news__item > a:focus-visible {
  background: rgba(236, 70, 157, .05);
  border-radius: 8px;
  color: var(--jims-fav-pink-dark);
  outline: 2px solid rgba(236, 70, 157, .2);
}

.jims-front-news__all {
  color: var(--jims-fav-pink-dark) !important;
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  margin-top: 17px;
  text-decoration: none !important;
}

.jims-ranking-front-guide .jims-favorites-front-guide__heart {
  background: #efe7ff;
  color: var(--jims-fav-purple);
}

.jims-today-pick-front-guide .jims-favorites-front-guide__heart {
  background: #efe7ff;
  color: var(--jims-fav-purple);
  font-size: 22px;
  height: 46px;
  width: 46px;
}

.jims-today-pick-front-guide__body {
  min-width: 0;
}

.jims-today-pick-front-guide__group {
  color: var(--jims-fav-ink);
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.jims-today-pick-front-guide__members {
  border-top: 1px solid #ead8e5;
  padding-top: 7px;
}

.jims-today-pick-front-guide__members-label {
  color: #57445f;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.jims-today-pick-front-guide__member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jims-today-pick-front-guide__member-list li {
  color: #4f4255;
  font-size: 13px;
  line-height: 1.65;
}

.jims-today-pick-front-guide__member-list li:not(:last-child)::after {
  color: #b49cab;
  content: "・";
  margin-left: 7px;
}

.jims-today-pick-front-guide__member-list li.is-more {
  color: #806f88;
  font-weight: 700;
}

.jims-today-pick-front-guide > a {
  padding: 9px 15px;
}

.jims-today-pick-front-guide__groups {
  display: grid;
  gap: 10px;
}

.jims-today-pick-front-guide__group-row {
  align-items: center;
  border-top: 1px solid #ead8e5;
  display: grid;
  gap: 8px 16px;
  grid-template-columns: minmax(160px, .7fr) minmax(0, 1.8fr) auto;
  padding-top: 10px;
}

.jims-today-pick-front-guide__group-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.jims-today-pick-front-guide__group,
.jims-today-pick-front-guide__member-list a {
  color: #1767a7 !important;
  font-weight: 900;
  text-decoration: underline !important;
}

.jims-today-pick-front-guide__detail {
  background: var(--jims-fav-purple);
  border-radius: 999px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none !important;
  white-space: nowrap;
}

.jims-today-pick-front-guide.is-compact {
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.jims-today-pick-front-guide.is-compact h2 {
  font-size: 18px;
  margin-bottom: 7px;
}

.jims-today-pick-front-guide.is-compact .jims-today-pick-front-guide__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jims-today-pick-front-guide.is-compact .jims-today-pick-front-guide__group-row {
  align-items: center;
  background: #fff;
  border: 1px solid #ead8e5;
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  padding: 7px 11px;
}

.jims-today-pick-front-guide.is-compact .jims-today-pick-front-guide__group {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.jims-today-pick-front-guide__arrow {
  color: #7651c9;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.jims-front-panel {
  background: linear-gradient(135deg, #fff8fc, #f7f4ff);
  border: 1px solid #ead6e6;
  border-radius: 22px;
  box-sizing: border-box;
  color: var(--jims-fav-ink);
  margin: 18px 0 0;
  padding: clamp(18px, 3vw, 28px);
}

.jims-front-panel * {
  box-sizing: border-box;
}

.jims-front-panel > header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.jims-front-panel > header > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.jims-front-panel h2,
.jims-front-panel h3,
.jims-front-panel p {
  margin-top: 0;
}

.jims-front-panel h2 {
  font-size: clamp(21px, 3vw, 28px);
  margin-bottom: 0;
}

.jims-front-panel > header p {
  color: #75667e;
  font-size: 13px;
  margin-bottom: 0;
}

.jims-front-panel__icon {
  align-items: center;
  background: #ffe9f4;
  border-radius: 10px;
  color: var(--jims-fav-pink-dark);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

/* トップでは予定と週間まとめを短い導線だけにし、一覧は各詳細ページで表示する。 */
.jims-front-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
}

.jims-front-summary-grid .jims-front-summary-card {
  height: 100%;
  margin: 0;
}

.jims-front-summary-card {
  overflow: hidden;
  padding: 0;
}

.jims-front-summary-card > a {
  align-items: center;
  color: var(--jims-fav-ink) !important;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  height: 100%;
  padding: 13px 15px;
  text-decoration: none !important;
  transition: background-color .18s ease, transform .18s ease;
}

.jims-front-summary-card > a:hover,
.jims-front-summary-card > a:focus-visible {
  background: rgba(255, 255, 255, .72);
}

.jims-front-summary-card > a:focus-visible {
  outline: 3px solid rgba(117, 63, 165, .28);
  outline-offset: -3px;
}

.jims-front-summary-card__body {
  min-width: 0;
}

.jims-front-summary-card__body h2 {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.35;
  margin: 0 0 5px;
}

.jims-front-summary-card__body p {
  display: none;
}

.jims-front-summary-card__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jims-front-summary-card__counts > .is-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jims-front-summary-card__counts > .is-narrow {
  display: none;
}

.jims-front-summary-card__counts b {
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 999px;
  color: #754660;
  font-size: 11px;
  line-height: 1.2;
  padding: 6px 10px;
}

.jims-front-summary-card__arrow {
  color: var(--jims-fav-purple);
  font-size: 11px;
  grid-column: 2;
  white-space: nowrap;
}

.jims-front-summary-card__arrow .is-narrow {
  display: none;
}

.jims-front-schedule__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jims-front-schedule__column,
.jims-front-weekly__cards > article {
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 15px;
  overflow: hidden;
}

.jims-front-schedule__column h3 {
  background: #fff0f7;
  color: #a42e68;
  font-size: 17px;
  margin: 0;
  padding: 12px 15px;
}

.jims-front-schedule__column ul,
.jims-front-weekly__names {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jims-front-schedule__column li {
  align-items: center;
  border-bottom: 1px solid #f0e8ee;
  display: grid;
  gap: 8px;
  grid-template-columns: 72px auto minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.jims-front-schedule__column li:last-child {
  border-bottom: 0;
}

.jims-front-schedule__column time,
.jims-front-schedule__column b {
  font-size: 12px;
}

.jims-front-schedule__name a,
.jims-front-weekly__names a {
  color: #1767a7 !important;
  font-weight: 900;
  text-decoration: underline !important;
}

.jims-front-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  padding: 4px 8px;
  white-space: nowrap;
}

.jims-front-badge.is-girls {
  background: #ffe2f0;
  color: #a42e68;
}

.jims-front-badge.is-boys {
  background: #e9e5ff;
  color: #5d3fa5;
}

.jims-front-weekly__cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jims-front-weekly__cards > article {
  min-width: 0;
  padding: 15px;
}

.jims-front-weekly__cards h3 {
  color: #754660;
  font-size: 13px;
  line-height: 1.45;
  min-height: 2.9em;
}

.jims-front-weekly__cards > article > strong {
  color: var(--jims-fav-purple);
  display: block;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.jims-front-weekly__cards strong small {
  font-size: 12px;
  margin-left: 3px;
}

.jims-front-weekly__names {
  border-top: 1px solid #f0e8ee;
  padding-top: 8px;
}

.jims-front-weekly__names li {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.jims-front-weekly__names li + li {
  margin-top: 5px;
}

.jims-front-weekly__names small {
  color: #75667e;
  display: block;
  font-size: 10px;
}

.jims-front-weekly__names .is-more,
.jims-front-empty {
  color: #827687;
  font-size: 11px;
}

.jims-front-empty {
  margin: 0;
  padding: 14px;
}

.jims-front-weekly__gender p {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.jims-front-weekly__gender strong {
  color: var(--jims-fav-purple);
  font-size: 19px;
}

.jims-front-weekly > footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  margin-top: 18px;
}

.jims-front-weekly > footer a {
  color: #5d3fa5 !important;
  font-size: 13px;
  font-weight: 900;
}

.jims-front-weekly > footer .jims-front-weekly__button {
  background: linear-gradient(90deg, var(--jims-fav-pink), var(--jims-fav-purple));
  border-radius: 999px;
  color: #fff !important;
  padding: 10px 20px;
  text-decoration: none !important;
}

.jims-weekly-archive {
  color: var(--jims-fav-ink);
  margin: 0 auto;
  max-width: 1160px;
  padding-bottom: 55px;
}

.jims-weekly-archive__hero {
  background: linear-gradient(135deg, #fff0f7, #efefff);
  border-radius: 24px;
  margin-bottom: 24px;
  padding: clamp(26px, 5vw, 52px);
}

.jims-weekly-archive__hero > span {
  color: #a42e68;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.jims-weekly-archive__hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 6px 0 12px;
}

.jims-history-nav,
.jims-month-nav {
  align-items: center;
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 20px;
  padding: 9px;
}

.jims-history-nav a,
.jims-month-nav a {
  border-radius: 10px;
  color: #5d3fa5 !important;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none !important;
}

.jims-history-nav a {
  flex: 1 1 0;
}

.jims-schedule-tabs {
  align-items: stretch;
}

.jims-schedule-tabs a {
  align-items: center;
  display: flex;
  justify-content: center;
}

.jims-history-nav a:hover,
.jims-history-nav a:focus-visible,
.jims-history-nav a.is-current,
.jims-month-nav a:hover,
.jims-month-nav a:focus-visible {
  background: #f5edff;
}

.jims-history-nav a.is-current {
  color: #7b3fb2 !important;
  box-shadow: inset 0 0 0 1px #d9bdea;
}

.jims-month-nav {
  justify-content: space-between;
}

.jims-month-nav strong {
  color: var(--jims-fav-ink);
  font-size: clamp(18px, 3vw, 24px);
  text-align: center;
}

.jims-archive-empty {
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 14px;
  color: #75667e;
  padding: 22px;
  text-align: center;
}

.jims-calendar {
  background: #eadde8;
  border: 1px solid #eadde8;
  border-radius: 18px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 22px;
  overflow: hidden;
}

.jims-calendar__weekday {
  background: #f7f2f8;
  color: #66576d;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 4px;
  text-align: center;
}

.jims-calendar__weekday.is-sun { color: #b63b6e; }
.jims-calendar__weekday.is-sat { color: #4f55a8; }

.jims-calendar__day {
  background: #fff;
  min-height: 116px;
  min-width: 0;
  padding: 8px;
}

.jims-calendar__day.is-empty {
  background: #faf8fa;
}

.jims-calendar__day.is-today {
  box-shadow: inset 0 0 0 2px #d63b8c;
}

.jims-calendar__day.has-events {
  background: #fffafd;
}

.jims-calendar__date {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.jims-calendar__date > a:first-child,
.jims-calendar__date > span:first-child {
  align-items: center;
  color: var(--jims-fav-ink) !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  text-decoration: none !important;
  width: 25px;
}

.jims-calendar__day.is-today .jims-calendar__date > :first-child {
  background: #d63b8c;
  border-radius: 50%;
  color: #fff !important;
}

.jims-calendar__count {
  background: #f4e9fb;
  border-radius: 999px;
  color: #6b3d92 !important;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 6px;
  text-decoration: none !important;
}

.jims-calendar__events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jims-calendar__events li {
  line-height: 1.35;
  margin: 0 0 5px;
  min-width: 0;
}

.jims-calendar__events li > span {
  background: #ffe8f3;
  border-radius: 5px;
  color: #9f3268;
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  margin-right: 4px;
  padding: 2px 4px;
}

.jims-calendar__events a {
  color: #1767a7 !important;
  font-size: 10px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline !important;
}

.jims-calendar__events .is-more a {
  color: #6b3d92 !important;
}

.jims-calendar-agenda {
  display: grid;
  gap: 12px;
}

.jims-calendar-agenda__day {
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.jims-calendar-agenda__day h2 {
  align-items: center;
  background: linear-gradient(135deg, #fff2f8, #f5f1ff);
  display: flex;
  font-size: 17px;
  justify-content: space-between;
  margin: 0;
  padding: 12px 16px;
}

.jims-calendar-agenda__day h2 span {
  color: #754660;
  font-size: 12px;
}

.jims-calendar-agenda__day ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jims-calendar-agenda__day li {
  align-items: center;
  border-top: 1px solid #f0e8ee;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px 16px;
}

.jims-calendar-agenda__name a {
  color: #1767a7 !important;
  font-weight: 900;
  text-decoration: underline !important;
}

.jims-calendar-agenda__day li > strong {
  color: #9f3268;
  font-size: 12px;
  white-space: nowrap;
}

.jims-weekly-archive .jims-front-weekly {
  margin-bottom: 20px;
}

.jims-history-calendar-agenda {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.jims-history-calendar__day {
  scroll-margin-top: 24px;
}

.jims-history-calendar__day:target .jims-front-weekly {
  box-shadow: 0 0 0 3px rgba(214, 59, 140, .22), 0 16px 34px rgba(45, 32, 56, .12);
}

.jims-history-calendar__back {
  display: inline-flex;
  margin: -8px 0 8px 16px;
  color: #6b3d92 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.jims-history-calendar__back:hover,
.jims-history-calendar__back:focus-visible {
  text-decoration: underline;
}

.jims-weekly-history {
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.jims-weekly-history > summary {
  align-items: center;
  color: var(--jims-fav-ink);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 17px 20px;
}

.jims-weekly-history > summary::-webkit-details-marker {
  display: none;
}

.jims-weekly-history > summary::after {
  color: var(--jims-fav-purple);
  content: '＋';
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

.jims-weekly-history[open] > summary {
  background: linear-gradient(135deg, #fff7fc, #f6f2ff);
  border-bottom: 1px solid #eadde8;
}

.jims-weekly-history[open] > summary::after {
  content: '−';
}

.jims-weekly-history__body {
  padding: 18px;
}

.jims-weekly-history__body > .jims-front-weekly {
  margin: 0;
}

.jims-weekly-history__body > .jims-front-weekly > header {
  display: none;
}

@media (max-width: 900px) {
  .jims-front-weekly__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .jims-front-summary-grid {
    gap: 9px;
  }

  .jims-front-weekly__cards {
    grid-template-columns: 1fr;
  }

  .jims-weekly-history > summary {
    font-size: 13px;
    padding: 14px 15px;
  }

  .jims-weekly-history__body {
    padding: 12px;
  }
  .jims-front-summary-card > a {
    align-items: start;
    gap: 9px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 11px 9px;
  }
  .jims-front-summary-card .jims-front-panel__icon {
    font-size: 16px;
    height: 30px;
    width: 30px;
  }
  .jims-front-summary-card__body h2 {
    font-size: 13px;
    line-height: 1.4;
  }
  .jims-front-summary-card__body p {
    display: none;
  }
  .jims-front-summary-card__counts {
    display: block;
    white-space: nowrap;
  }
  .jims-front-summary-card__counts > .is-wide {
    display: none;
  }
  .jims-front-summary-card__counts > .is-narrow {
    display: inline-block;
  }
  .jims-front-summary-card__counts b {
    background: transparent;
    border: 0;
    padding: 0;
  }
  .jims-front-summary-card__arrow {
    grid-column: 2;
    display: block;
    font-size: 10px;
    line-height: 1.2;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .jims-front-summary-card__arrow .is-wide {
    display: none;
  }
  .jims-front-summary-card__arrow .is-narrow {
    display: inline;
  }
  .jims-front-schedule__grid,
  .jims-front-weekly__cards,
  .jims-today-pick-front-guide__group-row {
    grid-template-columns: 1fr;
  }
  .jims-front-schedule__column li {
    grid-template-columns: 62px auto minmax(0, 1fr);
  }
  .jims-front-schedule__column li > b {
    grid-column: 3;
  }
  .jims-front-weekly__cards h3 {
    min-height: 0;
  }
  .jims-history-nav,
  .jims-month-nav {
    margin-bottom: 14px;
    padding: 6px;
  }
  .jims-history-nav a,
  .jims-month-nav a {
    font-size: 11px;
    padding: 8px 5px;
  }
  .jims-schedule-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .jims-schedule-tabs a:last-child {
    grid-column: 1 / -1;
  }
  .jims-month-nav strong {
    font-size: 17px;
  }
  .jims-calendar__weekday {
    font-size: 10px;
    padding: 7px 2px;
  }
  .jims-calendar__day {
    min-height: 55px;
    padding: 4px 3px;
  }
  .jims-calendar__date {
    align-items: center;
    flex-direction: column;
    gap: 2px;
    margin: 0;
  }
  .jims-calendar__date > a:first-child,
  .jims-calendar__date > span:first-child {
    font-size: 11px;
    height: 21px;
    width: 21px;
  }
  .jims-calendar__count {
    font-size: 8px;
    padding: 2px 4px;
  }
  .jims-calendar__events {
    display: none;
  }
  .jims-calendar-agenda__day h2 {
    font-size: 15px;
    padding: 11px 12px;
  }
  .jims-calendar-agenda__day li {
    align-items: start;
    gap: 6px 8px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 11px 12px;
  }
  .jims-calendar-agenda__day li > strong {
    grid-column: 2;
  }

  .jims-history-calendar-agenda {
    gap: 15px;
    margin-top: 16px;
  }

  .jims-history-calendar__back {
    font-size: 11px;
    margin: -7px 0 5px 10px;
  }
  .jims-today-pick-front-guide__detail {
    justify-self: start;
  }
}

.jidb-home-v2 .jims-favorites-front-button {
  grid-column: auto;
}

.jidb-home-v2 .jims-favorites-front-guide > a {
  color: #fff !important;
}

.jims-favorites-app {
  color: var(--jims-fav-ink);
  margin: 0 auto;
  max-width: 1160px;
  padding: 12px 0 48px;
}

.jims-favorites-app *,
.jims-favorites-app *::before,
.jims-favorites-app *::after {
  box-sizing: border-box;
}

.jims-favorites-app__hero {
  background: radial-gradient(circle at 91% 16%, rgba(236, 70, 157, .15) 0 105px, transparent 106px), linear-gradient(135deg, #fff8fc, #f6f2ff);
  border: 1px solid #e9d7e5;
  border-radius: 26px;
  margin-bottom: 22px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
}

.jims-favorites-app__eyebrow {
  color: var(--jims-fav-pink-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 7px;
}

.jims-favorites-app__hero h1 {
  color: var(--jims-fav-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.4;
  margin: 0 0 10px;
}

.jims-favorites-app__hero p {
  color: #5e5266;
  margin: 0;
  max-width: 800px;
}

.jims-favorites-tabs {
  background: #eee9f0;
  border-radius: 16px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 6px;
}

.jims-favorites-tabs a {
  align-items: center;
  border-radius: 12px;
  color: #5f5266;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none !important;
}

.jims-favorites-tabs a:hover,
.jims-favorites-tabs a:focus-visible,
.jims-favorites-tabs a.is-active {
  background: #fff;
  box-shadow: 0 4px 14px rgba(61, 39, 72, .09);
  color: var(--jims-fav-pink-dark);
}

.jims-favorites-content {
  display: grid;
  gap: 24px;
}

.jims-favorites-section {
  background: #fff;
  border: 1px solid var(--jims-fav-line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(61, 39, 72, .06);
  overflow: hidden;
}

.jims-favorites-section__header {
  align-items: center;
  background: linear-gradient(90deg, #fff8fc, #faf8ff);
  border-bottom: 1px solid var(--jims-fav-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 19px 24px;
}

.jims-favorites-section__header h2 {
  color: var(--jims-fav-ink);
  font-size: 21px;
  margin: 0;
}

.jims-favorites-section__header h2 span {
  color: var(--jims-fav-muted);
  font-size: 13px;
  margin-left: 5px;
}

.jims-favorites-section__header a {
  color: var(--jims-fav-purple);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
}

.jims-favorites-list {
  padding: 0 24px;
}

.jims-favorites-row {
  align-items: center;
  border-bottom: 1px solid #eee7ed;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 0;
}

.jims-favorites-row:last-child {
  border-bottom: 0;
}

.jims-favorites-row__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jims-favorites-row__name {
  color: #1767a7;
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.jims-favorites-row__name--inactive {
  color: #756c74;
  text-decoration: none;
}

.jims-favorites-row__meta {
  color: var(--jims-fav-muted);
  font-size: 12px;
  margin-top: 3px;
}

.jims-favorites-row__status {
  align-self: flex-start;
  background: #f3eff2;
  border: 1px solid #d8cfd6;
  border-radius: 999px;
  color: #655d63;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 6px;
  padding: 4px 10px;
}

.jims-favorites-row.is-unlisted {
  background: linear-gradient(90deg, rgba(246, 242, 245, 0.72), rgba(255, 255, 255, 0));
}

.jims-favorites-row__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.jims-ranking-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.jims-ranking-row__position {
  align-items: center;
  background: linear-gradient(135deg, var(--jims-fav-pink), var(--jims-fav-purple));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.jims-ranking-row__count {
  background: #f5effb;
  border-radius: 999px;
  color: var(--jims-fav-purple);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 12px;
  white-space: nowrap;
}

.jims-ranking-paused {
  padding: 28px 24px;
  text-align: center;
}

.jims-ranking-paused h2 {
  font-size: 19px;
  margin: 0 0 7px;
}

.jims-ranking-paused p {
  color: var(--jims-fav-muted);
  margin: 0;
}

.jims-ranking-note {
  background: #f8f4ff;
  border: 1px solid #ddd0f2;
  border-radius: 13px;
  color: #62546d;
  font-size: 13px;
  margin: 0;
  padding: 12px 16px;
}

.jims-ranking-privacy {
  background: linear-gradient(135deg, #fff8fc, #f8f4ff);
  border: 1px solid #e6d5e4;
  border-left: 5px solid var(--jims-fav-purple);
  border-radius: 18px;
  margin: 34px 0 20px;
  padding: 24px 26px;
}

.jims-ranking-privacy h2 {
  color: var(--jims-fav-ink);
  font-size: 24px;
  margin: 0 0 14px;
}

.jims-ranking-privacy p,
.jims-ranking-privacy li {
  color: #4f4358;
  line-height: 1.9;
}

.jims-ranking-privacy li + li {
  margin-top: 5px;
}

.jims-favorites-row__actions button,
.jims-favorites-clear {
  appearance: none;
  background: #fff;
  border: 1px solid #d8cbd5;
  border-radius: 9px;
  color: #5d4e64;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 38px;
  padding: 7px 11px;
}

.jims-favorites-row__actions button:hover,
.jims-favorites-row__actions button:focus-visible,
.jims-favorites-clear:hover,
.jims-favorites-clear:focus-visible {
  border-color: var(--jims-fav-pink);
  color: var(--jims-fav-pink-dark);
  outline: 2px solid rgba(236, 70, 157, .14);
}

.jims-favorites-remove {
  color: #9c356e !important;
}

.jims-favorites-empty,
.jims-favorites-loading,
.jims-favorites-error {
  color: var(--jims-fav-muted);
  margin: 0;
  padding: 28px 4px;
  text-align: center;
}

.jims-favorites-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  padding: 18px 20px;
}

.jims-favorites-pagination a {
  align-items: center;
  background: #fff;
  border: 1px solid #ddceda;
  border-radius: 9px;
  color: #5a4c62;
  display: inline-flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  text-decoration: none !important;
  width: 40px;
}

.jims-favorites-pagination a:hover,
.jims-favorites-pagination a:focus-visible,
.jims-favorites-pagination a.is-current {
  background: var(--jims-fav-purple);
  border-color: var(--jims-fav-purple);
  color: #fff;
}

.jims-favorites-notice:empty {
  display: none;
}

.jims-favorites-notice {
  background: #f1fff6;
  border: 1px solid #a9dfb8;
  border-radius: 12px;
  color: #245d35;
  margin: 0 0 18px;
  padding: 12px 16px;
}

.jims-favorites-global-notice {
  background: #30243c;
  border-radius: 12px;
  bottom: 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  left: 50%;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 13px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition: opacity .2s ease, transform .2s ease;
  width: max-content;
  z-index: 99999;
}

.jims-favorites-global-notice.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.jims-favorites-notice__link {
  color: inherit !important;
  font-weight: 900;
  margin-left: 12px;
  text-decoration: underline !important;
  white-space: nowrap;
}

.jims-favorites-global-notice.is-error {
  background: #8f245e;
}

body.jims-favorites-page .article-header,
body.jims-favorites-page .entry-title,
body.jims-favorites-page .date-tags,
body.jims-favorites-page .post-date,
body.jims-favorites-page .post-update,
body.jims-favorites-page .author-info,
body.jims-favorites-page .author-box,
body.jims-favorites-page .post-author {
  display: none !important;
}

@media (max-width: 760px) {
  .jims-favorites-guide,
  .jims-favorites-front-guide {
    align-items: start;
    grid-template-columns: auto 1fr;
    padding: 19px;
  }

  .jims-favorites-guide__link,
  .jims-favorites-front-guide > a {
    grid-column: 1 / -1;
    width: 100%;
  }

  /*
   * Cocoon / Android WebView のモバイル用リンク装飾で背景だけ白に
   * 上書きされた場合でも、フロントの案内ボタン文字を確実に表示する。
   */
  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide > a,
  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide > a:link,
  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide > a:visited {
    background: #fff !important;
    border: 2px solid var(--jims-fav-pink) !important;
    color: var(--jims-fav-pink) !important;
    -webkit-text-fill-color: var(--jims-fav-pink) !important;
  }

  body.jims-front-page .jidb-home-v2 .jims-ranking-front-guide > a,
  body.jims-front-page .jidb-home-v2 .jims-ranking-front-guide > a:link,
  body.jims-front-page .jidb-home-v2 .jims-ranking-front-guide > a:visited {
    border-color: var(--jims-fav-purple) !important;
    color: var(--jims-fav-purple) !important;
    -webkit-text-fill-color: var(--jims-fav-purple) !important;
  }

  body.jims-front-page .jidb-home-v2 .jims-today-pick-front-guide > a,
  body.jims-front-page .jidb-home-v2 .jims-today-pick-front-guide > a:link,
  body.jims-front-page .jidb-home-v2 .jims-today-pick-front-guide > a:visited {
    border-color: var(--jims-fav-purple) !important;
    color: var(--jims-fav-purple) !important;
    -webkit-text-fill-color: var(--jims-fav-purple) !important;
  }

  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide > a span {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  .jims-favorites-guide--compact {
    grid-template-columns: 1fr;
  }

  body.jims-db-entry-page .jims-entry-guide > .jims-favorites-guide--compact {
    margin: 20px 0 18px !important;
    width: auto !important;
  }

  .jims-favorites-guide--compact .jims-favorites-guide__link {
    grid-column: auto;
  }

  .jims-front-news__item {
    padding: 0;
  }

  .jims-front-news__item > a {
    gap: 4px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 13px 4px;
  }

  .jims-front-news__item time {
    grid-column: 1 / -1;
  }

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

  .jims-favorites-tabs a {
    font-size: 12px;
    min-height: 44px;
    padding: 7px;
  }

  .jims-favorites-app__hero {
    border-radius: 20px;
    padding: 25px 21px;
  }

  .jims-favorites-app__hero h1 {
    font-size: 27px;
  }

  .jims-favorites-section__header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .jims-favorites-section__header h2 {
    font-size: 18px;
  }

  .jims-favorites-list {
    padding: 0 16px;
  }

  .jims-favorites-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 14px 0;
  }

  .jims-ranking-row {
    align-items: center;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .jims-ranking-row__count {
    grid-column: 2;
    justify-self: start;
  }

  .jims-ranking-privacy {
    padding: 20px 18px;
  }

  .jims-ranking-privacy h2 {
    font-size: 20px;
  }

  .jims-favorites-row__actions {
    align-self: stretch;
  }

  .jims-favorites-row__actions button {
    flex: 1 1 auto;
  }

  .jims-favorite-heart {
    flex-basis: 44px;
    height: 44px;
    width: 44px;
  }
}

/*
 * v5.22.6: スマホだけをアプリ風の情報密度にする。
 * transform/zoom は使わず、文字・余白・列数を個別に調整して鮮明さと操作性を保つ。
 */
@media (max-width: 480px) {
  body.jims-front-page {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.jims-front-page .jidb-home-v2 > section {
    margin: 28px 0;
  }

  body.jims-front-page .jidb-home-v2 .jidb-hero {
    border-radius: 16px;
    gap: 10px;
    padding: 16px 14px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-kicker {
    font-size: 9px;
    letter-spacing: .1em;
    margin-bottom: 4px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-hero h1 {
    font-size: clamp(21px, 6vw, 24px);
    line-height: 1.25;
    margin-bottom: 8px;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  body.jims-front-page .jidb-home-v2 .jidb-lead {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 9px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-buttons {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.jims-front-page .jidb-home-v2 .jidb-button {
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.3;
    min-height: 40px;
    padding: 7px 5px;
    white-space: normal;
    width: 100%;
  }

  body.jims-front-page .jidb-home-v2 .jidb-section-heading {
    border-left-width: 4px;
    margin-bottom: 13px;
    padding-left: 10px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-section-heading h2 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 3px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-section-heading p {
    font-size: 12px;
    line-height: 1.5;
  }

  body.jims-front-page .jidb-home-v2 .jidb-stats {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.jims-front-page .jidb-home-v2 .jidb-stats article {
    border-radius: 11px;
    padding: 8px 4px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-stats small,
  body.jims-front-page .jidb-home-v2 .jidb-stats span {
    font-size: 9px;
    line-height: 1.35;
  }

  body.jims-front-page .jidb-home-v2 .jidb-stats strong {
    font-size: 20px;
    line-height: 1.2;
  }

  body.jims-front-page .jidb-home-v2 .jidb-db-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.jims-front-page .jidb-home-v2 .jidb-db-card {
    border-radius: 13px;
    padding: 14px 12px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-db-card:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  body.jims-front-page .jidb-home-v2 .jidb-db-card h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 3px 0 6px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-db-card p,
  body.jims-front-page .jidb-home-v2 .jidb-db-card ul {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 9px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-db-card > .jidb-card-button {
    font-size: 11.5px;
    min-height: 40px;
    padding: 8px 10px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-update-box,
  body.jims-front-page .jidb-home-v2 .jidb-international,
  body.jims-front-page .jidb-home-v2 .jidb-howto,
  body.jims-front-page .jidb-home-v2 .jidb-attention,
  body.jims-front-page .jidb-home-v2 .jidb-cta {
    border-radius: 15px;
    padding: 16px 14px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-update-box h2,
  body.jims-front-page .jidb-home-v2 .jidb-international h2,
  body.jims-front-page .jidb-home-v2 .jidb-cta h2 {
    font-size: 18px;
  }

  body.jims-front-page .jidb-home-v2 .jidb-update-box p,
  body.jims-front-page .jidb-home-v2 .jidb-international p,
  body.jims-front-page .jidb-home-v2 .jidb-attention p,
  body.jims-front-page .jidb-home-v2 .jidb-cta p {
    font-size: 12px;
    line-height: 1.55;
  }

  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide,
  body.jims-front-page .jidb-home-v2 .jims-today-pick-front-guide {
    gap: 9px;
    margin-top: 12px;
    padding: 12px;
  }

  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide__heart {
    font-size: 19px;
    height: 40px;
    width: 40px;
  }

  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide h2 {
    font-size: 15px;
    line-height: 1.35;
  }

  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide p,
  body.jims-front-page .jidb-home-v2 .jims-today-pick-front-guide__member-list {
    font-size: 11px;
    line-height: 1.5;
  }

  body.jims-front-page .jidb-home-v2 .jims-favorites-front-guide > a {
    font-size: 11.5px;
    min-height: 38px;
    padding: 7px 11px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-news {
    margin-top: 14px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-news__item > a {
    padding: 8px 3px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-news__item time {
    font-size: 10px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-news__title {
    font-size: 12.5px;
    line-height: 1.45;
  }
}
.jims-live-favorite-row { padding: 9px 12px; gap: 10px; }
.jims-live-favorite-row .jims-favorites-row__name { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.jims-live-favorite-row .jims-favorites-row__actions { flex-shrink: 0; }
.jims-live-home { border: 1px solid #f2b8db; background: linear-gradient(120deg,#fff3fa,#f3f1ff); }

/* v5.22.7: front summary cards. Override Cocoon's generic article heading/link decorations. */
body.jims-front-page .jidb-home-v2 .jims-front-summary-grid {
  gap: 12px;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card {
  border-radius: 16px;
  border-top: 4px solid var(--jims-fav-pink);
  min-width: 0;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card.jims-front-weekly {
  border-top-color: var(--jims-fav-purple);
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card > a,
body.jims-front-page .jidb-home-v2 .jims-front-summary-card > a:link,
body.jims-front-page .jidb-home-v2 .jims-front-summary-card > a:visited {
  align-items: start !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--jims-fav-ink) !important;
  display: grid !important;
  gap: 8px 12px !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  height: 100% !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 15px 17px !important;
  width: auto !important;
  -webkit-text-fill-color: currentColor !important;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card .jims-front-panel__icon {
  font-size: 17px;
  height: 34px;
  width: 34px;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card__body {
  min-width: 0;
  width: 100%;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card__body h2 {
  background: transparent !important;
  border: 0 !important;
  color: var(--jims-fav-ink) !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  margin: 0 0 4px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card__body h2::before,
body.jims-front-page .jidb-home-v2 .jims-front-summary-card__body h2::after {
  display: none !important;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card__body p {
  color: #6d6174;
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  margin: 0 0 8px !important;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card__counts b {
  background: #fff;
  border: 1px solid #eadde8;
  border-radius: 8px;
  color: #754660;
  font-size: 11px;
  line-height: 1.25;
  padding: 5px 8px;
}

body.jims-front-page .jidb-home-v2 .jims-front-summary-card__arrow {
  align-self: end;
  color: var(--jims-fav-purple);
  font-size: 11px;
  grid-column: 2;
  line-height: 1.35;
  margin: 0;
}

body.jims-front-page .jidb-home-v2 .jims-front-schedule .jims-front-summary-card__arrow {
  color: var(--jims-fav-pink-dark);
}

@media (max-width: 680px) {
  body.jims-front-page .jidb-home-v2 .jims-front-summary-grid {
    gap: 7px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card {
    border-radius: 13px;
    border-top-width: 3px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card > a,
  body.jims-front-page .jidb-home-v2 .jims-front-summary-card > a:link,
  body.jims-front-page .jidb-home-v2 .jims-front-summary-card > a:visited {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-height: 139px !important;
    padding: 9px !important;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card .jims-front-panel__icon {
    border-radius: 7px;
    font-size: 13px;
    height: 24px;
    width: 24px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card__body h2 {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    min-height: 2.7em !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card__body p {
    display: none;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card__counts {
    display: block;
    white-space: normal;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card__counts > .is-narrow {
    background: #fff;
    border: 1px solid #eadde8;
    border-radius: 8px;
    color: #754660;
    display: block;
    font-size: 9.5px;
    line-height: 1.3;
    padding: 5px 4px;
    text-align: center;
    white-space: nowrap;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-summary-card__arrow {
    border-top: 1px solid #eadde8;
    display: block;
    font-size: 9.5px;
    line-height: 1.3;
    margin-top: auto;
    overflow: visible;
    padding-top: 6px;
    text-overflow: clip;
    white-space: normal;
  }
}

/* v5.22.8: Keep desktop hero headings prominent without overpowering the page. */
@media (min-width: 681px) {
  body.jims-front-page .jidb-home-v2 .jidb-hero h1 {
    font-size: clamp(34px, 3.4vw, 42px) !important;
    line-height: 1.28 !important;
  }

  .jims-weekly-archive__hero h1,
  .jims-favorites-app__hero h1 {
    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.3;
  }

  .jims-weekly-archive__hero p,
  .jims-favorites-app__hero p:not(.jims-favorites-app__storage-note) {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
  }
}

/* v5.23.4: Top-page news, schedules and DB history in one compact summary. */
body.jims-front-page .jidb-home-v2 .jims-front-updates-summary > h2 {
  color: var(--jims-fav-ink);
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__empty {
  color: #75677c;
  font-size: 14px;
  margin: 16px 0 0;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics {
  border-top: 1px solid #ecdbe7;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  padding-top: 18px;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a,
body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:link,
body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:visited {
  background: linear-gradient(135deg, #fff7fb, #faf7ff);
  border: 1px solid #e6cfe2;
  border-radius: 13px;
  color: var(--jims-fav-ink) !important;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 15px 38px 15px 16px;
  position: relative;
  text-decoration: none !important;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a::after {
  content: "→";
  font-size: 20px;
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 13px;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:last-child {
  border-color: #ddd2f1;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics strong {
  color: var(--jims-fav-pink-dark);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:last-child strong,
body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:last-child::after {
  color: var(--jims-fav-purple);
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics span {
  color: #725d6d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics b {
  color: var(--jims-fav-pink-dark);
  font-size: 17px;
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:last-child b {
  color: var(--jims-fav-purple);
}

body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:hover,
body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:focus-visible {
  box-shadow: 0 8px 22px rgba(101, 58, 100, .11);
  outline: 2px solid rgba(214, 62, 146, .18);
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary > h2 {
    font-size: 18px !important;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary .jims-front-news__list {
    margin-top: 12px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary .jims-front-news__item > a {
    gap: 7px;
    grid-template-columns: 65px minmax(0, 1fr) auto;
    padding: 9px 2px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics {
    gap: 8px;
    margin-top: 13px;
    padding-top: 13px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a,
  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:link,
  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a:visited {
    border-radius: 10px;
    gap: 6px;
    padding: 10px 26px 10px 8px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics > a::after {
    font-size: 15px;
    right: 8px;
    top: 9px;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics strong {
    font-size: 12px;
    line-height: 1.4;
    min-height: 2.8em;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics span {
    font-size: 10.5px;
    white-space: nowrap;
  }

  body.jims-front-page .jidb-home-v2 .jims-front-updates-summary__metrics b {
    font-size: 12px;
  }

}
