#lv-cell-seeding-calculator {
  font-family: var(--lv-font);
  color: var(--lv-navy);
  line-height: 1.5;
  background: #ffffff;
}

#lv-cell-seeding-calculator * {
  box-sizing: border-box;
}

#lv-cell-seeding-calculator input,
#lv-cell-seeding-calculator select,
#lv-cell-seeding-calculator button {
  box-sizing: border-box;
  font-family: var(--lv-font);
}

#lv-cell-seeding-calculator input.lv-input,
#lv-cell-seeding-calculator select.lv-select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  border: 1px solid var(--lv-border) !important;
  border-radius: var(--lv-radius-sm) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  color: var(--lv-navy) !important;
  font-family: var(--lv-font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  vertical-align: middle;
}

#lv-cell-seeding-calculator input.lv-input {
  padding: 0 14px !important;
  -webkit-appearance: none;
  appearance: none;
}

#lv-cell-seeding-calculator select.lv-select {
  padding: 0 36px 0 14px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lv-muted) 50%),
    linear-gradient(135deg, var(--lv-muted) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px !important;
  background-repeat: no-repeat !important;
  background-size: 5px 5px, 5px 5px !important;
  cursor: pointer;
  text-align: left !important;
  text-align-last: left !important;
}

#lv-cell-seeding-calculator input.lv-input:focus,
#lv-cell-seeding-calculator select.lv-select:focus {
  outline: 2px solid rgba(45, 108, 223, 0.22) !important;
  outline-offset: 0;
  border-color: var(--lv-blue) !important;
}

#lv-cell-seeding-calculator .lv-label {
  display: block;
  line-height: 1.35;
}

#lv-cell-seeding-calculator .lv-required {
  display: inline;
  vertical-align: baseline;
}

#lv-cell-seeding-calculator .lv-calc-header {
  text-align: center;
  margin: 22px auto 22px;
}

#lv-cell-seeding-calculator .lv-calc-header h1 {
  margin-bottom: 0;
}

#lv-cell-seeding-calculator .lv-calc-header p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
}

#lv-cell-seeding-calculator .lv-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 16px;
}

#lv-cell-seeding-calculator .lv-hero-divider-line {
  display: block;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: var(--lv-blue);
  opacity: 0.28;
}

#lv-cell-seeding-calculator .lv-hero-divider-icon {
  display: block;
  width: 36px;
  height: 36px;
  overflow: visible;
}

#lv-cell-seeding-calculator .lv-cell-body {
  fill: rgba(45, 108, 223, 0.06);
  stroke: var(--lv-brand-dark);
  stroke-width: 2.8;
}

#lv-cell-seeding-calculator .lv-cell-nucleus {
  fill: rgba(3, 33, 56, 0.08);
  stroke: var(--lv-brand-dark);
  stroke-width: 2.3;
}

#lv-cell-seeding-calculator .lv-cell-structure,
#lv-cell-seeding-calculator .lv-cell-accent {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#lv-cell-seeding-calculator .lv-cell-structure {
  stroke: var(--lv-brand-dark);
  stroke-width: 2.2;
  opacity: 0.7;
}

#lv-cell-seeding-calculator .lv-cell-accent {
  stroke: #6fa9b7;
  stroke-width: 2.4;
  opacity: 0.9;
}

#lv-cell-seeding-calculator .lv-cell-dot {
  fill: #6fa9b7;
  stroke: none;
  opacity: 0.9;
}

#lv-cell-seeding-calculator .lv-select {
  min-height: 44px;
  height: 44px;
  padding: 9px 36px 9px 14px;
  line-height: 1.3;
  text-align: left;
  text-align-last: left;
}

#lv-cell-seeding-calculator .lv-setup-guidance {
  max-width: 760px;
  margin: -3px 0 0;
  color: var(--lv-muted);
  font-size: 13px;
  line-height: 1.45;
}

#lv-cell-seeding-calculator .lv-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: 10px;
}

#lv-cell-seeding-calculator .lv-setup-panel {
  padding: 16px;
  border: 1px solid var(--lv-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.035);
}

#lv-cell-seeding-calculator .lv-seeding-plan-panel {
  border-color: rgba(3, 33, 56, 0.24);
  border-left: 4px solid var(--lv-brand-dark);
  box-shadow: 0 7px 20px rgba(17, 24, 39, 0.055);
}

#lv-cell-seeding-calculator .lv-count-panel {
  padding: 14px;
  border-color: #e5edf6;
  background: #fbfdff;
  box-shadow: none;
}

