/* VineChart drop timing — Typical times chip + modal */

/* Drop-timing placement mockups â€” overlays on staging index shell */

/* Compact insight panel (shared content) */
.vc-pattern-panel {
  margin: 0;
  padding: 12px 14px 14px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #e7ebff;
}
.vc-pattern-panel[hidden] { display: none !important; }
.vc-pattern-panel .pp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.vc-pattern-panel .pp-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.vc-pattern-panel .pp-sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9aa7ff;
  max-width: 58ch;
}
.vc-pattern-panel .pp-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid #3b4a8a;
  background: #0b1430;
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 800;
  cursor: help;
  vertical-align: middle;
}
.vc-pattern-panel .pp-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #121a3c, #0a122c);
  border: 1px solid #2a3a72;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.25);
  gap: 2px;
}
.vc-pattern-panel .pp-seg button {
  border: 0;
  background: transparent;
  color: #9aa7ff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.vc-pattern-panel .pp-seg button.on {
  background: linear-gradient(180deg, #2a3a7a, #1a275e);
  color: #e7ebff;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.vc-pattern-callouts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .vc-pattern-callouts { grid-template-columns: 1fr 1fr; }
}
.vc-pattern-callout {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2a3a72;
  background: linear-gradient(165deg, rgba(30, 40, 90, 0.95), rgba(12, 18, 42, 0.92));
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.vc-pattern-callout .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 4px;
}
.vc-pattern-callout .val {
  font-size: 14px;
  font-weight: 800;
  color: #e7ebff;
}
.vc-pattern-callout .hint {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: #8b9cff;
}
.vc-pattern-callout.a { border-color: rgba(99, 102, 241, 0.35); }
.vc-pattern-callout.b { border-color: rgba(34, 197, 94, 0.3); }

.vc-days-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.vc-days-label {
  font-size: 11px;
  font-weight: 700;
  color: #9aa7ff;
  white-space: nowrap;
}
.vc-summary-peak-callout {
  margin-bottom: 10px;
}
.vc-summary-chart-single {
  margin-bottom: 0;
}
.vc-summary-chart-single p {
  min-height: auto;
}
.vc-pattern-panel.vc-pattern-loading {
  opacity: 0.72;
  pointer-events: none;
}

.vc-pattern-dual {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .vc-pattern-dual { grid-template-columns: 1fr 1fr; align-items: start; }
}
.vc-summary-columns > section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.vc-summary-columns .vc-pattern-callout {
  flex: 1 1 auto;
  min-height: 108px;
}
.vc-summary-chart h3 {
  margin: 0 0 4px;
}
.vc-summary-chart p {
  margin: 0 0 8px;
  min-height: 2.85em;
}
.vc-pattern-dual section h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
}
.vc-pattern-dual section p {
  margin: 0 0 8px;
  font-size: 11px;
  color: #9aa7ff;
  line-height: 1.4;
}
.vc-summary-chart {
  padding: 10px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(42, 58, 114, 0.85);
  background: linear-gradient(180deg, rgba(14, 20, 48, 0.9), rgba(8, 12, 28, 0.85));
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.vc-pattern-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 88px;
  padding: 4px 2px 0;
  border-bottom: 1px solid #2a3a72;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}
.vc-pattern-bars .bar {
  flex: 1;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6366f1, #312e81);
  opacity: 0.75;
  border: 1px solid transparent;
}
.vc-pattern-bars.interactive .bar {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.12s ease, opacity 0.12s ease;
}
.vc-pattern-bars.interactive .bar:hover,
.vc-pattern-bars.interactive .bar:focus-visible {
  outline: none;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.vc-pattern-bars.interactive .bar.is-selected {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  z-index: 1;
  position: relative;
}
.vc-chart-detail {
  margin: 0 0 10px;
}
.vc-chart-detail.empty {
  padding: 10px 12px;
  font-size: 12px;
  color: #8b9cff;
  text-align: center;
}
.vc-pattern-bars .bar.warm { opacity: 0.9; background: linear-gradient(180deg, #818cf8, #4f46e5); }
.vc-pattern-bars .bar.hot { opacity: 1; background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.vc-pattern-bars.adds .bar { background: linear-gradient(180deg, #34d399, #047857); }
.vc-pattern-bars.adds .bar.warm { background: linear-gradient(180deg, #6ee7b7, #059669); }
.vc-pattern-bars.adds .bar.hot { background: linear-gradient(180deg, #86efac, #16a34a); }
.vc-pattern-axis {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  font-size: 8px;
  color: #6b7ab8;
}
.vc-pattern-axis span { flex: 1; text-align: center; min-width: 0; overflow: hidden; }

.vc-pattern-heat {
  display: grid;
  grid-template-columns: 28px repeat(24, minmax(0, 1fr));
  gap: 2px;
  font-size: 9px;
  color: #6b7ab8;
}
.vc-pattern-heat .hlabel,
.vc-pattern-heat .dlabel { text-align: center; line-height: 12px; }
.vc-pattern-heat .cell {
  aspect-ratio: 1;
  border-radius: 2px;
  min-height: 8px;
}

.vc-pattern-peaks-wrap {
  margin-top: 12px;
}
.vc-peaks-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #c4b5fd;
  letter-spacing: 0.01em;
}
.vc-pattern-peaks {
  display: grid;
  gap: 8px;
  margin-top: 0;
}
@media (min-width: 560px) {
  .vc-pattern-peaks { grid-template-columns: repeat(3, 1fr); }
}
.vc-pattern-peak {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2a3a72;
  background: linear-gradient(165deg, rgba(28, 38, 88, 0.95), rgba(11, 18, 42, 0.92));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.vc-pattern-peak .rank { display: none; }
.vc-pattern-peak .when { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.vc-pattern-peak .pct { font-size: 13px; color: #c4b5fd; font-weight: 700; }
.vc-pattern-peak .hint { font-size: 11px; color: #8b9cff; margin-top: 2px; line-height: 1.35; }

.vc-pattern-foot {
  margin-top: 12px;
  font-size: 11px;
  color: #7c8bc8;
  line-height: 1.45;
}

/* â€”â€” Variant chrome â€”â€” */

/* 01 icon tab */
@media (min-width: 720px) {
  .vc-tab-icon { padding: 8px 12px !important; gap: 6px; }
  .vc-tab-icon .vc-tab-label { display: inline; font-size: 12px; }
}

/* 02 history sub-seg */

/* 03 insight strip */

/* 04 chip by last drop */
.vc-timing-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(67, 56, 202, 0.2);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
}
.vc-timing-chip:hover { background: rgba(99, 102, 241, 0.28); color: #fff; }
.vc-timing-chip svg { width: 12px; height: 12px; flex-shrink: 0; }
@media (max-width: 420px) {
  .vc-timing-chip .chip-txt { display: none; }
  .vc-timing-chip { padding: 5px 8px; margin-left: 4px; }
}

/* Modal / sheet */
.vc-pattern-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(4, 8, 20, 0.78);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(4px);
}
@media (min-width: 720px) {
  .vc-pattern-modal-backdrop { align-items: center; }
}
.vc-pattern-modal {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(78vh, 640px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%),
    linear-gradient(165deg, #171f48 0%, #10183a 42%, #0c132c 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0;
}
.vc-pattern-modal.wide {
  width: min(760px, calc(100% - 20px));
  max-height: min(78vh, 660px);
}

/* Fixed chrome: title strip + clear close — never overlaps content */
.vc-pattern-modal-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(42, 58, 114, 0.9);
  background: linear-gradient(180deg, rgba(28, 36, 82, 0.98), rgba(16, 24, 56, 0.92));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 18px 18px 0 0;
}
.vc-pattern-modal-chrome-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #c7d2fe;
  text-transform: uppercase;
}
.vc-pattern-modal-close {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: linear-gradient(180deg, #3a1f2e, #241018);
  color: #fecaca;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.vc-pattern-modal-close:hover {
  background: linear-gradient(180deg, #5b2436, #3a1520);
  border-color: rgba(252, 165, 165, 0.75);
  color: #fff;
  transform: translateY(-1px);
}
.vc-pattern-modal-close:active {
  transform: translateY(0);
}
.vc-pattern-modal-close svg {
  display: block;
  pointer-events: none;
}

/* Scroll lives here — inset from rounded corners so track doesn't square them off */
.vc-pattern-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden; /* no scrollbar chrome unless JS marks it scrollable */
  padding: 4px 6px 12px 4px;
  margin: 0 4px 8px 0;
  border-radius: 0 0 12px 12px;
  scrollbar-width: none;
}
.vc-pattern-modal-body.is-scrollable {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b4a8a transparent;
}
.vc-pattern-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.vc-pattern-modal-body.is-scrollable::-webkit-scrollbar {
  width: 9px;
  height: 0;
}
.vc-pattern-modal-body::-webkit-scrollbar-button,
.vc-pattern-modal-body::-webkit-scrollbar-button:start,
.vc-pattern-modal-body::-webkit-scrollbar-button:end,
.vc-pattern-modal-body::-webkit-scrollbar-button:vertical:start:decrement,
.vc-pattern-modal-body::-webkit-scrollbar-button:vertical:end:increment,
.vc-pattern-modal-body::-webkit-scrollbar-button:horizontal:start:decrement,
.vc-pattern-modal-body::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
}
.vc-pattern-modal-body.is-scrollable::-webkit-scrollbar-track {
  background: rgba(8, 12, 28, 0.55);
  border-radius: 999px;
  margin: 4px 0;
}
.vc-pattern-modal-body.is-scrollable::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4b5c9c, #2a3a72);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.vc-pattern-modal-body.is-scrollable::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5b6fb8, #35488a);
  background-clip: padding-box;
}
.vc-pattern-modal-body::-webkit-scrollbar-corner {
  background: transparent;
}
.vc-pattern-modal .vc-pattern-panel {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 10px 12px 12px;
}

/* Hide duplicate title inside panel — chrome already shows it */
.vc-pattern-modal .pp-title {
  font-size: 16px;
}

.vc-pattern-panel.refined[data-pp-active-view="heat"] .vc-heat-hint {
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.vc-pattern-panel.refined[data-pp-active-view="heat"] .vc-pattern-foot {
  display: none;
}
.vc-pattern-modal .vc-pattern-heat.xl .cell {
  min-height: 18px;
}
@media (min-width: 720px) {
  .vc-pattern-modal .vc-pattern-heat.xl .cell {
    min-height: 22px;
  }
}
.vc-heat-detail.vc-heat-detail-above {
  margin: 0 0 10px;
  min-height: 60px;
  padding: 12px 14px;
}
.vc-heat-detail.vc-heat-detail-above:not(.empty) {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(251, 191, 36, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.vc-heat-detail.vc-heat-detail-above.empty {
  font-size: 13px;
  min-height: 48px;
  padding: 10px 14px;
}
.vc-heat-detail.vc-heat-detail-above .when {
  font-size: 17px;
}
.vc-pattern-panel.refined {
  font-size: 15px;
}
.vc-pattern-panel.refined .pp-title {
  font-size: 18px;
  line-height: 1.3;
}
.vc-pattern-panel.refined .pp-sub {
  font-size: 14px;
  line-height: 1.5;
  color: #b4c0ff;
  max-width: 62ch;
}
.vc-pattern-panel.refined .vc-pattern-callout .val {
  font-size: 16px;
}
.vc-pattern-panel.refined .vc-pattern-callout .hint {
  font-size: 13px;
  line-height: 1.45;
}
.vc-pattern-panel.refined .vc-pattern-dual section h3 {
  font-size: 14px;
}
.vc-pattern-panel.refined .vc-pattern-dual section p {
  font-size: 13px;
  line-height: 1.45;
}
.vc-pattern-panel.refined .vc-pattern-bars {
  height: 110px;
}
.vc-pattern-panel.refined .vc-pattern-axis {
  font-size: 10px;
  color: #8b9cff;
}

.vc-heat-block {
  margin-top: 4px;
  overflow: hidden;
  max-width: 100%;
}
.vc-heat-block .heat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #e7ebff;
}
.vc-heat-block .heat-label .tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}
.vc-heat-block .heat-help {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #9aa7ff;
}
.vc-heat-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: linear-gradient(165deg, rgba(67, 56, 202, 0.28), rgba(15, 22, 51, 0.75));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.4;
  color: #e7ebff;
  font-weight: 600;
}
.vc-heat-hint svg { width: 18px; height: 18px; flex-shrink: 0; color: #a5b4fc; }

/* Larger interactive heat map */
.vc-pattern-heat.lg {
  gap: 3px;
  font-size: 11px;
  color: #9aa7ff;
  grid-template-columns: 36px repeat(24, minmax(0, 1fr));
}
.vc-pattern-heat.lg .hlabel,
.vc-pattern-heat.lg .dlabel {
  line-height: 16px;
  font-weight: 700;
}
.vc-pattern-heat.lg .cell {
  min-height: 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  touch-action: manipulation;
}
.vc-pattern-heat.xl {
  gap: 4px;
  font-size: 12px;
  grid-template-columns: 42px repeat(24, minmax(0, 1fr));
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.vc-pattern-heat.xl .hlabel,
.vc-pattern-heat.xl .dlabel {
  line-height: 18px;
  font-weight: 700;
}
.vc-pattern-heat.xl .cell {
  min-width: 0;
  min-height: 22px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  touch-action: manipulation;
}
@media (min-width: 720px) {
  .vc-pattern-heat.lg .cell { min-height: 22px; }
  .vc-pattern-heat.xl .cell { min-height: 28px; }
  .vc-pattern-heat.xl {
    grid-template-columns: 48px repeat(24, minmax(0, 1fr));
  }
}
.vc-pattern-heat .cell:hover,
.vc-pattern-heat .cell:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  z-index: 1;
  position: relative;
}
.vc-pattern-heat .cell.is-selected {
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
  z-index: 2;
  position: relative;
}

.vc-heat-detail {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #2a3a72;
  background: linear-gradient(155deg, rgba(36, 48, 102, 0.95), rgba(12, 18, 40, 0.96));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  min-height: 88px;
}
.vc-heat-detail.empty {
  display: flex;
  align-items: center;
  color: #9aa7ff;
  font-size: 14px;
  line-height: 1.45;
}
.vc-heat-detail .when {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.vc-heat-detail .stat {
  font-size: 16px;
  font-weight: 700;
  color: #e7ebff;
  margin: 0 0 4px;
}
.vc-heat-detail .explain {
  font-size: 14px;
  line-height: 1.5;
  color: #b4c0ff;
  margin: 0;
}
.vc-heat-detail .mode-pill {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.vc-heat-detail .mode-pill.a {
  background: rgba(99, 102, 241, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.vc-heat-detail .mode-pill.b {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.vc-heat-stack {
  display: grid;
  gap: 18px;
}
@media (min-width: 860px) {
  .vc-heat-stack.split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.vc-heat-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #9aa7ff;
}
.vc-heat-legend .swatch {
  display: inline-flex;
  height: 12px;
  width: 72px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1e293b, #6366f1, #c4b5fd);
}
.vc-heat-legend.adds .swatch {
  background: linear-gradient(90deg, #14532d, #22c55e, #86efac);
}

.vc-pattern-panel.refined .pp-seg button {
  font-size: 13px;
  padding: 8px 14px;
}

/* Interactive heat cells are <button> â€” reset chrome */
.vc-pattern-heat button.cell {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

/* Time controls + axis captions (timezone + 12/24h) */
.vc-time-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: linear-gradient(165deg, rgba(28, 38, 88, 0.95), rgba(11, 20, 48, 0.9));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.vc-time-controls .vc-time-tz {
  font-size: 13px;
  font-weight: 700;
  color: #e7ebff;
  line-height: 1.4;
  min-width: 0;
  flex: 1 1 180px;
}
.vc-time-controls .vc-time-tz [data-pp-tz-sub] {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9aa7ff;
  margin-top: 2px;
}
.vc-time-controls .pp-seg button {
  font-size: 12px;
  padding: 7px 12px;
}
.vc-axis-block {
  margin-top: 6px;
}
.vc-axis-caption,
.vc-heat-axis-caption {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.01em;
}
.vc-pattern-panel.refined .vc-pattern-axis {
  font-size: 11px;
  font-weight: 600;
  color: #c7d2fe;
}
.vc-pattern-panel.refined .vc-pattern-axis span {
  overflow: visible;
  white-space: nowrap;
}
.vc-heat-detail .tz-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8b9cff;
  font-weight: 600;
}
@media (max-width: 480px) {
  .vc-time-controls { flex-direction: column; align-items: stretch; }
  .vc-time-controls .pp-seg { align-self: flex-start; }
}

body.vc-drop-timing-open { overflow: hidden; }

/* Chip: beat default button chrome on staging index */
button.vc-timing-chip,
#vcTypicalTimesChip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  background: rgba(67, 56, 202, 0.28) !important;
  color: #c7d2fe !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  box-shadow: none !important;
}
button.vc-timing-chip:hover,
#vcTypicalTimesChip:hover {
  background: rgba(99, 102, 241, 0.35) !important;
  color: #fff !important;
  border-color: rgba(129, 140, 248, 0.7) !important;
}
button.vc-timing-chip:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.vc-timing-chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
}
@media (max-width: 420px) {
  button.vc-timing-chip .chip-txt { display: none; }
  button.vc-timing-chip { padding: 5px 8px !important; }
}

.vc-heat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 8px;
}
.vc-heat-toolbar .tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

/* =============================================================================
   Android app WebView only (window.Android / ?app=android)
   Center sheet in the visual viewport; give the heat map room to breathe.
   ============================================================================= */
html.vc-android-app .vc-pattern-modal-backdrop,
body.vc-android-app .vc-pattern-modal-backdrop {
  /* Override inset:0 — layout viewport is taller than what the user sees in the app WebView */
  inset: auto;
  top: var(--vc-vv-top, 0px);
  left: 0;
  right: 0;
  height: var(--vc-vvh, 100%);
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}
html.vc-android-app.vc-drop-timing-open,
body.vc-android-app.vc-drop-timing-open,
html.vc-android-app body.vc-drop-timing-open {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}
html.vc-android-app .vc-pattern-modal.wide,
body.vc-android-app .vc-pattern-modal.wide,
html.vc-android-app .vc-pattern-modal.vc-android-sheet,
body.vc-android-app .vc-pattern-modal.vc-android-sheet {
  width: min(100%, calc(100% - 12px));
  max-width: 100%;
  max-height: var(--vc-drop-modal-max-h, 90vh);
  margin: 0 auto;
  border-radius: 16px;
  overscroll-behavior: none;
}
html.vc-android-app .vc-pattern-modal-chrome,
body.vc-android-app .vc-pattern-modal-chrome {
  border-radius: 16px 16px 0 0;
}
html.vc-android-app .vc-pattern-modal-body,
body.vc-android-app .vc-pattern-modal-body {
  padding: 2px 4px 10px 2px;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}
html.vc-android-app .vc-pattern-modal .pp-head,
body.vc-android-app .vc-pattern-modal .pp-head {
  gap: 8px;
}
html.vc-android-app .vc-pattern-modal .pp-title,
body.vc-android-app .vc-pattern-modal .pp-title {
  font-size: 15px;
}
html.vc-android-app .vc-pattern-modal .pp-sub,
body.vc-android-app .vc-pattern-modal .pp-sub {
  font-size: 12px;
  line-height: 1.35;
}

/* Heat map: horizontal scroll so 24 hour cells are not crushed into needles */
html.vc-android-app .vc-pattern-modal .vc-heat-block,
body.vc-android-app .vc-pattern-modal .vc-heat-block {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 -2px;
  padding-bottom: 4px;
}
html.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl,
body.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl {
  width: max(100%, 560px);
  min-width: 560px;
  max-width: none;
  overflow: visible;
  gap: 3px;
  grid-template-columns: 34px repeat(24, minmax(16px, 1fr));
  font-size: 10px;
}
html.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl .cell,
body.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl .cell {
  min-width: 16px;
  min-height: 20px;
  border-radius: 5px;
  aspect-ratio: auto;
}
html.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl .hlabel,
html.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl .dlabel,
body.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl .hlabel,
body.vc-android-app .vc-pattern-modal .vc-pattern-heat.xl .dlabel {
  font-size: 9px;
  line-height: 14px;
}
html.vc-android-app .vc-pattern-modal .vc-heat-axis-caption,
body.vc-android-app .vc-pattern-modal .vc-heat-axis-caption {
  font-size: 11px;
}
html.vc-android-app .vc-pattern-modal .vc-heat-legend,
body.vc-android-app .vc-pattern-modal .vc-heat-legend {
  font-size: 11px;
}

/* Summary bars: keep readable height on short Android viewports */
html.vc-android-app .vc-pattern-modal .vc-pattern-bars,
body.vc-android-app .vc-pattern-modal .vc-pattern-bars {
  min-height: 120px;
}
html.vc-android-app .vc-pattern-modal .vc-heat-detail,
body.vc-android-app .vc-pattern-modal .vc-heat-detail {
  min-height: 72px;
  padding: 12px 14px;
}
html.vc-android-app .vc-pattern-modal .vc-heat-detail .when,
body.vc-android-app .vc-pattern-modal .vc-heat-detail .when {
  font-size: 17px;
}

/* Slightly smaller Drop Estimates chip in the Android app header row */
html.vc-android-app button#vcTypicalTimesChip.vc-timing-chip,
body.vc-android-app button#vcTypicalTimesChip.vc-timing-chip,
html.vc-android-app button.vc-timing-chip,
body.vc-android-app button.vc-timing-chip {
  gap: 3px !important;
  margin-left: 4px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
html.vc-android-app button#vcTypicalTimesChip.vc-timing-chip svg,
body.vc-android-app button#vcTypicalTimesChip.vc-timing-chip svg,
html.vc-android-app button.vc-timing-chip svg,
body.vc-android-app button.vc-timing-chip svg {
  width: 10px !important;
  height: 10px !important;
}
@media (max-width: 420px) {
  html.vc-android-app button#vcTypicalTimesChip.vc-timing-chip,
  body.vc-android-app button#vcTypicalTimesChip.vc-timing-chip {
    padding: 4px 6px !important;
    margin-left: 3px !important;
  }
}
