.pe-intro {
  max-width: 720px;
  margin: 1rem auto;
  font-size: .95rem;
}

.pe-form {
  max-width: 720px;
  margin: 1rem auto;
}

.pe-field {
  display: grid;
  gap: .25rem;
  margin-bottom: .75rem;
}
.pe-field input {
  padding: .5rem;
}
.pe-field small {
  color: #666;
  font-size: .85rem;
}

.pe-button {
  padding: .6rem 1rem;
  cursor: pointer;
}

.pe-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 50px !important;
}
.pe-clear {
  background: #ccc;
  color: #000;
}

.pe-mode {
  max-width: 720px;
  margin: 1rem auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.pe-mode-option {
  display: flex;
  gap: .4rem;
  align-items: center;
  background: #f7f7f7;
  padding: .4rem .6rem;
  border-radius: .4rem;
}

.pe-readonly {
  background: #fafafa;
  border-color: #e3e3e3;
}

.pe-validation {
  max-width: 720px;
  margin: .5rem auto;
  color: #a40000;
  font-weight: 600;
  display: none;
}

.pe-table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem auto;
}
.pe-table th,
.pe-table td {
  border: 1px solid #ccc;
  padding: .4rem;
  text-align: right;
}
.pe-table th {
  text-align: center;
  background: #f4f4f4;
}

.pe-exports {
  max-width: 720px;
  margin: 30px auto;
  text-align: center;
}
.pe-exports p {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #304882; /* matches the navy theme */
}

.pe-export-btn {
  background: #304882;   /* navy */
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.pe-export-btn:hover {
  background: #22315d;   /* darker navy on hover */
  transform: translateY(-2px);
}
.pe-export-btn:active {
  transform: translateY(0);
}

.pe-chart-controls {
  max-width: 720px;
  margin: 1rem auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

#chart-line-wrap,
#chart-area-wrap,
#chart-bar-wrap {
  max-width: 720px;
  margin: 1rem auto;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Slider container above slider */
.term-display {
  font-weight: bold;
  margin-bottom: 6px;
}

/* Base slider style */
#term {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #e3ecf1 60%, #d1d1d4 60%);
  outline: none;
  margin: 10px 0;
}

/* Slider thumb */
#term::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #304882; /* navy thumb */
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
#term::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #304882; /* navy thumb */
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
#term::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #304882;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

/* Markers below the slider */
.term-markers {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 4px;
  color: #666;
}
.term-markers span {
  flex: 1;
  text-align: center;
}