#lv-cell-seeding-calculator .lv-setup-panel h3 {
  margin: 0 0 12px;
  color: var(--lv-navy);
  font-size: 18px;
}

#lv-cell-seeding-calculator .lv-count-panel h3 {
  font-size: 16px;
}

#lv-cell-seeding-calculator .lv-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 10px;
}

#lv-cell-seeding-calculator .lv-field {
  min-width: 0;
  margin-bottom: 0;
}

#lv-cell-seeding-calculator .lv-helper-text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

#lv-cell-seeding-calculator .lv-input-unit-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--lv-radius-sm);
  background: transparent !important;
  box-shadow: none !important;
}

#lv-cell-seeding-calculator .lv-input-unit-group .lv-input {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  border: 1px solid var(--lv-border) !important;
  border-right: 0 !important;
  border-radius: var(--lv-radius-sm) 0 0 var(--lv-radius-sm) !important;
}

#lv-cell-seeding-calculator .lv-attached-unit {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center !important;
  justify-content: center !important;
  min-width: 78px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid var(--lv-border) !important;
  border-left: 0 !important;
  border-radius: 0 var(--lv-radius-sm) var(--lv-radius-sm) 0 !important;
  background: var(--lv-bg) !important;
  box-shadow: none !important;
  color: var(--lv-muted) !important;
  font-family: var(--lv-font) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

#lv-cell-seeding-calculator .lv-compact-unit-group .lv-attached-unit {
  min-width: 42px !important;
}

#lv-cell-seeding-calculator .lv-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#lv-cell-seeding-calculator .lv-panel-header h3 {
  margin-bottom: 4px;
}

#lv-cell-seeding-calculator .lv-panel-header p {
  margin: 0;
  color: var(--lv-muted);
  font-size: 12px;
  line-height: 1.4;
}

#lv-cell-seeding-calculator .lv-small-btn {
  flex: 0 0 auto;
  padding: 10px 13px;
  font-size: 13px;
}

#lv-cell-seeding-calculator .lv-count-row-header,
#lv-cell-seeding-calculator .lv-count-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.7fr) 40px;
  gap: 8px;
  align-items: center;
}

#lv-cell-seeding-calculator .lv-count-row > * {
  min-width: 0;
}

#lv-cell-seeding-calculator .lv-count-row-header {
  margin-bottom: 4px;
  color: var(--lv-muted);
  font-size: 12px;
  font-weight: 800;
}

#lv-cell-seeding-calculator .lv-count-rows {
  display: grid;
  gap: 7px;
}

#lv-cell-seeding-calculator .lv-count-average {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 10px;
  border-top: 1px solid #e5edf6;
  border-radius: 8px;
  background: #ffffff;
}

#lv-cell-seeding-calculator .lv-count-average-value {
  color: var(--lv-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

#lv-cell-seeding-calculator .lv-count-average-value:not(:empty) {
  overflow-wrap: anywhere;
}

#lv-cell-seeding-calculator .lv-count-average .lv-small-btn {
  padding: 8px 11px;
  font-size: 12px;
}

#lv-cell-seeding-calculator .lv-average-helper {
  margin: 4px 2px 0;
}

#lv-cell-seeding-calculator .lv-average-helper span {
  display: block;
  margin-top: 2px;
}

#lv-cell-seeding-calculator .lv-count-average .lv-small-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

#lv-cell-seeding-calculator .lv-count-viability::-webkit-outer-spin-button,
#lv-cell-seeding-calculator .lv-count-viability::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#lv-cell-seeding-calculator .lv-count-viability {
  appearance: textfield;
  -moz-appearance: textfield;
}

#lv-cell-seeding-calculator .lv-icon-btn {
  width: 40px;
  min-height: 44px;
  padding: 0;
  line-height: 1;
}

#lv-cell-seeding-calculator .lv-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

#lv-cell-seeding-calculator .lv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#lv-cell-seeding-calculator .lv-results-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5edf6;
}

#lv-cell-seeding-calculator .lv-results-meta h3,
#lv-cell-seeding-calculator .lv-bench-summary h3 {
  margin: 0 0 10px;
  color: var(--lv-navy);
  font-size: 16px;
}

#lv-cell-seeding-calculator .lv-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

#lv-cell-seeding-calculator .lv-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
  line-height: 1.4;
}

#lv-cell-seeding-calculator .lv-detail-row span {
  color: var(--lv-muted);
}

