/**
 * RK Campaign Countdown - Frontend Styles
 *
 * フロントエンド用CSS。アニメーション含む。
 *
 * @package RK_Campaign_Countdown
 * @since 2.0.0
 */

/* === CSS Variables === */
:root {
  --rk-primary: #bf0000;
  --rk-live: #00a870;
  --rk-soon: #ffb300;
  --rk-normal: #e8e8e8;
  --rk-text: #333;
  --rk-text-muted: #666;
  --rk-bg: #fff;
  --rk-bg-header: #9E8038;
  /* Dark Gold for white text contrast */
  --rk-bg-body: #fff;
  /* rk-bg-body reverted to white as per user request */
  --rk-border: #e6e6e6;
  --rk-border-strong: #bbb;
  --rk-shadow: rgba(0, 0, 0, 0.05);
  --rk-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
}


/* === Container === */
.rk-cd {
  max-width: 920px;
  margin: 0 auto;
  border: 2px solid #a88c4a;
  /* Dark gold border */
  border-radius: 14px;
  background: var(--rk-bg);
  overflow: hidden;
  font-family: var(--rk-font-family);
  box-shadow: 0 2px 8px var(--rk-shadow);
}

/* === Header === */
.rk-cd__head {
  padding: 0;
  background: transparent;
  text-align: center;
}

/* Strongly enforce plugin styles over theme defaults */
.rk-cd .rk-cd__head>.rk-cd__title {
  all: unset;
  /* Reset all properties to remove theme interference */
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 5px 12px !important;
  background: var(--rk-bg-header) !important;
  font-family: var(--rk-font-family) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #fff !important;
  line-height: 1.5 !important;
  text-align: center !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Reset pseudo-elements that themes using :before/:after might inject */
.rk-cd .rk-cd__head>.rk-cd__title::before,
.rk-cd .rk-cd__head>.rk-cd__title::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
}

.rk-cd__sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.rk-cd__message {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--rk-bg-header);
  /* Use header gold color for text */
  line-height: 1.4;
  border-bottom: 1px solid var(--rk-border);
}

/* === Card Grid === */
.rk-cd__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0 12px 8px;
  background: #fff;
}

/* === Section Title === */
.rk-cd__section-title {
  margin: 0;
  padding: 6px 12px 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rk-text-muted);
  background: var(--rk-bg);
  text-align: center;
}

/* === Card Item === */
.rk-cd__card {
  position: relative;
  /* Context for absolute background */
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--rk-border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  z-index: 1;
}

/* Background Layer */
.rk-cd__bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content stays on top of background */
.rk-cd__card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  width: 100%;
}

/* === Weekday Colors (Only weekday, not date) === */
.rk-cd__weekday {
  color: var(--rk-text);
  font-weight: bold;
}

.rk-cd__weekday.rk-sunday {
  color: #bf0000;
}

.rk-cd__weekday.rk-saturday {
  color: #0066cc;
}

.rk-cd__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* === Card - Live State === */
.rk-cd__card.rk-is-live {
  border-width: 5px !important;
  border-style: solid !important;
  border-color: transparent !important;
  background:
    linear-gradient(var(--rk-bg), var(--rk-bg)) padding-box,
    linear-gradient(90deg, #00a870, #00a870, #c0e8d8, #00a870, #00a870) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: rk-shimmer 5.5s linear infinite;
  box-shadow: 0 0 10px rgba(0, 168, 112, 0.2);
}

@keyframes rk-shimmer {
  0% { background-position: 0 0, 200% 0; }
  100% { background-position: 0 0, -100% 0; }
}

.rk-cd__card.rk-is-live .rk-cd__dot {
  background: var(--rk-live) !important;
  animation: rk-pulse 2s infinite;
}

.rk-cd__card.rk-is-live .rk-cd__status {
  color: var(--rk-live) !important;
}

.rk-cd__card.rk-is-live .rk-cd__link {
  background: #bf0000 !important;
  box-shadow: 0 3px 6px rgba(191, 0, 0, 0.25) !important;
}

/* === Card - Soon State (3日以内) === */
.rk-cd__card.rk-is-soon {
  border-color: var(--rk-soon);
  border-width: 2px;
}

.rk-cd__card.rk-is-soon .rk-cd__dot {
  background: var(--rk-soon);
}

.rk-cd__card.rk-is-soon .rk-cd__status {
  color: var(--rk-soon);
}

/* === Card - Entry Period State (事前エントリー期間) === */
.rk-cd__card.rk-is-entry {
  border-color: #ff9500;
  border-width: 2px;
}

.rk-cd__card.rk-is-entry .rk-cd__dot {
  background: #ff9500 !important;
  animation: rk-pulse 2s infinite;
}

/* === Card - Always Active State (常時開催) === */
.rk-cd__card.rk-is-always {
  border-width: 5px !important;
  border-style: solid !important;
  border-color: transparent !important;
  background:
    linear-gradient(var(--rk-bg), var(--rk-bg)) padding-box,
    linear-gradient(90deg, #00a870, #00a870, #c0e8d8, #00a870, #00a870) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: rk-shimmer 5.5s linear infinite;
}

/* === Card Name === */
.rk-cd__name {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--rk-text);
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid var(--rk-border-strong);
}

/* === Dot Indicator === */
.rk-cd__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rk-normal);
  flex-shrink: 0;
}

/* === Info Row (date + status horizontal) === */
.rk-cd__info-row {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* === Date === */
.rk-cd__date {
  font-size: 32px;
  font-weight: 700;
  color: var(--rk-text);
  font-family: 'Inter', 'Roboto', var(--rk-font-family);
  letter-spacing: -0.02em;
}

/* === Status === */
.rk-cd__status {
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--rk-text);
}

/* === Link Button Wrapper === */
.rk-cd__link-wrapper {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rk-border);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* === Link Button (Rakuten Style - Pill Shape) === */
.rk-cd__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  background: #bf0000;
  border: none;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 3px 6px rgba(191, 0, 0, 0.25);
  transition: all 0.2s ease;
  line-height: 1;
}

.rk-cd__link:hover {
  background: #d4000f;
  box-shadow: 0 4px 10px rgba(191, 0, 0, 0.35);
  transform: translateY(-2px);
  color: #fff !important;
}

/* === Live Countdown === */
.rk-cd__countdown {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--rk-live);
  animation: rk-countdown-pulse 1s ease-in-out infinite;
}

@keyframes rk-countdown-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* === Maintenance Mode === */
.rk-cd--maintenance {
  text-align: center;
}

.rk-cd__maintenance-message {
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* === Official Link Wrapper === */
.rk-cd__link-wrapper--end {
  justify-content: flex-end !important;
  padding-right: 12px;
}

/* === Footer === */
.rk-cd__foot {
  background: #fdfaf3;
  color: #6b4f16;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #efe4c8;
}

.rk-cd__note {
  margin: 0;
  font-size: 12px;
  color: #6b4f16;
  line-height: 1.4;
}

.rk-cd__check-time {
  margin: 4px 0 0;
  color: #8a6a22;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* === Big Chance Banner === */
.rk-cd__big-chance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 100%);
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: rk-pulse-no-fade 2s infinite;
}

/* === Mobile-first shopping planner === */
.rk-cd__planner {
  margin: 10px 10px 12px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eef9ff 100%);
  border: 1px solid rgba(168, 140, 74, 0.45);
  border-radius: 8px;
  color: #1f2937;
}

.rk-cd__planner-summary {
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 115, 170, 0.16);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 63, 95, 0.06);
}

