.select.is-fullwidth,
.select.is-fullwidth select {
    width: 100%;
    max-width: 100%;
}

.select.is-fullwidth select {
    display: block;
}

#formation {
    width: 100% !important;
}

input[type="range"].slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    background: #dbdbdb;
    border-radius: 0.5rem;
    outline: none;
    cursor: pointer;
}

input[type="range"].slider:focus {
    box-shadow: 0 0 0 0.2rem rgba(50, 115, 220, 0.25);
}

input[type="range"].slider::-webkit-slider-runnable-track {
    height: 0.5rem;
    background: #dbdbdb;
    border-radius: 0.5rem;
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 1.1rem;
    width: 1.1rem;
    border-radius: 50%;
    background: #3273dc;
    border: 0;
    margin-top: -0.3rem;
    margin-left: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

input[type="range"].slider::-moz-range-track {
    height: 0.5rem;
    background: #dbdbdb;
    border-radius: 0.5rem;
}

input[type="range"].slider::-moz-range-thumb {
    height: 1.1rem;
    width: 1.1rem;
    border-radius: 50%;
    background: #3273dc;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

input[type="range"].slider::-ms-track {
    height: 0.5rem;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"].slider::-ms-fill-lower,
input[type="range"].slider::-ms-fill-upper {
    background: #dbdbdb;
    border-radius: 0.5rem;
}

input[type="range"].slider::-ms-thumb {
    height: 1.1rem;
    width: 1.1rem;
    border-radius: 50%;
    background: #3273dc;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.slider::before,
.slider::after {
    display: none !important;
}

.type-curve-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.type-curve-nav__column {
  font-size: 0.75rem;
  color: #6c6c6c;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.type-curve-nav__column-name {
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.type-curve-nav__column-focus {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-curve-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.type-curve-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.type-curve-nav__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: #363636;
  font-size: 0.85rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  width: 100%;
  border-left: 3px solid transparent;
}

.type-curve-nav__item:hover {
  background-color: #f5f7fa;
  text-decoration: none;
}

.type-curve-nav__item.is-active {
  background-color: #e8f1ff;
  border-left-color: #3273dc;
  font-weight: 600;
}

.type-curve-nav__item--empty {
  opacity: 0.65;
}

.type-curve-nav__item--extra {
  opacity: 0.85;
  font-style: italic;
}

.type-curve-nav__item--focus {
  border-left-color: #2155c7;
  background-color: #eef5ff;
}

.type-curve-nav__name {
  flex: 1;
  min-width: 0;
}

.type-curve-nav__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.type-curve-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  min-width: 1.5rem;
  height: 1.25rem;
  border-radius: 999px;
  background-color: #e8eef8;
  font-size: 0.7rem;
  font-weight: 600;
}

.type-curve-nav__extras {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.type-curve-nav__extras-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a869a;
  margin-bottom: 0.35rem;
}

.type-curve-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background-color: #f1f3f5;
  color: #4a4a4a;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.type-curve-chip--record {
  background-color: #ffd8a8;
  color: #7a3b05;
}

.type-curve-chip--focus {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.type-curve-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.type-curve-detail-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.type-curve-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

.type-curve-detail__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
}

.type-curve-detail__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.type-curve-detail__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.type-curve-empty {
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.9rem;
}

.type-curve-card {
  border: 1px solid #e5e7eb;
  border-left: 4px solid transparent;
  border-radius: 8px;
  padding: 1rem;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.type-curve-card--record {
  border-left-color: #3273dc;
  box-shadow: 0 4px 10px rgba(50, 115, 220, 0.18);
}

.type-curve-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.type-curve-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.type-curve-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.type-curve-card__chip--automated {
  background-color: #dcfce7;
  color: #166534;
}

.type-curve-card__chip--review {
  background-color: #fef3c7;
  color: #92400e;
}

.type-curve-card__chip--reviewed {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.type-curve-card__chip--stale {
  background-color: #fee2e2;
  color: #b91c1c;
}

.type-curve-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.type-curve-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.type-curve-card__meta-item {
  color: inherit;
}

.type-curve-card__alert {
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.type-curve-card__alert--review {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.type-curve-card__alert--stale {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.type-curve-card__section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.type-curve-card__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 960px) {
  .type-curve-card__body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.type-curve-card__section-title {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.type-curve-card__notes {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #334155;
}

/* Fit-provenance audit JSON: collapsed by default, scrolls in place. */
.type-curve-card__provenance {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.type-curve-card__provenance > summary {
  cursor: pointer;
  color: #64748b;
  font-weight: 600;
  user-select: none;
}

.type-curve-card__provenance-json {
  margin-top: 0.5rem;
  max-height: 320px;
  overflow: auto;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: pre;
  color: #475569;
}

.type-curve-card__section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.type-curve-card__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.type-curve-card__list dt {
  font-weight: 600;
  color: #4b5563;
}

.type-curve-card__list dd {
  margin: 0;
  color: #111827;
}

.type-curve-modal-card {
  width: 960px;
  max-width: 95vw;
}

.type-curve-modal-card .notification {
  font-size: 0.8rem;
}

.type-curve-modal-section {
  margin-top: 1.5rem;
}

.type-curve-modal-section:first-of-type {
  margin-top: 1rem;
}

.type-curve-modal-section .field + .field {
  margin-top: 0.6rem;
}

label.checkbox.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.type-curve-card__lateral {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.type-curve-card__section--lateral {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  background-color: #f8fafc;
}

.type-curve-card__lateral--wide {
  gap: 0.75rem;
}

.type-curve-card__lateral-summary {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.type-curve-card__lateral-row {
  font-size: 0.8rem;
  color: #344054;
}

.type-curve-card__lateral-note {
  margin: 0;
  max-width: 36rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #667085;
}

.type-curve-card__lateral-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .type-curve-card__lateral--wide {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .type-curve-card__lateral-summary {
    min-width: 200px;
  }

  .type-curve-card__lateral-controls {
    flex: 1 1 auto;
  }
}

.type-curve-card__slider {
  flex: 1 1 auto;
}

.type-curve-card__lateral-input {
  width: 110px;
}

.type-curve-location-plss,
.type-curve-location-texas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.type-curve-eur-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.type-curve-eur-table thead th {
  background-color: #f4f6fb;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #4b5563;
  text-align: center;
  padding: 0.35rem;
}

.type-curve-eur-table td {
  border-top: 1px solid #e5e7eb;
  padding: 0.4rem 0.5rem;
  vertical-align: top;
}

.type-curve-eur-label {
  width: 35%;
  font-weight: 600;
  color: #374151;
}

.type-curve-eur-value {
  width: 15%;
  text-align: right;
  font-feature-settings: 'tnum' 1;
}

.type-curve-recommendation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.type-curve-recommendation__banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #dbe6f5;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.type-curve-recommendation__banner--auto {
  border-color: #b7d2f7;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
}

.type-curve-recommendation__banner--manual {
  border-color: #b8d9d3;
  background: linear-gradient(135deg, #f7fcfb 0%, #edf9f6 100%);
}

.type-curve-recommendation__banner--needs {
  border-color: #f2d7b7;
  background: linear-gradient(135deg, #fffaf2 0%, #fff4e4 100%);
}

.type-curve-recommendation__banner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.type-curve-recommendation__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a5f7c;
}

.type-curve-recommendation__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}

.type-curve-recommendation__description {
  margin: 0;
  max-width: 54rem;
  color: #475569;
  line-height: 1.5;
}

.type-curve-recommendation__rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.type-curve-recommendation__rule {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(132, 153, 184, 0.28);
  color: #46607d;
  font-size: 0.74rem;
  font-weight: 600;
}

.type-curve-recommendation__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.type-curve-recommendation__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 1rem;
}

.type-curve-recommendation__panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem;
}

.type-curve-recommendation__panel--map {
  min-height: 100%;
}

.type-curve-recommendation__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.type-curve-recommendation__panel-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
}

.type-curve-recommendation__panel-subtitle {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.type-curve-recommendation__candidate-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.type-curve-recommendation__candidate {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.type-curve-recommendation__candidate:hover {
  border-color: #c8d7ee;
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.06);
  transform: translateY(-1px);
}

.type-curve-recommendation__candidate.is-selected {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.type-curve-recommendation__candidate.is-attached {
  border-color: #3dbb8a;
  background: linear-gradient(180deg, #ffffff 0%, #f4fcf8 100%);
}

.type-curve-recommendation__candidate-rank {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #eff4fb;
  color: #274c77;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.type-curve-recommendation__candidate-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.type-curve-recommendation__candidate-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.type-curve-recommendation__candidate-name {
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.type-curve-recommendation__candidate-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.3rem;
  color: #66758a;
  font-size: 0.77rem;
}

.type-curve-recommendation__candidate-stats span {
  position: relative;
}

.type-curve-recommendation__candidate-stats span + span::before {
  content: "•";
  margin-right: 0.5rem;
  color: #a1acba;
}

.type-curve-recommendation__candidate-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.type-curve-recommendation__chip {
  background: #f3f6fa;
  color: #536375;
}

.type-curve-recommendation__chip--eligible {
  background: #dff5ea;
  color: #176b49;
}

.type-curve-recommendation__chip--review {
  background: #f6ead7;
  color: #845218;
}

.type-curve-recommendation__chip--attached {
  background: #d8f3e6;
  color: #106a49;
}

.type-curve-recommendation__candidate-reason {
  margin: 0;
  color: #435266;
  line-height: 1.5;
}

.type-curve-recommendation__map-shell {
  border-radius: 16px;
  overflow: hidden;
  background: #f7fafc;
}

.type-curve-recommendation__map-canvas {
  width: 100%;
  min-height: 420px;
}

.type-curve-recommendation__map-canvas .leaflet-container {
  min-height: 420px;
}

.type-curve-recommendation__map {
  display: block;
  width: 100%;
  height: auto;
}

.type-curve-recommendation__map-bg {
  fill: #f7fafc;
}

.type-curve-recommendation__search-ring {
  fill: rgba(76, 134, 214, 0.05);
  stroke: rgba(76, 134, 214, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}

.type-curve-recommendation__map-caption {
  fill: #6b7c93;
  font-size: 12px;
  font-weight: 700;
}

.type-curve-recommendation__map-line {
  stroke: rgba(96, 124, 160, 0.4);
  stroke-width: 2;
}

.type-curve-recommendation__map-line.is-selected {
  stroke: rgba(52, 120, 210, 0.78);
}

.type-curve-recommendation__map-line.is-attached {
  stroke: rgba(34, 164, 118, 0.84);
  stroke-width: 2.4;
}

.type-curve-recommendation__distance-pill {
  fill: #ffffff;
  stroke: rgba(145, 160, 184, 0.42);
}

.type-curve-recommendation__distance-pill-text {
  fill: #334155;
  font-size: 11px;
  font-weight: 700;
}

.type-curve-recommendation__marker {
  cursor: pointer;
}

.type-curve-recommendation__marker-outer {
  fill: #ffffff;
  stroke: rgba(101, 122, 151, 0.58);
  stroke-width: 2;
}

.type-curve-recommendation__marker-inner {
  fill: #dce7f7;
}

.type-curve-recommendation__marker.is-selected .type-curve-recommendation__marker-outer {
  stroke: #3478d2;
}

.type-curve-recommendation__marker.is-attached .type-curve-recommendation__marker-outer {
  stroke: #22a476;
}

.type-curve-recommendation__marker.is-attached .type-curve-recommendation__marker-inner {
  fill: #d8f3e6;
}

.type-curve-recommendation__marker-text {
  fill: #334155;
  font-size: 10px;
  font-weight: 700;
}

.type-curve-recommendation__prospect-outer {
  fill: #ffffff;
  stroke: #22a476;
  stroke-width: 2.2;
}

.type-curve-recommendation__prospect-inner {
  fill: #22a476;
}

.type-curve-recommendation__prospect-label {
  fill: #16684c;
  font-size: 12px;
  font-weight: 700;
}

.type-curve-recommendation__note {
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e4ebf3;
  padding: 0.9rem 1rem;
  color: #334155;
  line-height: 1.6;
}

.type-curve-recommendation__distance-tooltip {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 999px;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.type-curve-recommendation__distance-tooltip::before {
  display: none;
}

@media (max-width: 960px) {
  .type-curve-recommendation__grid {
    grid-template-columns: 1fr;
  }

  .type-curve-recommendation__banner {
    flex-direction: column;
  }

  .type-curve-recommendation__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .type-curve-recommendation__candidate {
    flex-direction: column;
  }

  .type-curve-recommendation__candidate-top {
    flex-direction: column;
  }

  .type-curve-recommendation__candidate-chips {
    justify-content: flex-start;
  }
}
