.becky-page svg,
.nav-link[data-route="becky"] svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.becky-boundary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #c8d9d3;
  border-radius: 16px;
  background: #edf5f1;
  color: #263c34;
}

.becky-boundary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d4e9df;
}

.becky-boundary div:last-child {
  display: grid;
  gap: 3px;
}

.becky-boundary span {
  font-size: 13px;
  line-height: 1.5;
}

.becky-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.becky-card {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--border, #e6ded4);
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgb(63 48 34 / 5%);
}

.becky-model-header {
  padding-bottom: 8px;
}

.becky-panel-heading,
.becky-section-title {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.becky-panel-heading > div,
.becky-section-title > div:first-child,
.becky-results-heading {
  display: grid;
  gap: 3px;
}

.becky-panel-heading span,
.becky-section-title span,
.becky-results-heading span {
  color: var(--muted, #827b73);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.becky-panel-heading strong,
.becky-section-title strong,
.becky-results-heading strong {
  font-size: 18px;
}

.becky-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 54px 20px;
}

.becky-empty span,
.becky-empty-lines span {
  color: var(--muted, #827b73);
}

.becky-empty .btn {
  margin-top: 8px;
}

.becky-delete {
  color: #a74646;
}

.becky-delete:hover {
  color: #7f2626;
}

.becky-lines {
  display: grid;
  gap: 10px;
}

.becky-line {
  border: 1px solid #e8e0d7;
  border-radius: 14px;
  background: #fbfaf8;
}

.becky-line-main {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(240px, 1.7fr) minmax(90px, .5fr) minmax(90px, .5fr) minmax(130px, .75fr) minmax(120px, .7fr) 42px;
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.becky-line .field {
  margin: 0;
}

.becky-source-live,
.becky-source-updated,
.becky-source-warning {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.becky-source-live { color: #3c7662; }
.becky-source-updated { color: #95681f; }
.becky-source-warning { color: #a74646; }

.becky-line-total {
  display: grid;
  gap: 7px;
  align-self: center;
  padding-top: 17px;
  text-align: right;
}

.becky-line-total span,
.becky-recipe-total span {
  color: var(--muted, #827b73);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.becky-line-total strong {
  font-size: 15px;
}

.becky-recipe-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 14px;
  padding: 15px 18px;
  border-top: 2px solid #252525;
}

.becky-recipe-total strong {
  min-width: 130px;
  font-size: 21px;
  text-align: right;
}

.becky-tabs { margin: -4px 0 18px; }
.becky-tab { flex: 0 0 auto; }

.becky-scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.becky-assumptions {
  min-width: 0;
}

.becky-input-suffix {
  position: relative;
}

.becky-input-suffix span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #756e66;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.becky-input-suffix:has(span) input {
  padding-right: 34px;
}

.becky-customs-card {
  margin: 14px 0;
  padding: 16px;
  border: 1px dashed #d2bd91;
  border-radius: 14px;
  background: #fffaf0;
}

.becky-customs-card > div:first-child {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

.becky-customs-card > div:first-child span {
  color: #8f6a2d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.becky-customs-card > div:first-child small {
  color: #82765d;
}

.becky-results {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid #dfd7ce;
  border-radius: 16px;
  background: #f8f5f1;
}

.becky-results-heading {
  padding: 18px;
  border-bottom: 1px solid #dfd7ce;
  background: #eee7df;
}

.becky-result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  color: #625d57;
  font-size: 13px;
}

.becky-result-row strong {
  color: #232323;
}

.becky-result-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #d8cfc5;
}

.becky-profit {
  display: grid;
  gap: 4px;
  margin: 12px;
  padding: 18px;
  border-radius: 13px;
  background: #dcece4;
  color: #214c3b;
}

.becky-profit.negative {
  background: #f2dddd;
  color: #773232;
}

.becky-profit span,
.becky-target span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.becky-profit strong {
  font-size: 26px;
}

.becky-profit small,
.becky-target small {
  opacity: .78;
}

.becky-target {
  display: grid;
  gap: 4px;
  margin: 0 12px 12px;
  padding: 15px 18px;
  border: 1px solid #ddcfad;
  border-radius: 13px;
  background: #fffaf0;
  color: #604b20;
}

.becky-target strong {
  font-size: 19px;
}

.becky-order {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 12px 12px;
  overflow: hidden;
  border: 1px solid #dfd7ce;
  border-radius: 13px;
  background: #dfd7ce;
}

.becky-order > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #fff;
}

.becky-order span {
  color: #817970;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.becky-order strong {
  font-size: 13px;
}

.dynamic-attributes-section .dynamic-attribute-grid,
.dynamic-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dynamic-detail-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e6ded4;
  border-radius: 11px;
  background: #faf8f5;
}

.dynamic-detail-grid span {
  color: #817970;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .becky-line-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .becky-source-field { grid-column: span 2; }
  .becky-line-total { text-align: left; }
}

@media (max-width: 980px) {
  .becky-metrics,
  .becky-scenario-layout {
    grid-template-columns: 1fr;
  }
  .becky-results { position: static; }
}

@media (max-width: 700px) {
  .becky-panel-heading,
  .becky-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .becky-line-main,
  .dynamic-attributes-section .dynamic-attribute-grid,
  .dynamic-detail-grid {
    grid-template-columns: 1fr;
  }
  .becky-source-field { grid-column: auto; }
  .becky-order { grid-template-columns: 1fr; }
}