.rk-cd__planner-kicker {
  color: #9e8038;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.rk-cd__planner-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.rk-cd__planner-score {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #006ecb;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.rk-cd__planner-date {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.rk-cd__planner-names {
  margin-top: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rk-cd__planner-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.rk-cd__planner-calendar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 110, 203, .16);
  border-left: 4px solid #087dc1;
  border-radius: 8px;
  background: linear-gradient(90deg, #eff8ff, #f8fbff);
  color: #7a5c00;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(7, 89, 133, .07);
}
.rk-cd__planner-calendar-heading {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.rk-cd__planner-calendar-heading-row {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 6px;
}
.rk-cd__planner-calendar-heading strong {
  color: #7a5c00;
  font-size: 13px;
  font-weight: 900;
}
.rk-cd__planner-calendar-heading small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}
.rk-cd__planner-calendar-help-button {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 1px solid #9fc4df;
  border-radius: 50%;
  background: #eff8ff;
  color: #075985;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.rk-cd__planner-calendar-help {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1200;
  width: min(430px, calc(100vw - 48px));
  padding: 13px;
  border: 1px solid #b8d4e8;
  border-radius: 10px;
  background: #fff;
  color: #27445d;
  box-shadow: 0 10px 30px rgba(20, 52, 78, .2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}
.rk-cd__planner-calendar-help[hidden] {
  display: none !important;
}
.rk-cd__planner-calendar-help > strong {
  display: block;
  margin-bottom: 6px;
  color: #123b5d;
  font-size: 13px;
}
.rk-cd__planner-calendar-help p {
  margin: 5px 0;
}
.rk-cd__planner-calendar-help > button {
  margin-top: 5px;
  padding: 5px 10px;
  border: 1px solid #b9cfe1;
  border-radius: 6px;
  background: #f8fbfe;
  color: #31546e;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.rk-cd.rk-cd--calendar-help-open,
.rk-cd.rk-cd--calendar-help-open .rk-cd__planner {
  overflow: visible !important;
}
.rk-cd__planner-today {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(0, 110, 203, 0.16);
  border-radius: 999px;
  background: #eef8ff;
  color: #0f3f5f;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.rk-cd__planner-calendar-title::before {
  display: none;
  content: none;
}
.rk-cd__planner-day {
  min-width: 0;
  padding: 6px 2px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #fff;
  text-align: center;
}

.rk-cd__planner-day.is-today {
  border-color: #006ecb;
}

.rk-cd__planner-day.is-focus {
  background: #fef7df;
  border-color: #a88c4a;
  box-shadow: inset 0 0 0 1px rgba(168, 140, 74, 0.18);
}

.rk-cd__planner-day.has-overlap .rk-cd__planner-day-count {
  color: #bf0000;
}

.rk-cd__planner-day-label,
.rk-cd__planner-day-caption {
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.rk-cd__planner-day-label {
  color: #475569;
}
.rk-cd__planner-day-label,
.rk-cd__planner-day-relative,
.rk-cd__planner-day-date {
  display: block;
}
.rk-cd__planner-day-relative {
  margin-bottom: 2px;
  color: #006ecb;
  font-size: 10px;
  font-weight: 900;
}
.rk-cd__planner-day.is-today .rk-cd__planner-day-relative {
  color: #bf0000;
}
.rk-cd__planner-day-date {
  font-size: 10px;
  white-space: nowrap;
}
.rk-cd__planner-day.is-sunday .rk-cd__planner-day-label {
  color: #bf0000;
}
.rk-cd__planner-day.is-saturday .rk-cd__planner-day-label {
  color: #475569;
}
.rk-cd__planner-day.is-sunday .rk-cd__planner-day-label {
  color: #475569;
}
.rk-cd__planner-day.is-tomorrow .rk-cd__planner-day-relative {
  color: #111827 !important;
}
.rk-cd__weekday-char.rk-sunday {
  color: #bf0000 !important;
}
.rk-cd__weekday-char.rk-saturday {
  color: #0066cc !important;
}

.rk-cd__planner-day-count {
  display: block;
  margin: 3px 0 2px;
  color: #006ecb;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.rk-cd__planner-day-caption {
  color: #64748b;
}

.rk-cd__planner-timeline {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.rk-cd__planner-section-head {
  margin-bottom: 8px;
  color: #0f3f5f;
  font-size: 13px;
  font-weight: 900;
}

.rk-cd__planner-slot {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #eef2f7;
}

.rk-cd__planner-slot:first-of-type {
  border-top: none;
}

.rk-cd__planner-slot-time {
  color: #9e8038;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.rk-cd__planner-slot-count {
  margin-bottom: 5px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.rk-cd__planner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rk-cd__planner-evaluation-source {
  display: none !important;
}

.rk-cd__planner-decisions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}

.rk-cd__conclusion-panel {
  margin: 0 0 14px;
  padding: 8px;
  border: 1px solid rgba(138, 104, 29, 0.42);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(145deg, rgba(255, 253, 246, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 22px rgba(122, 87, 18, 0.08);
}

.rk-cd__conclusion-guide {
  display: flex;
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 30px);
  min-height: 30px;
  margin: 14px auto 0 0;
  padding: 7px 10px;
  align-items: center;
  border-radius: 8px 8px 0 0;
  --rk-tab-join: #a9822d;
  background: linear-gradient(135deg, #7a5712, #a9822d);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  box-shadow: 0 4px 11px rgba(122, 87, 18, 0.18);
}
.rk-cd__conclusion-guide::before,
.rk-cd__next-check-label::before,
.rk-cd__calendar-guide::before {
  position: absolute;
  bottom: 0;
  right: -30px;
  left: auto;
  width: 30px;
  height: 30px;
  background: var(--rk-tab-join);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='black' d='M0 0v30h30C13.43 30 0 16.57 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='black' d='M0 0v30h30C13.43 30 0 16.57 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}
.rk-cd__conclusion-panel .rk-cd__planner-decisions {
  margin-top: 0;
}

.rk-cd__calendar-guide {
  display: flex;
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 30px);
  min-height: 30px;
  margin: 14px auto 0 0;
  padding: 7px 10px;
  align-items: center;
  border-radius: 8px 8px 0 0;
  --rk-tab-join: #39788a;
  background: linear-gradient(135deg, #244f5d, #39788a);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  box-shadow: 0 4px 11px rgba(36, 79, 93, 0.18);
}

.rk-cd__calendar-panel {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(57, 120, 138, 0.36);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(145deg, rgba(247, 252, 253, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 22px rgba(36, 79, 93, 0.08);
}

.rk-cd__calendar-panel .rk-cd__planner-calendar-title {
  margin-top: 0;
}

.rk-cd__decision-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px 16px 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #eff6ff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.rk-cd__decision-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #7a4d00 0%, #f6c453 24%, #fff4b8 48%, #d99a16 72%, #6f4300 100%);
  background-size: 100% 220%;
  box-shadow: 0 0 8px rgba(246, 196, 83, 0.85), 0 0 16px rgba(217, 154, 22, 0.45);
  animation: rk-decision-gold-flow 2.4s ease-in-out infinite;
}

.rk-cd__decision-card--best {
  border-color: rgba(217, 119, 6, 0.25);
  background: linear-gradient(145deg, #fff, #fff7ed);
}

@keyframes rk-decision-gold-flow {
  0%, 100% {
    background-position: 50% 0%;
    filter: brightness(0.95);
  }
  50% {
    background-position: 50% 100%;
    filter: brightness(1.35);
  }
}

.rk-cd__decision-label {
  justify-self: start;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(138, 104, 29, 0.28);
  border-radius: 999px;
  background: #fff7d6;
  color: #7a4d00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.35;
}

.rk-cd__decision-title {
  color: #0f172a;
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.2;
}

.rk-cd__decision-card--best .rk-cd__decision-title {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 2px 8px !important;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  scrollbar-width: none;
}

.rk-cd__decision-card--today .rk-cd__decision-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.rk-cd__decision-today-time {
  flex: 0 0 auto;
  font-weight: 800;
}

.rk-cd__decision-card--best .rk-cd__decision-title::-webkit-scrollbar {
  display: none;
}

.rk-cd__decision-date {
  flex: 0 0 auto;
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 900;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 3px #fff;
}

.rk-cd__decision-time {
  flex: 0 0 auto;
  color: #b45309;
  font-size: clamp(16px, 2.5vw, 21px);
  font-weight: 900;
}

.rk-cd__decision-countdown {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(180, 83, 9, .24);
  border-radius: 999px;
  background: #fff;
  color: #92400e;
  font-size: clamp(10px, 1.7vw, 12px);
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 2px 7px rgba(146, 64, 14, .08);
  white-space: nowrap;
}

.rk-cd__decision-title .rk-cd__decision-countdown {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  margin-left: 0;
  margin-top: 0 !important;
}

.rk-cd__big-chance .rk-cd__decision-card--best .rk-cd__decision-title,
.rk-cd__planner-alert .rk-cd__decision-card--best .rk-cd__decision-title {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
}

.rk-cd__big-chance .rk-cd__decision-title .rk-cd__decision-countdown,
.rk-cd__planner-alert .rk-cd__decision-title .rk-cd__decision-countdown {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin-top: 0;
}

@media screen and (max-width: 520px) {
  .rk-cd__decision-card--best .rk-cd__decision-title,
  .rk-cd__big-chance .rk-cd__decision-card--best .rk-cd__decision-title,
  .rk-cd__planner-alert .rk-cd__decision-card--best .rk-cd__decision-title {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .rk-cd__decision-title .rk-cd__decision-countdown,
  .rk-cd__big-chance .rk-cd__decision-title .rk-cd__decision-countdown,
  .rk-cd__planner-alert .rk-cd__decision-title .rk-cd__decision-countdown {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}

@media screen and (max-width: 680px) {
  .rk-cd__decision-card--best .rk-cd__decision-title {
    gap: 5px 10px;
  }
  .rk-cd__decision-countdown {
    margin-left: 0;
  }
}

.rk-cd__decision-countdown.is-active {
  border-color: rgba(190, 24, 93, .24);
  background: #fff1f2;
  color: #be123c;
}

.rk-cd__decision-countdown.is-upcoming {
  border-color: rgba(2, 132, 199, .22);
  background: #eff8ff;
  color: #075985;
}

.rk-cd__decision-meta {
  display: grid;
  gap: 2px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.rk-cd__decision-score-note {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.rk-cd__decision-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
}

.rk-cd__decision-rank {
  flex: 0 0 auto;
}

.rk-cd .rk-cd__decision-rank.badge {
  display: inline-flex !important;
  width: 78px !important;
  height: 26px !important;
  min-width: 78px !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
}

.rk-cd .rk-cd__decision-rank.badge > span {
  font-size: 10px !important;
}

.rk-cd__decision-rank-meaning {
  color: #7a4d00;
  font-size: 11px;
  font-weight: 900;
}

.rk-cd__decision-stars {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 2px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(139, 83, 0, .16);
  white-space: nowrap;
}

.rk-star-symbol,
.rk-cd__bc-star {
  color: #f2a900 !important;
}

.rk-star-number,
.rk-cd__bc-star .rk-stars-value {
  color: #0f172a !important;
}

.rk-cd__decision-stars small {
  color: #8a6a20;
  font-size: 9px;
  font-weight: 800;
}

.rk-cd__decision-same-day {
  display: none;
}

.rk-cd__planner-decisions.is-same-day {
  grid-template-columns: minmax(0, 1fr);
}

.rk-cd__planner-decisions.is-same-day .rk-cd__decision-card--today {
  display: none;
}

.rk-cd__planner-decisions.is-same-day .rk-cd__decision-same-day:not(:empty) {
  display: inline-flex;
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid rgba(217, 154, 22, 0.35);
  border-radius: 999px;
  background: #fff7d6;
  color: #7a4d00;
  font-size: 11px;
  font-weight: 900;
}

.rk-cd__decision-card.is-strong .rk-cd__decision-meta {
  color: #b45309;
}

.rk-cd:not(.rk-cd--show-scores) .rk-cd__decision-meta {
  gap: 0 !important;
  line-height: 1.2 !important;
}

.rk-cd:not(.rk-cd--show-scores) .rk-cd__decision-campaigns {
  margin-top: -2px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.rk-cd__decision-campaigns {
  display: block;
  padding: 6px 9px;
  border: 1px solid rgba(15, 63, 95, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rk-cd__decision-card.is-empty {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: none;
}

@media (max-width: 640px) {
  .rk-cd__planner-decisions {
    grid-template-columns: 1fr;
  }
}

.rk-cd__planner-slot-announcement {
  position: relative;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  font-size: 11px;
  overflow: hidden;
}

.rk-cd__planner-slot-announcement:empty {
  display: none;
}

.rk-cd__planner-slot-announcement::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.rk-cd__planner-slot.is-peak .rk-cd__planner-slot-announcement {
  border-color: rgba(217, 119, 6, 0.3);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.12);
}

.rk-cd__planner-slot.is-peak .rk-cd__planner-slot-announcement::before {
  background: linear-gradient(180deg, #f59e0b, #ef4444);
}

.rk-cd__planner-slot-announcement .rk-cd__bc-rating,
.rk-cd__planner-slot-announcement .rk-cd__bc-names {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
}

.rk-cd__planner-slot-announcement .rk-cd__bc-names {
  margin-top: 6px;
  align-items: flex-start;
}

.rk-cd__planner-slot-announcement .rk-cd__bc-text {
  font-weight: 900;
  color: #0f3f5f !important;
}

.rk-cd__planner-slot-announcement > div:first-child,
.rk-cd__planner-slot-announcement > div:first-child span {
  color: #0f3f5f !important;
  text-shadow: none !important;
}

.rk-cd__planner-slot-announcement .rk-cd__bc-countdown,
.rk-cd__planner-slot-announcement .rk-cd__bc-period {
  margin-top: 6px;
  color: #475569;
  font-weight: 700;
}

.rk-relative-score {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.rk-cd__planner-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #0f3f5f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rk-cd__planner-chip-separator {
  display: inline-flex;
  align-items: center;
  align-self: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* Keep calendar counts on the same baseline even when 本日／明日 is shown. */
.rk-cd__planner-day-label {
  display: grid !important;
  grid-template-rows: 12px 12px !important;
  align-content: start !important;
  min-height: 24px !important;
}
.rk-cd__planner-day-relative {
  grid-row: 1 !important;
  margin: 0 !important;
  line-height: 12px !important;
}
.rk-cd__planner-day-date {
  grid-row: 2 !important;
  line-height: 12px !important;
}
.rk-cd__planner-day-count {
  min-height: 20px !important;
  margin-top: 3px !important;
  margin-bottom: 2px !important;
}
.rk-cd__planner-day-label,
.rk-cd__planner-day-caption {
  position: relative;
  z-index: 3;
}
.rk-cd__planner-day-count {
  position: relative;
  z-index: 2;
}

.rk-cd__planner-empty,
.rk-cd__planner-detail-empty {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.rk-cd__planner-details {
  margin-top: 8px;
  padding: 0 2px;
}

.rk-cd__planner-details summary {
  position: relative;
  z-index: 2;
  min-height: 40px;
  display: flex;
  align-items: center;
  color: #006ecb;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.rk-cd__planner-detail-day {
  padding: 8px 0;
  border-top: 1px solid rgba(168, 140, 74, 0.18);
}

.rk-cd__planner-detail-title {
  margin-bottom: 5px;
  color: #9e8038;
  font-size: 12px;
  font-weight: 900;
}

.rk-cd__planner-detail-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.35;
}

.rk-cd__planner-detail-row span {
  color: #64748b;
  font-weight: 800;
}

.rk-cd__planner-detail-row strong {
  color: #1f2937;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 700px) {
  .rk-cd__planner {
    margin: 14px 14px 16px;
    padding: 14px;
  }

  .rk-cd__planner-summary {
    padding: 14px;
  }

  .rk-cd__planner-score {
    font-size: 22px;
  }

  .rk-cd__planner-date,
  .rk-cd__planner-section-head {
    font-size: 14px;
  }

  .rk-cd__planner-slot {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* === Gold Banner === */
.rk-cd__gold-banner {
  background: linear-gradient(to right, #FFD700, #FDB931, #FFD700);
  color: #333;
  text-align: center;
  padding: 10px;
  margin: 10px 12px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #FFF;
  animation: rk-shimm-gold 4s linear infinite;
  background-size: 200% auto;
}

@keyframes rk-shimm-gold {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* === Recommendation Badges === */
.rk-cd__rank-badge {
  padding: 6px 18px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.badge-wait { background: #bf0000; color: #fff; border: none; }
.badge-best { background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%); color: #fff; }
.badge-god { background: #111; color: #ffd700; border: 2px solid #ffd700; }

/* === Campaign Guide Table (Premium Metallic Style) === */
.rk-guide-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 24px;
    font-family: var(--rk-font-family);
    background: #f0f2f5; /* 少し濃い背景でカードを際立たせる */
    border-radius: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rk-guide-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent; /* モバイルでは透かす */
    border: none;
}

.rk-guide-table thead th {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    color: #fff;
    text-align: left;
    padding: 18px 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 3px solid #a88c4a;
}

/* Specific Column Styles & Layout (PC) */
@media screen and (min-width: 769px) {
    .rk-guide-table { 
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        table-layout: fixed !important; 
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid #d1d1d1;
    }
    /* 10列をコンテナ内に収める配分 */
    .rk-guide-table th:nth-child(1), .rk-guide-table td:nth-child(1) { width: 9%; font-size: 10px; padding: 10px 2px; text-align: center; }
    .rk-guide-table th:nth-child(2), .rk-guide-table td:nth-child(2) { width: 8%; font-size: 10px; padding: 10px 2px; text-align: center; }
    .rk-guide-table th:nth-child(3), .rk-guide-table td:nth-child(3) { width: 14%; font-size: 12px; padding: 10px 6px; }
    .rk-guide-table th:nth-child(4), .rk-guide-table td:nth-child(4) { width: 9%; font-size: 11px; padding: 10px 4px; }
    .rk-guide-mult   { width: 8%;  font-size: 10px; padding: 10px 2px; }
    .rk-guide-pts    { width: 8%;  font-size: 10px; padding: 10px 2px; }
    .rk-guide-cap    { width: 10%; font-size: 10px; padding: 10px 2px; }
    .rk-guide-rate,
    .rk-guide-efficiency { width: 8%;  font-size: 10px; padding: 10px 2px; text-align: left; }
    .rk-guide-note   { width: 18%; font-size: 11px; padding: 10px 8px; }
    .rk-guide-detail { width: 8%;  text-align: center; padding: 10px 2px; }
    
    .rk-guide-table tbody tr:nth-child(even) { background: #fcfcfc; }
    .rk-guide-table td { border-bottom: 1px solid #eee; vertical-align: middle; }
}

/* Category Badge Styles */
.rk-cat-cell span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

/* Category Colors */
.rk-cat-big_event span { background: linear-gradient(135deg, #9E8038 0%, #7d652d 100%); } /* 大型イベント: 金 */
.rk-cat-irregular span { background: #ff6b00; } /* 不定期: オレンジ */
.rk-cat-regular span   { background: #0073aa; } /* 定期: 青 */
.rk-cat-always span    { background: #00a870; } /* 常時: 緑 */

.rk-guide-name { font-weight: 800; color: #bf0000 !important; line-height: 1.3; word-break: break-all; }
.rk-guide-mult { font-weight: 700; color: #00a870; text-align: center; }
.rk-guide-pts  { font-weight: 700; color: #cc6600; text-align: center; }
.rk-guide-cap  { font-weight: 700; color: #333; background: rgba(168, 140, 74, 0.05); text-align: center; }
.rk-guide-note { line-height: 1.4; word-break: break-all; }

/* Mobile Card Layout */
@media screen and (max-width: 768px) {
    .rk-guide-table, .rk-guide-table thead, .rk-guide-table tbody, .rk-guide-table th, .rk-guide-table td, .rk-guide-table tr {
        display: block;
    }
    .rk-guide-table thead { display: none; }
    
    .rk-guide-table tr {
        margin-bottom: 24px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
        overflow: hidden;
    }
    
    .rk-guide-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start; /* 複数行でも上合わせ */
        min-height: 44px;
        gap: 5px;
        box-sizing: border-box;
    }
    
    /* ラベル部分を固定幅にして値を縦に揃える */
    .rk-guide-table td::before {
        content: attr(data-label);
        max-width: 100%;
        min-width: 0;
        font-weight: 800;
        color: #94a3b8;
        font-size: 10.5px;
        line-height: 1.35;
        margin-top: 3px; /* テキストとの上部位置合わせ */
        text-align: left;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    .rk-guide-table td > .rk-guide-value {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .rk-guide-table .rk-guide-rate {
        text-align: left !important;
    }

    .rk-guide-table .rk-guide-rate > .rk-guide-value {
        text-align: left !important;
    }

    /* 値の部分 */
    .rk-guide-table td {
        text-align: left !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #333;
    }

    .rk-guide-name { font-weight: 900 !important; color: #bf0000 !important; font-size: 15px !important; }
    .rk-guide-note { line-height: 1.6 !important; font-size: 13px !important; color: #444 !important; }
    
    .rk-guide-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding: 20px !important;
        background: #f8fafc;
    }
    
    .rk-guide-table td:last-child::before {
        display: none; /* 詳細ボタンのラベルは非表示に */
    }
    
    .rk-detail-btn {
        width: 100%;
        max-width: 240px;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .rk-guide-table .rk-guide-detail {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px !important;
        background: #f8fafc !important;
    }

    .rk-guide-table .rk-guide-detail::before {
        content: none !important;
        display: none !important;
    }
}

/* Details Modal */
.rk-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff !important;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* === Glassmorphism Modal === */
.rk-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rk-modal-overlay.is-active { display: flex; opacity: 1; }

.rk-modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh; /* 画面の85%を上限とする */
    overflow-y: auto; /* 縦スクロールを有効化 */
    -webkit-overflow-scrolling: touch; /* iOSでの滑らかなスクロール */
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

@media screen and (max-width: 600px) {
    .rk-modal-content {
        padding: 24px 20px;
        max-height: 90vh; /* スマホではより広く確保 */
    }
}

.rk-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Matrix Table in Modal */
.rk-guide-matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.rk-guide-matrix-table th { background: #334155; color: #fff; padding: 12px; font-size: 12px; }
.rk-guide-matrix-table td { padding: 12px; text-align: center; border: 1px solid #e2e8f0; font-size: 14px; }

/* Visual refresh aligned with the site header */
.rk-cd {
  border-color: rgba(168, 140, 74, 0.8) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(15, 63, 95, 0.08) !important;
}

#rk-matrix-v6.matrix-container,
#rk-matrix-v6.rk-matrix-container {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

#rk-matrix-v6 .matrix-table {
    min-width: 1900px !important;
    height: auto !important;
}

#rk-recalculate-matrix.rk-matrix-recalculate-visible {
    position: sticky;
    top: 8px;
    z-index: 30;
    display: inline-block !important;
    margin: 0 0 8px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.rk-guide-table tbody,
.rk-guide-table tr,
.rk-guide-table td,
#rk-matrix-v6 .matrix-table tbody,
#rk-matrix-v6 .matrix-table tr,
#rk-matrix-v6 .matrix-table td {
    height: auto !important;
    min-height: 0 !important;
}

@media screen and (min-width: 769px) {
    .rk-guide-container,
    #rk-matrix-v6 [data-rk-matrix-v6-container] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .rk-wide-table-scroll {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: none !important;
        overflow: visible !important;
        scrollbar-gutter: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rk-guide-table th,
    .rk-guide-table td,
    #rk-matrix-v6 .matrix-table th,
    #rk-matrix-v6 .matrix-table td {
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    #rk-matrix-v6 .rk-cell-pattern,
    #rk-matrix-v6 .rk-cell-summary,
    #rk-matrix-v6 .rk-cell-strat {
        white-space: normal !important;
        word-break: normal !important;
    }
}

/* === Campaign Guide: Portal-aligned skin === */
.rk-guide-container.rk-cd {
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fffdf8 !important;
  border: 2px solid #a88732 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font-family: var(--rk-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

.rk-guide-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #9e8038 0%, #6f551e 100%);
  color: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: background .15s ease;
}

.rk-guide-panel-head:hover {
  background: linear-gradient(135deg, #a98a3f 0%, #765b22 100%);
}

.rk-guide-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  margin-left: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0 !important;
  font-weight: 900 !important;
  line-height: 28px !important;
  text-align: center !important;
}

.rk-guide-toggle span {
  display: block !important;
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 26px !important;
  text-align: center !important;
  font-size: 0 !important;
}

.rk-guide-toggle span::before,
.rk-guide-toggle span::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  background: transparent !important;
  content: "▼" !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 28px !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

.rk-guide-toggle span::after {
  display: none !important;
}

.rk-guide-toggle[aria-expanded="true"] span::before {
  transform: translate(-50%, -50%) rotate(180deg) !important;
}

.rk-guide-toggle:hover {
  background: transparent !important;
}

.rk-guide-container.rk-cd.is-collapsed .rk-guide-panel-body {
  display: none !important;
}

.rk-guide-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.rk-guide-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rk-guide-panel-copy strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.rk-guide-panel-copy small {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.rk-guide-container.rk-cd .rk-wide-table-scroll {
  margin: 0 !important;
  padding: 14px !important;
  background: #fffdf8 !important;
  box-sizing: border-box !important;
  max-height: none !important;
  overflow: visible !important;
}

.rk-guide-container.rk-cd .rk-guide-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border: 1px solid rgba(168, 135, 50, 0.34) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.rk-guide-container.rk-cd .rk-guide-table thead th {
  box-sizing: border-box !important;
  padding: 11px 7px !important;
  background: #f5eddb !important;
  color: #5f4618 !important;
  border-right: 1px solid rgba(168, 135, 50, 0.28) !important;
  border-bottom: 2px solid #a88732 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.rk-guide-container.rk-cd .rk-guide-table td {
  box-sizing: border-box !important;
  padding: 11px 7px !important;
  border-right: 1px solid rgba(168, 135, 50, 0.20) !important;
  border-bottom: 1px solid rgba(168, 135, 50, 0.18) !important;
  color: #2f3640 !important;
  vertical-align: middle !important;
  line-height: 1.45 !important;
}

.rk-guide-container.rk-cd .rk-guide-table th:last-child,
.rk-guide-container.rk-cd .rk-guide-table td:last-child {
  border-right: none !important;
}

@media screen and (min-width: 769px) {
  .rk-guide-container.rk-cd .rk-guide-table th:nth-child(1),
  .rk-guide-container.rk-cd .rk-guide-table td:nth-child(1) {
    width: 9% !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table th:nth-child(2),
  .rk-guide-container.rk-cd .rk-guide-table td:nth-child(2) {
    width: 8% !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table th:nth-child(3),
  .rk-guide-container.rk-cd .rk-guide-table td:nth-child(3) {
    width: 14% !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table th:nth-child(4),
  .rk-guide-container.rk-cd .rk-guide-table td:nth-child(4) {
    width: 9% !important;
  }

  .rk-guide-container.rk-cd .rk-guide-mult,
  .rk-guide-container.rk-cd .rk-guide-pts {
    width: 8% !important;
    text-align: center !important;
  }

  .rk-guide-container.rk-cd .rk-guide-cap {
    width: 10% !important;
    text-align: center !important;
  }

  .rk-guide-container.rk-cd .rk-guide-rate {
    width: 8% !important;
    text-align: left !important;
  }

  .rk-guide-container.rk-cd .rk-guide-note {
    width: 18% !important;
    min-width: 0 !important;
    padding-right: 12px !important;
  }

  .rk-guide-container.rk-cd .rk-guide-detail {
    width: 8% !important;
    min-width: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
  }
}

.rk-guide-container.rk-cd .rk-guide-table tbody tr:nth-child(even) {
  background: #fffaf0 !important;
}

.rk-guide-container.rk-cd .rk-guide-table tbody tr:hover {
  background: #fff6dc !important;
}

.rk-guide-container.rk-cd .rk-guide-name {
  color: #bf0000 !important;
  font-weight: 900 !important;
}

.rk-guide-container.rk-cd .rk-guide-mult {
  color: #bf0000 !important;
}

.rk-guide-container.rk-cd .rk-guide-pts {
  color: #8a6500 !important;
}

.rk-guide-container.rk-cd .rk-guide-cap {
  background: rgba(168, 135, 50, 0.08) !important;
  color: #5f4618 !important;
}

.rk-guide-container.rk-cd .rk-guide-rate,
.rk-guide-container.rk-cd .rk-guide-efficiency {
  background: rgba(191, 0, 0, 0.05) !important;
  color: #bf0000 !important;
  font-weight: 800 !important;
  text-align: left !important;
}

.rk-guide-container.rk-cd .rk-guide-table td[data-label="上限到達時還元率"],
.rk-guide-container.rk-cd .rk-guide-table td[data-label="上限到達時還元率"] > .rk-guide-value {
  text-align: left !important;
}

.rk-guide-container.rk-cd .rk-detail-btn {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  padding: 6px 4px !important;
  border: 1px solid #bf0000 !important;
  border-radius: 999px !important;
  background: #bf0000 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
}

.rk-guide-container.rk-cd .rk-detail-btn:hover {
  background: #a40000 !important;
}

.rk-guide-container.rk-cd .rk-guide-footer {
  margin: 0 !important;
  padding: 12px 18px 14px !important;
  background: #fff8e8 !important;
  border-top: 1px solid rgba(168, 135, 50, 0.28) !important;
  color: #6f551e !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.rk-guide-container.rk-cd .rk-guide-footer p {
  margin: 2px 0 !important;
}

@media screen and (max-width: 768px) {
  .rk-guide-container.rk-cd {
    margin: 16px 0 !important;
    border-radius: 8px !important;
  }

  .rk-guide-panel-head {
    min-height: 52px;
    padding: 9px 12px;
  }

  .rk-guide-panel-copy strong {
    font-size: 15px;
  }

  .rk-guide-container.rk-cd .rk-wide-table-scroll {
    padding: 10px !important;
    overflow: visible !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table tr {
    margin-bottom: 12px !important;
    border: 1px solid rgba(168, 135, 50, 0.34) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td {
    padding: 11px 12px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(168, 135, 50, 0.16) !important;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr) !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td::before {
    color: #8a6a27 !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table .rk-guide-detail {
    display: flex !important;
    justify-content: center !important;
    padding: 14px !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table .rk-guide-detail::before {
    content: none !important;
    display: none !important;
  }
}
.rk-cd .rk-cd__head>.rk-cd__title {
  background: linear-gradient(135deg, #9e8038 0%, #6f551e 100%) !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}
.rk-cd__message {
  padding: 12px 14px !important;
  background: #fffdf7 !important;
  color: #5f4618 !important;
  border-bottom: 1px solid rgba(168, 140, 74, 0.24) !important;
  font-weight: 700 !important;
}
.rk-cd__planner {
  border-radius: 10px;
}
.rk-cd__planner-summary {
  position: relative;
  overflow: hidden;
  border: none;
}
.rk-cd__planner-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #94a3b8;
}
.rk-cd__planner.is-good .rk-cd__planner-summary::before {
  background: linear-gradient(90deg, #006ecb, #9e8038);
}
.rk-cd__planner.is-hot .rk-cd__planner-summary::before {
  background: linear-gradient(90deg, #bf0000, #f6c445, #006ecb);
}
.rk-cd__planner-hero {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.rk-cd__planner-verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.8);
}
.rk-cd__planner.is-good .rk-cd__planner-verdict {
  background: #006ecb;
  color: #fff;
}
.rk-cd__planner.is-hot .rk-cd__planner-verdict {
  background: radial-gradient(circle at 30% 25%, #fff3bf 0%, #f6c445 35%, #bf0000 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
.rk-cd__planner-score {
  background: #334155;
}
.rk-cd__planner.is-good .rk-cd__planner-score {
  background: #006ecb;
}
.rk-cd__planner.is-hot .rk-cd__planner-score {
  background: #bf0000;
}
.rk-cd__planner-day {
  background: #fff7df;
  border-color: #d9b85c;
}
.rk-cd__planner-day.is-today {
  background: #f8fbff;
  border-color: #087dc1;
  box-shadow: none;
}
.rk-cd__planner-day.count-0 .rk-cd__planner-day-count {
  color: #94a3b8;
}
.rk-cd__planner-day.count-1 .rk-cd__planner-day-count {
  color: #111827;
}
.rk-cd__planner-day.count-2 .rk-cd__planner-day-count {
  color: #b87333;
}
.rk-cd__planner-day.count-3 .rk-cd__planner-day-count {
  position: relative;
  z-index: 0;
  overflow: visible;
  color: #3f4752;
  background: linear-gradient(110deg, #202630 8%, #727d8d 31%, #ffffff 45%, #aeb8c7 52%, #f8fafc 60%, #596473 73%, #1f2937 92%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 26px !important;
  font-weight: 950 !important;
  -webkit-text-stroke: .6px #374151;
  text-shadow: 0 1px 0 #fff, 0 -1px 0 #111827;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.98)) drop-shadow(0 0 5px rgba(147,197,253,.9)) drop-shadow(0 0 9px rgba(100,116,139,.72));
  animation: rk-calendar-metal-shine 2.8s linear infinite;
}
.rk-cd__planner-day.count-3 .rk-cd__planner-day-count::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.9) 0 2deg, transparent 2deg 14deg), radial-gradient(circle, rgba(219,234,254,.95) 0 18%, rgba(147,197,253,.48) 34%, rgba(255,255,255,.18) 52%, transparent 72%);
  filter: blur(.35px);
  opacity: .9;
  pointer-events: none;
  animation: rk-calendar-silver-halo 3.2s ease-in-out infinite;
}
.rk-cd__planner-day.count-4 .rk-cd__planner-day-count {
  color: #b8860b;
  background: linear-gradient(110deg, #8a5a00 15%, #ffd700 38%, #fff8b0 52%, #d59b00 68%, #fff4a3 80%, #8a5a00 92%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 #fff4b8;
  animation: rk-calendar-metal-shine 2.4s linear infinite;
}
@keyframes rk-calendar-metal-shine {
  from { background-position: 180% 0; }
  to { background-position: -60% 0; }
}
@keyframes rk-calendar-silver-halo {
  0%, 100% { opacity: .58; transform: translate(-50%, -50%) scale(.88) rotate(0deg); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rk-cd__planner-day.count-3 .rk-cd__planner-day-count,
  .rk-cd__planner-day.count-4 .rk-cd__planner-day-count {
    animation: none;
  }
  .rk-cd__planner-day.count-3 .rk-cd__planner-day-count::before {
    animation: none;
  }
}
.rk-cd__planner-day.count-5 .rk-cd__planner-day-count {
  position: relative;
  z-index: 0;
  overflow: visible;
  color: #b8860b;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #0ea5e9, #6366f1, #d946ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rk-cd__planner-day.count-4 .rk-cd__planner-day-count {
  position: relative;
  z-index: 0;
  overflow: visible;
}
.rk-cd__planner-day.count-4 .rk-cd__planner-day-count::before,
.rk-cd__planner-day.count-5 .rk-cd__planner-day-count::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(.35px);
  pointer-events: none;
}
.rk-cd__planner-day.count-4 .rk-cd__planner-day-count::before {
  background: repeating-conic-gradient(from 0deg, rgba(255,248,176,.95) 0 2deg, transparent 2deg 14deg), radial-gradient(circle, rgba(255,244,163,.98) 0 18%, rgba(255,193,7,.58) 35%, rgba(255,215,0,.2) 54%, transparent 72%);
  animation: rk-calendar-gold-halo 3s ease-in-out infinite;
}
.rk-cd__planner-day.count-5 .rk-cd__planner-day-count::before {
  background: repeating-conic-gradient(from 0deg, rgba(239,68,68,.85) 0 2deg, transparent 2deg 10deg, rgba(34,197,94,.85) 10deg 12deg, transparent 12deg 20deg, rgba(59,130,246,.85) 20deg 22deg, transparent 22deg 30deg), radial-gradient(circle, rgba(255,255,255,.9) 0 14%, rgba(250,204,21,.35) 28%, rgba(59,130,246,.3) 45%, rgba(217,70,239,.18) 58%, transparent 74%);
  animation: rk-calendar-rainbow-halo 3.4s linear infinite;
}
@keyframes rk-calendar-gold-halo {
  0%, 100% { opacity: .62; transform: translate(-50%, -50%) scale(.9) rotate(0deg); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(7deg); }
}
@keyframes rk-calendar-rainbow-halo {
  from { opacity: .78; transform: translate(-50%, -50%) scale(.96) rotate(0deg); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(180deg); }
  to { opacity: .78; transform: translate(-50%, -50%) scale(.96) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rk-cd__planner-day.count-4 .rk-cd__planner-day-count::before,
  .rk-cd__planner-day.count-5 .rk-cd__planner-day-count::before { animation: none; }
}
.rk-cd__planner-slot {
  border-left: 4px solid #dbeafe;
  padding-left: 8px;
}
.rk-cd__planner-slot.is-overlap {
  border-left-color: #d9b85c;
  background: linear-gradient(90deg, rgba(254,247,223,0.9), #fff);
}
.rk-cd__planner-slot.is-peak {
  border-left-color: #bf0000;
  background: linear-gradient(90deg, rgba(255,232,232,0.95), #fff);
}
.rk-cd__big-chance {
  margin: 10px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(15, 63, 95, 0.12) !important;
}
.rk-cd__section-title {
  margin: 10px 10px 6px !important;
  padding: 8px 46px 8px 10px !important;
  border-bottom: 2px solid rgba(168, 140, 74, 0.35) !important;
  color: #5f4618 !important;
  text-align: left !important;
  font-size: 14px !important;
}
.rk-cd__card {
  margin: 0 10px 8px !important;
  border-radius: 9px !important;
  border-color: #dbeafe !important;
  box-shadow: 0 3px 12px rgba(15, 63, 95, 0.06) !important;
}
.rk-cd__card.rk-is-live {
  border-color: #00a870 !important;
}
.rk-cd__name {
  color: #0f3f5f !important;
}
@media screen and (max-width: 420px) {
  .rk-cd__planner-hero {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .rk-cd__planner-verdict {
    font-size: 14px;
  }
  .rk-cd__planner-score {
    font-size: 16px;
  }
}

/* Cockpit layout */
.rk-cd {
  background: #fffdf7 !important;
  overflow: hidden !important;
}
.rk-cd__planner {
  margin: 10px !important;
  padding: 10px !important;
  background: #f8fbff !important;
  border: 1px solid rgba(0, 110, 203, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 24px rgba(15, 63, 95, 0.08) !important;
}
.rk-cd__planner-summary {
  display: grid !important;
  gap: 8px !important;
  padding: 10px !important;
  background: #ffffff !important;
  border: 1px solid rgba(168, 140, 74, 0.28) !important;
  border-radius: 8px !important;
}
.rk-cd__planner-hero {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 9px !important;
}
.rk-cd__planner-verdict {
  border-radius: 8px !important;
  aspect-ratio: 1 !important;
}
.rk-cd__planner-main {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}
.rk-cd__planner-score {
  border-radius: 6px !important;
  padding: 5px 8px !important;
  line-height: 1 !important;
}
.rk-cd__planner-date {
  font-size: 12px !important;
  color: #5f4618 !important;
}
.rk-cd__planner-names {
  margin-top: 5px !important;
  padding: 7px 8px !important;
  background: #fffdf7 !important;
  border: 1px solid rgba(168, 140, 74, 0.22) !important;
  border-radius: 8px !important;
  color: #0f3f5f !important;
  font-weight: 900 !important;
}
.rk-cd__planner-alert {
  min-width: 0 !important;
}
.rk-cd__planner-alert .rk-cd__big-chance {
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(168, 140, 74, 0.34) !important;
  box-shadow: none !important;
}
.rk-cd__planner-alert .rk-cd__bc-text,
.rk-cd__planner-alert .rk-cd__bc-countdown,
.rk-cd__planner-alert .rk-cd__bc-names-dynamic {
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.rk-cd__planner-alert .rk-cd__bc-star {
  color: #b45309 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 8px rgba(245, 158, 11, 0.18) !important;
}
.rk-cd__planner-alert .rk-cd__bc-names-dynamic,
.rk-cd__planner-alert .rk-cd__bc-message,
.rk-cd__planner-alert [data-rk-eval-summary] {
  color: #001f3f !important;
}
.rk-cd__planner-alert .rk-cd__bc-rating {
  margin: 2px 0 3px !important;
}
.rk-cd__planner-calendar {
  gap: 5px !important;
  margin-top: 10px !important;
}
.rk-cd__planner-day {
  min-width: 0 !important;
  padding: 7px 3px !important;
  border-radius: 8px !important;
}
.rk-cd__planner-day-count {
  font-size: 24px !important;
  line-height: 1 !important;
}
.rk-cd__planner-timeline {
  margin-top: 10px !important;
  padding: 10px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 110, 203, 0.15) !important;
  border-radius: 8px !important;
  container-type: inline-size;
}
.rk-cd__planner-section-head {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  color: #0f3f5f !important;
}
.rk-cd__planner-section-head::before {
  content: "";
  width: 7px;
  height: 18px;
  border-radius: 2px;
  background: #9e8038;
  flex: 0 0 auto;
}
.rk-cd__planner-slot {
  grid-template-columns: 68px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid #e6eef8 !important;
  border-left-width: 4px !important;
  border-radius: 8px !important;
  background: #fbfdff !important;
}
.rk-cd__planner-slot + .rk-cd__planner-slot {
  margin-top: 7px !important;
}
.rk-cd__planner-slot-time {
  font-size: 11px !important;
  line-height: 1.25 !important;
}
.rk-cd__planner-slot-count {
  font-size: 12px !important;
}
.rk-cd__planner-chip {
  border-radius: 6px !important;
  border-color: rgba(0, 110, 203, 0.16) !important;
  background: #eef6ff !important;
  color: #0f3f5f !important;
}
.rk-cd__planner-details {
  margin-top: 10px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}
.rk-cd__section-title {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 12px 10px 7px !important;
  padding: 8px 46px 8px 10px !important;
  background: #ffffff !important;
  border: 1px solid rgba(168, 140, 74, 0.28) !important;
  border-left: 5px solid #9e8038 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(15, 63, 95, 0.05) !important;
}
.rk-cd__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 0 10px 4px !important;
}
.rk-cd__card {
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 110, 203, 0.16) !important;
  border-left: 5px solid #94a3b8 !important;
  background: #ffffff !important;
}
.rk-cd__card.rk-is-live {
  border-left-color: #00a870 !important;
  background: #f6fffb !important;
}
.rk-cd__card.rk-is-soon,
.rk-cd__card.rk-is-entry {
  border-left-color: #d9a328 !important;
  background: #fffaf0 !important;
}
.rk-cd__card.rk-is-always {
  border-left-color: #006ecb !important;
}
.rk-cd__card-content {
  padding: 10px !important;
}
.rk-cd__name {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-bottom: 7px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}
.rk-cd__dot {
  width: 10px !important;
  height: 10px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}
.rk-cd__status {
  border-radius: 6px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  width: auto !important;
  min-height: 24px !important;
  margin: 0 0 6px !important;
  padding: 3px 8px !important;
  align-items: center !important;
  background: #eef6ff !important;
  color: #0f3f5f !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: left !important;
}
.rk-cd__card.rk-is-live .rk-cd__status {
  background: #e8fff4 !important;
  color: #05734f !important;
}
.rk-cd__card.rk-is-soon .rk-cd__status,
.rk-cd__card.rk-is-entry .rk-cd__status {
  background: #fff3cf !important;
  color: #9a5f00 !important;
}
.rk-cd__date-row,
.rk-cd__period-row {
  margin: 0 0 6px !important;
  color: #5f4618 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}
.rk-cd__date-label,
.rk-cd__period-sep {
  color: #64748b !important;
  font-size: 11px !important;
}
.rk-cd__date {
  font-size: 18px !important;
  color: #0f3f5f !important;
}
.rk-cd__weekday {
  font-size: 12px !important;
}
.rk-cd__countdown {
  margin: 2px 10px 8px !important;
  padding: 0 !important;
  color: #bf0000 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  background: transparent !important;
}
.rk-cd__buttons {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  padding: 0 10px 10px !important;
}
.rk-cd__link,
.rk-cd__button {
  min-height: 30px !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}
@media screen and (min-width: 700px) {
  .rk-cd__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .rk-cd__planner {
    margin: 12px 14px !important;
  }
}

/* Fused decision cockpit */
.rk-cd__planner-summary {
  position: relative !important;
  grid-template-columns: 1fr !important;
  padding: 8px !important;
  background:
    linear-gradient(90deg, rgba(0, 110, 203, 0.85), rgba(158, 128, 56, 0.85)) top left / 100% 3px no-repeat,
    #ffffff !important;
}
.rk-cd__planner-summary::after {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  right: 9px !important;
  width: 78px !important;
  height: 38px !important;
  pointer-events: none !important;
  opacity: 0.16 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='156' height='76' viewBox='0 0 156 76'%3E%3Cg fill='none' stroke='%239e8038' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 54C31 18 58 11 82 34s45 27 64-8'/%3E%3Cpath d='M29 55h28M98 17h34M118 51h18'/%3E%3Ccircle cx='82' cy='34' r='9'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}
.rk-cd__planner-hero {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: start !important;
}
.rk-cd__planner-verdict {
  width: 64px !important;
  height: 64px !important;
  min-height: 0 !important;
  align-self: start !important;
  background: linear-gradient(180deg, #128ad8 0%, #006ecb 100%) !important;
  border: 3px solid #d9ecff !important;
  box-shadow: 0 6px 13px rgba(0, 110, 203, 0.22) !important;
}
.rk-cd__planner-hero-main {
  min-width: 0 !important;
  display: contents !important;
  gap: 5px !important;
}
.rk-cd__planner-kicker {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 16px !important;
  grid-column: 2 !important;
  align-self: center !important;
  color: #8a6b24 !important;
}
.rk-cd__planner-kicker::after {
  content: "" !important;
  height: 1px !important;
  flex: 1 1 auto !important;
  background: linear-gradient(90deg, rgba(158, 128, 56, 0.55), rgba(158, 128, 56, 0)) !important;
}
.rk-cd__planner-alert .rk-cd__big-chance {
  position: relative !important;
  overflow: hidden !important;
  min-height: 0 !important;
  display: grid !important;
  align-content: center !important;
  gap: 2px !important;
  padding: 7px 46px 7px 10px !important;
  text-align: center !important;
}

.rk-cd__planner-day {
  min-width: 0 !important;
  overflow: hidden !important;
}
.rk-cd__planner-day-label,
.rk-cd__planner-day-caption {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}
.rk-cd__planner-day-label {
  font-size: clamp(8px, 2.5cqw, 10px) !important;
  letter-spacing: -0.04em !important;
}
.rk-cd__planner-day-caption {
  min-height: 2.3em !important;
  font-size: clamp(8px, 2.5cqw, 10px) !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.rk-cd__bc-rating .rk-stars-value,
.rk-cd__bc-rating .rk-stars-score {
  display: inline !important;
  opacity: 1 !important;
}

#rk-matrix-v6 .matrix-info-bar div:has(> .rk-sync-victory-mult),
#rk-matrix-v6 .matrix-info-bar div:has(> .rk-sync-marathon-cap),
#rk-matrix-v6 .matrix-info-bar div:has(> .rk-sync-tax-rate),
#rk-matrix-v6 .matrix-info-bar div:has(> .rk-sync-planned-amount),
#rk-matrix-v6 .matrix-info-bar div:has(> .rk-sync-shop-count),
#rk-matrix-v6 .matrix-info-bar div:has(> label > .rk-sync-repeat),
#rk-matrix-v6 .matrix-info-bar div:has(> label > .rk-sync-relative) {
  background: #f1f3f5 !important;
  border-color: #cbd5e1 !important;
}
.rk-cd__planner-alert {
  grid-column: 1 / -1 !important;
  margin-top: 6px !important;
}
.rk-cd__planner-alert-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 6px !important;
  padding: 3px 10px !important;
  border: 1px solid rgba(158, 128, 56, 0.38) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.54) !important;
  color: #6f5100 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}
.rk-cd__planner-alert-title::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #006ecb;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.rk-cd__planner-main,
.rk-cd__planner-names {
  grid-column: 2 !important;
}
.rk-cd__planner-alert .rk-cd__big-chance > div:first-child {
  display: none !important;
  margin: 0 !important;
}
.rk-cd__planner-alert .rk-cd__big-chance::after {
  content: "" !important;
  position: absolute !important;
  right: 8px !important;
  bottom: 6px !important;
  width: 54px !important;
  height: 30px !important;
  pointer-events: none !important;
  opacity: 0.18 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='60' viewBox='0 0 108 60'%3E%3Cg fill='none' stroke='%230f3f5f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 44h92M20 35l12-12 15 10 18-22 23 18'/%3E%3Cpath d='M24 43V25M47 43V34M66 43V13M89 43V30'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}
.rk-cd__planner-alert .rk-cd__bc-text {
  color: #003b66 !important;
  letter-spacing: 0 !important;
  font-weight: 900 !important;
}
.rk-cd__planner-alert .rk-cd__bc-icon {
  color: #006ecb !important;
}
.rk-cd__planner-alert .rk-cd__bc-names {
  gap: 2px !important;
}
.rk-cd__planner-alert .rk-cd__bc-star {
  color: #b45309 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 8px rgba(245, 158, 11, 0.18) !important;
}
.rk-cd__planner-alert .rk-cd__bc-star .rk-stars-value,
.rk-cd__planner-alert .rk-cd__bc-star span {
  color: #0f172a !important;
  font-weight: 900 !important;
}
.rk-cd__planner-alert .rk-cd__bc-names-dynamic,
.rk-cd__planner-alert .rk-cd__bc-message,
.rk-cd__planner-alert [data-rk-eval-summary] {
  color: #001f3f !important;
  font-weight: 900 !important;
}
.rk-cd__planner-alert .rk-cd__bc-rating {
  order: 1 !important;
  margin-top: 0 !important;
}
.rk-cd__planner-alert .rk-cd__bc-names-dynamic {
  order: 2 !important;
  display: inline-block !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  font-weight: 900 !important;
}
.rk-cd__planner-alert .rk-cd__bc-benefit-note {
  display: block !important;
  order: 3 !important;
  width: 100% !important;
  margin-top: 3px !important;
  color: #64748b !important;
  font-size: 7px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}
.rk-cd__planner-alert .rk-cd__bc-countdown {
  margin-top: 0 !important;
  font-weight: 900 !important;
}
.rk-cd__planner-timeline,
.rk-cd__section-title,
.rk-cd__card {
  position: relative !important;
}
.rk-cd__planner-timeline::after,
.rk-cd__section-title::after {
  content: "" !important;
  width: 38px !important;
  height: 18px !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  opacity: 0.24 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='36' viewBox='0 0 76 36'%3E%3Cg fill='none' stroke='%239e8038' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 28h66M10 22l12-9 12 6 13-14 19 11'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}
.rk-cd__planner-timeline::after {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
}
@media screen and (max-width: 360px) {
  .rk-cd__planner-hero {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }
  .rk-cd__planner-verdict {
    width: 58px !important;
    height: 58px !important;
    font-size: 13px !important;
  }
.rk-cd__planner-alert .rk-cd__big-chance {
    padding: 7px !important;
  }
}

.rk-cd__user-filter {
  display: flex !important;
  position: relative !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 8px 8px 6px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(158, 128, 56, 0.28) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(255, 255, 255, 0.88)) !important;
  box-shadow: 0 2px 10px rgba(15, 63, 95, 0.06) !important;
}
.rk-cd.rk-cd--filter-help-open {
  overflow: visible !important;
}
.rk-cd__user-filter.rk-cd__user-filter--help-open {
  z-index: 1000 !important;
}
.rk-cd__user-filter-heading {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  align-items: center !important;
  gap: 6px !important;
  color: #805b08 !important;
  cursor: pointer !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
}
.rk-cd__user-filter-toggle {
  display: inline-flex !important;
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  margin-left: auto !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transform: translateY(-50%) !important;
}
.rk-cd__user-filter-toggle::before,
.rk-cd__user-filter-toggle::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  background: transparent !important;
  color: #527087 !important;
  content: "▼" !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 28px !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}
.rk-cd__user-filter-toggle::after {
  display: none !important;
}
.rk-cd__user-filter-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(180deg) !important;
}
.rk-cd__user-filter.is-collapsible {
  overflow: visible !important;
}
.rk-cd__user-filter.is-expanded {
  max-height: none !important;
  overflow: visible !important;
}
.rk-cd__user-filter.is-collapsible:not(.is-expanded) > :not(.rk-cd__user-filter-heading) {
  display: none !important;
}
.rk-cd__user-filter.is-expanded .rk-cd__user-filter-heading {
  margin-bottom: 8px !important;
}
.rk-cd__user-filter-help-button {
  display: inline-grid !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 1px solid #9fc4df !important;
  border-radius: 50% !important;
  background: #eff8ff !important;
  color: #075985 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
.rk-cd__user-filter-help {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 1001 !important;
  width: min(420px, calc(100vw - 44px)) !important;
  padding: 13px !important;
  border: 1px solid #b8d4e8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #27445d !important;
  box-shadow: 0 10px 30px rgba(20, 52, 78, .2) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}
.rk-cd__user-filter-help[hidden] {
  display: none !important;
}
.rk-cd__user-filter-help > strong {
  display: block !important;
  margin-bottom: 6px !important;
  color: #123b5d !important;
  font-size: 13px !important;
}
.rk-cd__user-filter-help p {
  margin: 5px 0 !important;
}
.rk-cd__user-filter-help button {
  margin-top: 5px !important;
  padding: 5px 10px !important;
  border: 1px solid #b9cfe1 !important;
  border-radius: 6px !important;
  background: #f8fbfe !important;
  color: #31546e !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.rk-cd__user-filter-item,
.rk-cd__user-filter-pair label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 32px !important;
  padding: 4px 8px !important;
  border: 1px solid #d6e6f7 !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f3f5f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
.rk-cd__user-filter-pair {
  gap: 6px !important;
}
.rk-cd__user-filter-card-group {
  gap: 8px !important;
  border-color: #b8d4e8 !important;
  background: #f8fbff !important;
}
.rk-cd__user-filter-card-main,
.rk-cd__user-filter-card-type {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  white-space: nowrap !important;
}
.rk-cd__user-filter-card-type {
  padding-left: 8px !important;
  border-left: 1px solid #d6e6f7 !important;
}
.rk-cd__user-filter-card-group:has(.rk-cd__user-filter-card:not(:checked)) .rk-cd__user-filter-card-type {
  opacity: .48 !important;
}
.rk-cd__user-filter-card-group.is-card-off .rk-cd__user-filter-card-type {
  opacity: .48 !important;
}
.rk-cd__user-filter select {
  max-width: 112px !important;
  padding: 4px 6px !important;
  border: 1px solid #9fb7d3 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 12px !important;
}
.rk-cd__user-filter input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #2563eb !important;
}
.rk-cd__rank-guide {
  margin: 7px 8px 10px;
  border: 1px solid #d7e4ef;
  border-radius: 9px;
  background: #fff;
  color: #17324d;
  overflow: hidden;
}
.rk-cd__rank-guide summary {
  display: flex;
  position: relative;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 46px 8px 10px;
  background: linear-gradient(110deg, #f3f8fc, #fffaf0);
  cursor: pointer;
  list-style: none;
}
.rk-cd__rank-guide summary::-webkit-details-marker { display: none; }
.rk-cd__rank-guide summary::after {
  color: #527087;
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 10px;
  flex: 0 0 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0;
  font-weight: 900;
  height: 28px;
  line-height: 1;
  margin-left: auto;
  text-align: center;
  width: 28px;
  border: 0;
  background: transparent;
  content: "▼";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 28px;
  transform: translateY(-50%);
}
.rk-cd__rank-guide[open] summary::after {
  content: "▼";
  transform: translateY(-50%) rotate(180deg);
}
.rk-cd__rank-guide summary strong { font-size: 12px; }
.rk-cd__rank-guide summary span {
  color: #6b7d8f;
  font-size: 10px;
  font-weight: 700;
}
.rk-cd__rank-guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 9px;
  border-top: 1px solid #e3ebf2;
}
.rk-cd__rank-guide-item {
  display: grid;
  grid-template-columns: 72px 10px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}
.rk-cd .rk-cd__rank-guide-badge.badge {
  display: inline-flex !important;
  width: 72px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.rk-cd .rk-cd__rank-guide-badge.badge > span {
  font-size: 9px !important;
  line-height: 1 !important;
}
.rk-cd__rank-guide-arrow {
  color: #94a3b8;
  font-weight: 900;
  text-align: center;
}
.rk-cd__rank-guide-meaning {
  min-width: 0;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}
@media (max-width: 620px) {
  .rk-cd__rank-guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .rk-cd__rank-guide-list { grid-template-columns: 1fr; }
}
.rk-cd__user-filter-hidden,
.rk-cd__user-filter-section-hidden {
  display: none !important;
}
.rk-cd__filter-empty {
  display: none;
  padding: 10px;
  border: 1px dashed rgba(15, 63, 95, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #0f3f5f;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .rk-cd__user-filter {
    margin: 8px 6px 6px !important;
    gap: 6px !important;
    padding: 7px !important;
  }
  .rk-cd__user-filter-item,
  .rk-cd__user-filter-pair label {
    min-height: 30px !important;
    font-size: 11px !important;
    padding: 4px 7px !important;
  }
  .rk-cd__user-filter select {
    max-width: 104px !important;
    font-size: 11px !important;
  }
}

/* Keep campaign-card rows on a shared visual axis. */
.rk-cd.rk-cd--initializing > * {
  animation: rk-cd-reveal 220ms ease-out both;
}
.rk-cd.rk-cd--initializing > .rk-cd__user-filter {
  animation-delay: 40ms;
}
.rk-cd.rk-cd--initializing > .rk-cd__rank-guide,
.rk-cd.rk-cd--initializing > .rk-cd__planner {
  animation-delay: 80ms;
}
.rk-cd.rk-cd--initializing > .rk-cd__section-title,
.rk-cd.rk-cd--initializing > .rk-cd__grid,
.rk-cd.rk-cd--initializing > .rk-cd__foot {
  animation-delay: 120ms;
}
@keyframes rk-cd-reveal {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-cd.rk-cd--initializing > * {
    animation-duration: 0s;
    animation-delay: 0s;
  }
}
.rk-cd__card {
  justify-items: stretch !important;
  align-items: center !important;
  text-align: center !important;
}
.rk-cd__card-content {
  width: 100% !important;
  justify-items: center !important;
  align-items: center !important;
  align-content: center !important;
  text-align: center !important;
}
.rk-cd__name,
.rk-cd__date-row {
  justify-self: center !important;
  align-self: center !important;
  min-height: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 20px !important;
  text-align: center !important;
}
.rk-cd__name {
  width: 100% !important;
  justify-content: center !important;
}
.rk-cd__date-row {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.rk-cd__date,
.rk-cd__date-label,
.rk-cd__weekday {
  line-height: 20px !important;
}
.rk-cd__period-row,
.rk-cd__period-dates {
  justify-self: center !important;
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.rk-cd__status {
  justify-self: center !important;
  align-self: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.rk-cd__countdown,
.rk-cd__period-countdown {
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
}
.rk-cd__link-wrapper {
  justify-self: stretch !important;
  align-self: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
}
.rk-cd__link,
.rk-cd__button {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Keep the realtime view inside narrow theme content columns. */
.rk-cd {
  width: 100% !important;
  max-width: min(920px, calc(100vw - 24px)) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.rk-cd *,
.rk-cd *::before,
.rk-cd *::after {
  box-sizing: border-box;
}
.rk-cd__planner,
.rk-cd__planner-summary,
.rk-cd__planner-decisions,
.rk-cd__decision-card,
.rk-cd__planner-calendar,
.rk-cd__planner-timeline,
.rk-cd__planner-slot,
.rk-cd__planner-slot-body,
.rk-cd__planner-slot-announcement {
  min-width: 0 !important;
  max-width: 100% !important;
}
.rk-cd__decision-meta,
.rk-cd__decision-campaigns,
.rk-cd__planner-slot-announcement,
.rk-cd__planner-slot-announcement * {
  overflow-wrap: anywhere;
}

/* Keep every evaluation card in the daily timeline on the same visual grid. */
.rk-cd__planner-slot-announcement {
  position: relative !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(0, 110, 203, .18) !important;
  border-left: 4px solid #087dc1 !important;
  border-radius: 9px !important;
  background: #fff !important;
}
.rk-cd__planner-slot-announcement:empty {
  display: none !important;
}
.rk-cd__planner-slot-announcement .rk-cd__bc-names,
.rk-cd__planner-slot-announcement .rk-cd__bc-rating {
  display: flex !important;
  width: 100% !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  text-align: left !important;
}
.rk-cd__planner-slot-announcement .rk-cd__bc-rating {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}
.rk-cd__planner-slot-announcement .rk-cd__bc-names-dynamic {
  width: 100% !important;
  text-align: left !important;
}

/* Clearly mark timeline ranges that have already ended today. */
.rk-cd__planner-slot.is-ended {
  position: relative !important;
  border-color: #cbd5e1 !important;
  border-left-color: #94a3b8 !important;
  background: #e5e7eb !important;
  overflow: hidden !important;
}
.rk-cd__planner-slot.is-ended > * {
  opacity: .38 !important;
  filter: grayscale(1) !important;
}
.rk-cd__planner-slot.is-ended::after {
  content: "終了しました" !important;
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  padding: 6px 14px !important;
  border: 1px solid rgba(71, 85, 105, .35) !important;
  border-radius: 999px !important;
  background: rgba(71, 85, 105, .88) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .18) !important;
}

/* Strict state colors: upcoming is warm, active is cool. */
.rk-cd .rk-cd__card.rk-is-soon,
.rk-cd .rk-cd__card.rk-is-entry,
.rk-cd .rk-cd__quick-access .rk-cd__card.rk-is-soon,
.rk-cd .rk-cd__quick-access .rk-cd__card.rk-is-entry,
.rk-cd .rk-cd__decision-card.is-upcoming,
.rk-cd .rk-cd__planner-slot.is-upcoming,
.rk-cd .rk-cd__big-chance--upcoming {
  background: #fffaf5 !important;
}
.rk-cd .rk-cd__card.rk-is-live,
.rk-cd .rk-cd__card.rk-is-always,
.rk-cd .rk-cd__quick-access .rk-cd__card.rk-is-live,
.rk-cd .rk-cd__quick-access .rk-cd__card.rk-is-always,
.rk-cd .rk-cd__decision-card.is-active,
.rk-cd .rk-cd__planner-slot.is-active,
.rk-cd .rk-cd__big-chance--active {
  background: #f8fbff !important;
}
.rk-cd .rk-cd__planner-slot.is-upcoming .rk-cd__planner-slot-announcement {
  background: #fffaf5 !important;
}
.rk-cd .rk-cd__planner-slot.is-active .rk-cd__planner-slot-announcement {
  background: #f8fbff !important;
}

@media screen and (max-width: 640px) {
  .rk-cd__planner {
    margin-right: 6px !important;
    margin-left: 6px !important;
  }
  .rk-cd__planner-decisions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .rk-cd__planner-slot {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .rk-cd__planner-slot-time {
    margin-bottom: 2px !important;
  }
}

/* Use the timeline's actual width because narrow theme columns can occur on wide viewports. */
@container (max-width: 360px) {
  .rk-cd__planner-slot {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 4px !important;
    padding: 7px 5px !important;
  }
  .rk-cd__planner-slot-time {
    font-size: 10px !important;
    overflow-wrap: anywhere;
  }
  .rk-cd__planner-slot-announcement {
    width: calc(100% + 32px) !important;
    max-width: calc(100% + 32px) !important;
    margin-left: -32px !important;
    padding: 8px !important;
  }
}

/* Compact campaign status and action panel. */
.rk-cd__next-check-label {
  display: flex;
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 30px);
  min-height: 30px;
  align-items: center;
  margin: 12px auto 0 0;
  padding: 7px 10px;
  border-radius: 8px 8px 0 0;
  --rk-tab-join: #087dc1;
  background: linear-gradient(135deg, #075985, #087dc1);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(7, 89, 133, .16);
}
.rk-cd__quick-access {
  container-name: rk-cd-quick-access;
  container-type: inline-size;
  margin: 0 0 12px;
  padding: 9px;
  border: 1px solid rgba(0, 110, 203, 0.18);
  border-radius: 0 0 10px 10px;
  background: #fff;
}
.rk-cd__quick-access-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  color: #0f3f5f;
}
.rk-cd__quick-access-head strong {
  font-size: 13px;
  font-weight: 900;
}
.rk-cd__quick-access-head span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}
.rk-cd__quick-group {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}
.rk-cd__quick-group + .rk-cd__quick-group {
  margin-top: 7px;
}
.rk-cd__quick-category {
  margin: 0 !important;
  padding: 6px 7px !important;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #9e8038;
  border-radius: 5px;
  background: #fff;
  color: #5f4618;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}
.rk-cd__quick-access .rk-cd__quick-grid {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
  padding: 0 !important;
}

.rk-cd__quick-access .rk-cd__card {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  gap: 3px 9px !important;
  min-height: 0 !important;
  padding: 8px 9px !important;
  border: 1px solid #dbeafe !important;
  border-left: 4px solid #94a3b8 !important;
  border-radius: 7px !important;
  background: #fbfdff !important;
  box-shadow: none !important;
  animation: none !important;
}
.rk-cd__quick-access .rk-cd__card.rk-is-live {
  border: 1px solid #087dc1 !important;
  border-left: 4px solid #087dc1 !important;
  background: #f6fffb !important;
}
.rk-cd__quick-access .rk-cd__card.rk-is-always {
  border: 1px solid #087dc1 !important;
  border-left: 4px solid #087dc1 !important;
}
.rk-cd__quick-access .rk-cd__card.rk-is-entry,
.rk-cd__quick-access .rk-cd__card.rk-is-soon {
  border-left-color: #d9a328 !important;
  background: #fffaf0 !important;
}
.rk-cd__quick-access .rk-cd__card-content {
  display: grid !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 3px 7px !important;
  width: 100% !important;
  padding: 0 !important;
  text-align: left !important;
}
.rk-cd__quick-access .rk-cd__name-status {
  display: inline-flex !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 7px !important;
  min-width: 0 !important;
}
.rk-cd__quick-access .rk-cd__name {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  color: #0f3f5f !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}
.rk-cd__quick-access .rk-cd__period-row,
.rk-cd__quick-access .rk-cd__date-row {
  display: inline-flex !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  color: #475569 !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
}
.rk-cd__quick-access .rk-cd__date {
  font-size: 11px !important;
  line-height: 1.25 !important;
}
.rk-cd__quick-access .rk-cd__status {
  flex: 0 0 auto !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}
.rk-cd__quick-access .rk-cd__countdown,
.rk-cd__quick-access .rk-cd__period-countdown {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: auto !important;
  justify-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #bf0000 !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  text-align: left !important;
}
.rk-cd__quick-access .rk-cd__link-wrapper {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: end !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.rk-cd__quick-access .rk-cd__link {
  min-width: 112px !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

@container rk-cd-quick-access (max-width: 620px) {
  .rk-cd__quick-access-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
  .rk-cd__quick-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .rk-cd__quick-access .rk-cd__card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .rk-cd__quick-access .rk-cd__link-wrapper {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
  }
  .rk-cd__quick-access .rk-cd__link {
    width: 160px !important;
    min-width: 112px !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 680px) {
  .rk-cd__quick-access-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
  .rk-cd__quick-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .rk-cd__quick-access .rk-cd__card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .rk-cd__quick-access .rk-cd__link-wrapper {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
  }
  .rk-cd__quick-access .rk-cd__link {
    width: 160px !important;
    min-width: 112px !important;
    max-width: 100% !important;
  }
}

/* Browser-local buy timing notification */
.rk-buy-notice,
.rk-buy-notice * { box-sizing: border-box; }
.rk-buy-notice { margin: 10px 8px; overflow: hidden; border: 1px solid #d6e5f5; border-radius: 10px; background: #fff; }
.rk-buy-notice__toggle { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: #f8fbff; color: #0f3f5f; text-align: left; cursor: pointer; }
.rk-buy-notice__toggle strong,
.rk-buy-notice__toggle small { display: block; }
.rk-buy-notice__toggle strong { font-size: 14px; }
.rk-buy-notice__toggle small { margin-top: 2px; color: #64748b; font-size: 10px; }
.rk-buy-notice__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #d97706; color: #fff; font-size: 18px; }
.rk-buy-notice__chevron { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; color:#527087; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:900; line-height:28px; transition:transform .2s; }
.rk-buy-notice__chevron::before { content:"▼"; }
.rk-buy-notice__toggle[aria-expanded="true"] .rk-buy-notice__chevron { transform: rotate(180deg); }
.rk-buy-notice__panel { position: relative; padding: 11px 12px 12px; border-top: 1px solid #e2edf8; }
.rk-buy-notice__help-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.rk-buy-notice__settings-title { color: #0f3f5f; font-size: 12px; font-weight: 900; }
.rk-buy-notice__help-button { display: inline-grid; place-items: center; width: 23px; height: 23px; padding: 0; border: 1px solid #087dc1; border-radius: 50%; background: #eef8ff; color: #075985; font-size: 13px; font-weight: 900; cursor: pointer; }
.rk-buy-notice__help { position: static; width: 100%; margin: 0 0 10px; padding: 12px 14px; border: 1px solid #b9d5ec; border-left: 4px solid #087dc1; border-radius: 8px; background: #f8fbff; color: #334155; box-shadow: 0 6px 18px rgba(15,23,42,.12); font-size: 11px; line-height: 1.6; }
.rk-buy-notice__help[hidden] { display: none !important; }
.rk-buy-notice__help strong { display: block; margin-bottom: 5px; color: #0f3f5f; font-size: 13px; }
.rk-buy-notice__help p { margin: 5px 0; }
.rk-buy-notice__help ul { margin: 6px 0; padding-left: 18px; }
.rk-buy-notice__help [data-rk-buy-notice-help-close] { min-height: 28px; margin-top: 5px; padding: 4px 10px; border: 1px solid #087dc1; border-radius: 5px; background: #087dc1; color: #fff; font-weight: 800; cursor: pointer; }
.rk-buy-notice__target { margin: 0 0 9px; padding: 8px 10px; border-left: 4px solid #d99a16; border-radius: 5px; background: #fffaf0; color: #513b13; font-size: 12px; font-weight: 800; }
.rk-buy-notice__target.is-active { border-left-color: #00a870; background: #ecfdf5; color: #066044; box-shadow: 0 0 0 1px rgba(0,168,112,.16); }
.rk-buy-notice__settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; font-weight: 700; }
.rk-buy-notice__settings label { display: inline-flex; align-items: center; gap: 5px; }
.rk-buy-notice__settings select { min-height: 30px; padding: 3px 24px 3px 7px; border: 1px solid #bfd3e8; border-radius: 5px; }
.rk-buy-notice__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.rk-buy-notice__actions button { min-height: 30px; padding: 5px 10px; border: 1px solid #087dc1; border-radius: 6px; background: #fff; color: #075985; font-size: 11px; font-weight: 800; cursor: pointer; }
.rk-buy-notice__actions [data-rk-buy-notice-status] { color: #475569; font-size: 10px; font-weight: 700; }
.rk-buy-notice__note { margin: 8px 0 0; color: #64748b; font-size: 10px; line-height: 1.5; }
.rk-buy-notice-toast { position: fixed; z-index: 2147483000; right: 18px; bottom: 18px; display: grid; gap: 3px; width: min(340px, calc(100vw - 28px)); padding: 12px 14px; border: 1px solid #e3b341; border-left: 5px solid #d99a16; border-radius: 9px; background: #fffaf0; color: #3f2c0b; box-shadow: 0 12px 34px rgba(15,23,42,.24); opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .2s; }
.rk-buy-notice-toast.is-visible { opacity: 1; transform: translateY(0); }
.rk-buy-notice-toast strong { font-size: 13px; }
.rk-buy-notice-toast span { font-size: 11px; line-height: 1.45; }
@media screen and (max-width: 480px) {
  .rk-buy-notice__settings { align-items: flex-start; flex-direction: column; }
}

/* Browser-local shopping list */
.rk-shopping-list,
.rk-shopping-list * {
    box-sizing: border-box;
}

.rk-shopping-list {
    margin: 10px 8px;
    overflow: hidden;
    border: 1px solid #d6e5f5;
    border-radius: 12px;
    background: #fff;
    color: #17324d;
    box-shadow: 0 5px 16px rgba(29, 78, 121, .08);
}

.rk-shopping-list__toggle {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    background: linear-gradient(110deg, #f2f8ff, #fffaf0);
    color: #123b5d;
    text-align: left;
    cursor: pointer;
}

.rk-shopping-list__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #087dc1, #005ca5);
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 92, 165, .2);
}

.rk-shopping-list__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.rk-shopping-list__heading strong {
    font-size: 15px;
}

.rk-shopping-list__heading small {
    overflow: hidden;
    color: #61758a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rk-shopping-list__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #527087;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 28px;
    transform: none;
    transition: transform .2s ease;
}

.rk-shopping-list__chevron::before {
    content: "▼";
}

.rk-shopping-list.is-open .rk-shopping-list__chevron {
    transform: rotate(180deg);
}

.rk-shopping-list__panel {
    padding: 12px;
    border-top: 1px solid #e1ebf4;
}

.rk-shopping-list__recommendation,
.rk-shopping-list__warning {
    margin: 0 0 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.rk-shopping-list__recommendation {
    border-left: 4px solid #d6a82d;
    background: #fff9e8;
    color: #815b00;
}

.rk-shopping-list__warning {
    border: 1px solid #f3cf70;
    background: #fff8df;
    color: #8b5700;
}

.rk-shopping-list__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 10px;
}

.rk-shopping-list__stats > span {
    display: flex;
    min-width: 0;
    padding: 7px 8px;
    flex-direction: column;
    border: 1px solid #dce8f3;
    border-radius: 8px;
    background: #f8fbfe;
}

.rk-shopping-list__stats small {
    color: #6c7d8d;
    font-size: 10px;
}

.rk-shopping-list__stats strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
}

.rk-shopping-list__form {
    display: grid;
    grid-template-columns: minmax(140px, 2fr) minmax(80px, .8fr) 58px minmax(105px, 1fr) minmax(140px, 1.5fr) 92px;
    gap: 6px;
    padding: 9px;
    border: 1px solid #dce8f3;
    border-radius: 9px;
    background: #f8fbfe;
}

.rk-shopping-list__form input,
.rk-shopping-list__form select {
    min-width: 0;
    height: 34px;
    padding: 5px 7px;
    border: 1px solid #c7d8e7;
    border-radius: 6px;
    background: #fff;
    color: #17324d;
    font: inherit;
    font-size: 12px;
}

.rk-shopping-list__form-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 7px;
}

.rk-shopping-list__form button,
.rk-shopping-list__tools button,
.rk-shopping-list__item-actions button {
    padding: 6px 10px;
    border: 1px solid #b9cfe1;
    border-radius: 6px;
    background: #fff;
    color: #31546e;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.rk-shopping-list__form .rk-shopping-list__add {
    border-color: #087dc1;
    background: #087dc1;
    color: #fff;
}

.rk-shopping-list__items {
    display: grid;
    gap: 6px;
    margin-top: 9px;
}

.rk-shopping-list__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dce8f3;
    border-radius: 8px;
    background: #fff;
}

.rk-shopping-list__check {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 2px solid #7ea6c4;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.rk-shopping-list__item.is-purchased {
    background: #f4f7f8;
    opacity: .7;
}

.rk-shopping-list__item.is-purchased .rk-shopping-list__check {
    border-color: #13a36d;
    background: #13a36d;
}

.rk-shopping-list__item.is-purchased .rk-shopping-list__item-main strong {
    text-decoration: line-through;
}

.rk-shopping-list__item-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.rk-shopping-list__item-main strong,
.rk-shopping-list__item-main a {
    overflow: hidden;
    color: #17324d;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rk-shopping-list__item-main span {
    color: #718293;
    font-size: 10px;
}

.rk-shopping-list__subtotal {
    color: #b45309;
    font-size: 13px;
    white-space: nowrap;
}

.rk-shopping-list__item-actions {
    display: flex;
    gap: 4px;
}

.rk-shopping-list__empty {
    margin: 10px 0 4px;
    color: #728394;
    font-size: 12px;
    text-align: center;
}

.rk-shopping-list__tools {
    display: flex;
    position: relative;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #d6e1eb;
}

.rk-shopping-list__tools small {
    margin-left: auto;
    color: #7b8995;
    font-size: 10px;
}

.rk-shopping-list__tools .rk-shopping-list__help-button {
    display: inline-grid;
    width: 25px;
    height: 25px;
    padding: 0;
    place-items: center;
    border-color: #9fc4df;
    border-radius: 50%;
    background: #eff8ff;
    color: #075985;
    font-size: 14px;
    font-weight: 800;
}

.rk-shopping-list__help {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    width: min(390px, 100%);
    padding: 13px;
    border: 1px solid #b8d4e8;
    border-radius: 10px;
    background: #fff;
    color: #27445d;
    box-shadow: 0 10px 30px rgba(20, 52, 78, .2);
    font-size: 12px;
    line-height: 1.65;
}

.rk-shopping-list__help::after {
    position: absolute;
    right: 54px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    border-right: 1px solid #b8d4e8;
    border-bottom: 1px solid #b8d4e8;
    background: #fff;
    content: '';
    transform: rotate(45deg);
}

.rk-shopping-list__help strong {
    display: block;
    margin-bottom: 6px;
    color: #123b5d;
    font-size: 13px;
}

.rk-shopping-list__help p {
    margin: 5px 0;
}

.rk-shopping-list__help > button {
    position: relative;
    z-index: 1;
    margin-top: 5px;
}

.rk-shopping-list-standalone {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .rk-shopping-list__form {
        grid-template-columns: minmax(0, 1fr) 78px 54px;
    }
    .rk-shopping-list__form input[name="name"],
    .rk-shopping-list__form input[name="shop"],
    .rk-shopping-list__form input[name="url"] {
        grid-column: 1 / -1;
    }
    .rk-shopping-list__item {
        grid-template-columns: 26px minmax(0, 1fr) auto;
    }
    .rk-shopping-list__item-actions {
        grid-column: 2 / -1;
    }
}

@media (max-width: 430px) {
    .rk-shopping-list {
        margin-right: 4px;
        margin-left: 4px;
    }
    .rk-shopping-list__panel {
        padding: 9px;
    }
    .rk-shopping-list__stats strong {
        font-size: 12px;
    }
    .rk-shopping-list__form {
        grid-template-columns: minmax(0, 1fr) 62px;
    }
    .rk-shopping-list__form input[name="price"],
    .rk-shopping-list__form select {
        grid-column: auto;
    }
    .rk-shopping-list__item {
        grid-template-columns: 25px minmax(0, 1fr);
    }
    .rk-shopping-list__subtotal,
    .rk-shopping-list__item-actions {
        grid-column: 2;
    }
    .rk-shopping-list__tools {
        flex-wrap: wrap;
    }
    .rk-shopping-list__tools small {
        width: 100%;
        margin-left: 0;
    }
}

/* Keep plugin check marks centered regardless of theme form styles. */
.rk-cd input[type="checkbox"],
#rk-matrix-v6 input[type="checkbox"],
.rk-frontend-evaluator-controls input[type="checkbox"],
.rk-simulator input[type="checkbox"] {
    display: inline-block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #8ca8c3 !important;
    border-radius: 3px !important;
    outline-offset: 2px !important;
    background-color: #fff !important;
    background-image: none !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 11px 11px !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.rk-cd input[type="checkbox"]::before,
#rk-matrix-v6 input[type="checkbox"]::before,
.rk-frontend-evaluator-controls input[type="checkbox"]::before,
.rk-simulator input[type="checkbox"]::before {
    display: none !important;
    content: none !important;
}

.rk-cd input[type="checkbox"]:checked,
#rk-matrix-v6 input[type="checkbox"]:checked,
.rk-frontend-evaluator-controls input[type="checkbox"]:checked,
.rk-simulator input[type="checkbox"]:checked {
    border-color: #2563eb !important;
    background-color: #2563eb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M3.2 8.2 6.5 11.3 12.8 4.8'/%3E%3C/svg%3E") !important;
}

.rk-cd input[type="checkbox"]:disabled,
#rk-matrix-v6 input[type="checkbox"]:disabled,
.rk-frontend-evaluator-controls input[type="checkbox"]:disabled,
.rk-simulator input[type="checkbox"]:disabled {
    cursor: not-allowed !important;
    opacity: .45 !important;
}

/* Filter visibility must win over quick-access layout display rules. */
.rk-cd .rk-cd__quick-access .rk-cd__card.rk-cd__user-filter-hidden,
.rk-cd .rk-cd__quick-access .rk-cd__grid.rk-cd__user-filter-section-hidden,
.rk-cd .rk-cd__quick-access .rk-cd__quick-group.rk-cd__user-filter-section-hidden,
.rk-cd .rk-cd__quick-access.rk-cd__user-filter-section-hidden {
  display: none !important;
}

/* Numeric evaluation details are admin-only on the frontend surface. */
body:not(.wp-admin) .rk-cd .rk-stars-score,
body:not(.wp-admin) .rk-cd .rk-relative-score,
body:not(.wp-admin) .rk-cd .rk-cd__decision-score-note {
  display: none !important;
}

/* Numeric evaluation details are opt-in via shortcode show_scores="1". */
.rk-cd:not(.rk-cd--show-scores) .rk-stars-score,
.rk-cd:not(.rk-cd--show-scores) .rk-relative-score,
.rk-cd:not(.rk-cd--show-scores) .rk-cd__decision-score-note {
  display: none !important;
}
.rk-cd:not(.rk-cd--show-scores) .rk-cd__big-chance .rk-stars-score,
.rk-cd:not(.rk-cd--show-scores) .rk-cd__big-chance .rk-relative-score {
  display: none !important;
}

/* Compact evaluation badge beside each row in the seven-day details. */
.rk-cd .rk-cd__planner-detail-row {
  grid-template-columns: 72px 124px minmax(0, 1fr);
  align-items: center;
}
.rk-cd .rk-cd__planner-detail-evaluation {
  display: inline-flex !important;
  min-width: 0;
  align-items: center;
  gap: 6px;
}
.rk-cd .rk-cd__planner-detail-stars {
  display: inline-flex !important;
  align-items: baseline;
  gap: 2px;
  color: #111827 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}
.rk-cd .rk-cd__planner-detail-star-symbol {
  color: #f5a623 !important;
}
.rk-cd .rk-cd__planner-detail-stars b {
  color: #111827 !important;
  font-size: 11px;
}
.rk-cd .rk-cd__planner-detail-stars small {
  color: #64748b;
  font-size: 8px;
}
.rk-cd .rk-cd__planner-detail-badge.badge,
.rk-cd .rk-cd__planner-detail-badge.is-empty {
  display: inline-flex !important;
  width: 66px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
}
.rk-cd .rk-cd__planner-detail-badge.badge > span {
  font-size: 8px !important;
  line-height: 1 !important;
}
.rk-cd .rk-cd__planner-detail-badge.is-empty {
  border: 1px solid #d7e0e8;
  background: #f8fafc;
  color: #64748b;
}
@media (max-width: 390px) {
  .rk-cd .rk-cd__planner-detail-row {
    grid-template-columns: 68px 110px minmax(0, 1fr);
    gap: 5px;
  }
  .rk-cd .rk-cd__planner-detail-badge.badge,
  .rk-cd .rk-cd__planner-detail-badge.is-empty {
    width: 58px !important;
  }
  .rk-cd .rk-cd__planner-detail-evaluation {
    gap: 3px;
  }
}

.rk-cd .rk-cd__big-chance .rk-cd__decision-card--best .rk-cd__decision-title {
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  gap: 2px 8px !important;
  align-items: center !important;
}

.rk-cd .rk-cd__big-chance .rk-cd__decision-card {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.rk-cd .rk-cd__big-chance .rk-cd__decision-title .rk-cd__decision-countdown {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  margin-top: 0 !important;
}

@media screen and (max-width: 520px) {
  .rk-cd .rk-cd__big-chance .rk-cd__decision-card--best .rk-cd__decision-title {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .rk-cd .rk-cd__big-chance .rk-cd__decision-title .rk-cd__decision-countdown {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}

@media screen and (max-width: 768px) {
  .rk-guide-container.rk-cd .rk-guide-table td[data-label="詳細"],
  .rk-guide-table td[data-label="詳細"] {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 14px !important;
    min-height: 58px !important;
    background: #f8fafc !important;
    text-align: center !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td[data-label="詳細"]::before,
  .rk-guide-table td[data-label="詳細"]::before {
    content: none !important;
    display: none !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td[data-label="詳細"] .rk-detail-btn,
  .rk-guide-table td[data-label="詳細"] .rk-detail-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td[data-label="上限到達時還元率"]::before,
  .rk-guide-container.rk-cd .rk-guide-table td[data-label="還元率"]::before,
  .rk-guide-table td[data-label="還元率"]::before,
  .rk-guide-table td[data-label="上限到達時還元率"]::before {
    content: "還元率" !important;
    white-space: normal !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .rk-guide-container.rk-cd .rk-guide-efficiency,
  .rk-guide-table .rk-guide-efficiency,
  .rk-guide-container.rk-cd .rk-guide-rate,
  .rk-guide-table .rk-guide-rate,
  .rk-guide-container.rk-cd .rk-guide-efficiency > .rk-guide-value,
  .rk-guide-table .rk-guide-efficiency > .rk-guide-value,
  .rk-guide-container.rk-cd .rk-guide-rate > .rk-guide-value,
  .rk-guide-table .rk-guide-rate > .rk-guide-value {
    text-align: left !important;
  }
}

@media screen and (max-width: 768px) {
  .rk-guide-container.rk-cd .rk-guide-table td {
    display: grid !important;
    grid-template-columns: minmax(106px, 38%) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td::before {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 5px !important;
    text-align: left !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td > .rk-guide-value {
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td[data-label="詳細"] {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .rk-guide-container.rk-cd .rk-guide-table td[data-label="詳細"] > .rk-guide-value {
    text-align: center !important;
  }
}