#lv-cell-seeding-calculator .lv-detail-row strong {
  color: var(--lv-navy);
  text-align: right;
  overflow-wrap: anywhere;
}

#lv-cell-seeding-calculator .lv-bench-summary {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 108, 223, 0.3);
  border-left: 4px solid var(--lv-blue);
  border-radius: 10px;
  background: #f8fbff;
}

#lv-cell-seeding-calculator .lv-bench-summary p {
  margin: 4px 0 0;
  color: var(--lv-muted);
  font-size: 14px;
  line-height: 1.5;
}

#lv-cell-seeding-calculator .lv-bench-summary p strong {
  color: var(--lv-navy);
}

#lv-cell-seeding-calculator #warning-output .lv-note {
  margin-top: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

#lv-cell-seeding-calculator .lv-eln-warnings {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e5edf6;
}

#lv-cell-seeding-calculator .lv-eln-warnings h4 {
  margin: 0 0 6px;
  color: var(--lv-navy);
  font-size: 14px;
}

#lv-cell-seeding-calculator .lv-eln-warnings p {
  margin: 4px 0 0;
  color: var(--lv-muted);
  font-size: 12px;
  line-height: 1.45;
}

#lv-cell-seeding-calculator .lv-export-card {
  margin-top: 18px;
}

#lv-cell-seeding-calculator .lv-related-tools {
  display: block;
  max-width: 1100px;
  margin: 52px auto 0;
  padding: 24px;
  border: 1px solid var(--lv-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 20%, rgba(3, 239, 219, 0.14), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(1, 139, 207, 0.18), transparent 30%),
    linear-gradient(135deg, #eaf6ff 0%, #f5fbff 100%);
}

#lv-cell-seeding-calculator .lv-related-tools h2 {
  display: block;
  margin: 0 0 16px;
  color: #0f2f4f;
  font-size: 1.35rem;
  line-height: 1.3;
}

#lv-cell-seeding-calculator .lv-related-tool-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
  min-height: 0;
  visibility: visible !important;
  opacity: 1 !important;
}

#lv-cell-seeding-calculator .lv-related-tool-grid .lv-related-tool-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--lv-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  color: var(--lv-navy);
  font-family: var(--lv-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#lv-cell-seeding-calculator .lv-related-tool-grid .lv-related-tool-card:hover,
#lv-cell-seeding-calculator .lv-related-tool-grid .lv-related-tool-card:focus {
  border-color: var(--lv-blue);
  background: #eaf3fb;
  color: var(--lv-blue);
}

#lv-cell-seeding-calculator .lv-meta-section {
  max-width: var(--lv-max-width);
  margin: 34px auto 8px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

#lv-cell-seeding-calculator .lv-meta-section p {
  color: #7a8491;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 850px) {
  #lv-cell-seeding-calculator .lv-calc-header {
    margin: 20px auto 22px;
  }

  #lv-cell-seeding-calculator .lv-calc-header p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }

  #lv-cell-seeding-calculator .lv-detail-grid {
    grid-template-columns: 1fr;
  }

  #lv-cell-seeding-calculator .lv-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  #lv-cell-seeding-calculator .lv-detail-row strong {
    text-align: left;
  }

  #lv-cell-seeding-calculator .lv-calculator-layout,
  #lv-cell-seeding-calculator .lv-field-grid {
    grid-template-columns: 1fr;
  }

  #lv-cell-seeding-calculator .lv-panel-header {
    flex-direction: column;
  }

  #lv-cell-seeding-calculator .lv-panel-header .lv-small-btn {
    width: 100%;
  }

  #lv-cell-seeding-calculator .lv-count-average {
    align-items: stretch;
    flex-direction: column;
  }

  #lv-cell-seeding-calculator .lv-export-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #lv-cell-seeding-calculator .lv-result-value,
  #lv-cell-seeding-calculator .lv-export-value {
    text-align: left;
  }

  #lv-cell-seeding-calculator .lv-related-tools {
    margin-top: 40px;
    padding: 18px;
  }

  #lv-cell-seeding-calculator .lv-related-tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #lv-cell-seeding-calculator .lv-count-row-header {
    display: none;
  }

  #lv-cell-seeding-calculator .lv-count-row {
    grid-template-columns: 1fr 1fr 40px;
  }

  #lv-cell-seeding-calculator .lv-attached-unit {
    min-width: 64px;
    padding: 0 9px;
  }
}
