:root {
  --menv-accent: #f43f5e;
  --menv-bg: #ffffff;
  --menv-surface: #f7f9fa;
  --menv-text: #1a202c;
  --menv-text-muted: #8895a7;
  --menv-border: #e5e9ee;
}

:root[data-menv-theme="dark"] {
  --menv-bg: #1a1f2b;
  --menv-surface: #232a38;
  --menv-text: #f1f5f9;
  --menv-text-muted: #9ca3af;
  --menv-border: #333c4d;
}

:root[data-menv-theme="gradient"] {
  --menv-bg: linear-gradient(135deg, var(--menv-grad-1, #f43f5e), var(--menv-grad-2, #be123c));
  --menv-surface: rgba(255, 255, 255, 0.15);
  --menv-text: #ffffff;
  --menv-text-muted: rgba(255, 255, 255, 0.75);
  --menv-border: rgba(255, 255, 255, 0.25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: transparent;
}

.menv-cd {
  max-width: 420px;
  margin: 0 auto;
  background: var(--menv-bg);
  border: 1px solid var(--menv-border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.menv-cd-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--menv-text);
  margin-bottom: 14px;
}

.menv-cd-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.menv-cd-box {
  background: var(--menv-surface);
  border-radius: 12px;
  padding: 12px 6px;
  min-width: 64px;
  flex: 1;
  max-width: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menv-cd-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--menv-text);
  font-variant-numeric: tabular-nums;
}

.menv-cd-label {
  font-size: 0.68rem;
  color: var(--menv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menv-cd-expired {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--menv-text);
  padding: 8px 0;
}

@media (max-width: 380px) {
  .menv-cd-box { min-width: 0; padding: 10px 4px; }
  .menv-cd-value { font-size: 1.4rem; }
}

/* A long word with no spaces breaks instead of spilling out of its box */
.menv-cd-title { overflow-wrap: anywhere; }
